Page 1 of 1

Re: Detect Image Size

Posted: 2009-05-13T14:52:23-07:00
by fmw42
identify -ping imagename

That will avoid reading the image and just look at the headers. see http://www.imagemagick.org/Usage/basics/#controls

you can also get just the width and height by

identify -ping -format "%w x %h" imagename

see http://www.imagemagick.org/script/escape.php