convert: Negative or zero image size

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
rukka74

convert: Negative or zero image size

Post by rukka74 »

Hi all,

first my appologies, I am brand new to imageMagick so I might
- ask a stupid question
- do not provide all required info

I am running ImageMagick 6.2.9 on my Synology DS-101j, the purpose is to use it together with "Gallery 2"

Gallery 2 uses the following command to test ImageMagick
convert -size 200x200 -geometry 200x200 /volume1/web/gallery/modules/imagemagick/data/test.gif /volume1/web/gallery/eh4587_data/tmp/imgk_LL39wp

Since Gallery 2 reports an error when doing so, I ran the above command directly from the command prompt.
The resulting error is convert: Negative or zero image size `/volume1/web/gallery/modules/imagemagick/data/test.gif'.

What does that mean, what is the reason?

Thanks for help
Chris
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Put -geometry AFTER reading the image!!
or better still use -resize.

-geomtry is a special option only present for backward compatibility and alpha composition use. For details see...
http://www.cit.gu.edu.au/~anthony/graph ... ics/#notes
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply