Error editing an image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ahmed.eldawy

Error editing an image

Post 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"
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error editing an image

Post 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"
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error editing an image

Post by magick »

We can reproduce the problem you reported and have a patch in ImageMagick 6.5.5-7 available sometime tomorrow. Thanks.
Post Reply