Re: Detect Image Size
Posted: 2009-05-13T14:52:23-07:00
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
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