Resize VS Geometry

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
howa

Resize VS Geometry

Post by howa »

what is the difference between


/usr/bin/convert -geometry 400x300 1.gif 2.gif

/usr/bin/convert -resize 400x300 1.gif 2.gif


seems geometry can also do the resize job?

thanks.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp »

-resize is newer. In a simple example like yours it does not make much difference, but in a more complicated command it expresses more precisely which image is to be resized and when.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

See IM Examples, Usage Notes and important changes
http://www.cit.gu.edu.au/~anthony/graph ... k6/basics/

Also read in images BEFORE operating on them, or you will have problems as your examples get more complex.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply