Page 1 of 1

Error editing an image

Posted: 2009-09-05T05:54:22-07:00
by ahmed.eldawy
Hello,
I try to edit an image by drawing some lines on it using command line tool "convert". I get this error when I execute the command
convert: pixels are not authentic `nodes.png' @ cache.c/QueueAuthenticNexus/4143.
Does this mean anything. I tried to search forums but I haven't found any similar post.
It results an image "topology.png" which is similar to "nodes.png".

I use ImageMagick 6.5.4-2, compiled from source.
Ubuntu 9.04, 2GB RAM

If you really need to debug this here's the command line I use:
File coverage.png http://www.badrit.com/coverage.png

convert "(" -fill "none" -stroke "black" -draw " line 416.6913,499.899 416.6913,499.899 line 456.1008,154.2412 456.1008,154.2412" nodes.png ")" "topology.png"

Re: Error editing an image

Posted: 2009-09-05T09:50:38-07:00
by fmw42
convert "(" -fill "none" -stroke "black" -draw " line 416.6913,499.899 416.6913,499.899 line 456.1008,154.2412 456.1008,154.2412" nodes.png ")" "topology.png"
assuming nodes.png is the input and topology.png is the output and you have the png delegate library installed, try (no parenthesis needed)

convert nodes.png -fill "none" -stroke "black" -draw "line 416.6913,499.899 416.6913,499.899 line 456.1008,154.2412 456.1008,154.2412" topology.png

however, your are drawing zero length lines (your start x,y and end x,y are identical in both cases) and that could be your problem. For one line the syntax is -draw "line startx,starty endx,endy"

Re: Error editing an image

Posted: 2009-09-05T12:45:21-07:00
by magick
We can reproduce the problem you reported and have a patch in ImageMagick 6.5.5-7 available sometime tomorrow. Thanks.