Page 1 of 1

Resize VS Geometry

Posted: 2006-09-18T00:45:11-07:00
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.

Posted: 2006-09-18T05:11:02-07:00
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.

Posted: 2006-09-18T20:49:01-07:00
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.