Page 1 of 1

unable to define a format when using Identify with mogrify

Posted: 2017-11-20T09:43:41-07:00
by cubesolutions
Dear Community,
I'm new to IM so sorry if my question is basic.
I have to identify the size in pixels of multiple images located in a single folder.
I'm trying to use mogrify with identify and format.
Nevertheless, the format string I applied to the command doesn't change anything on the ouptut.
It's still providing the full format details.
Any idea ?
Thanks in advance

Re: unable to define a format when using Identify with mogrify

Posted: 2017-11-20T11:38:02-07:00
by fmw42
I do not think you can use mogrify to do identify. You would need to use identify (or magick identify in IM 7)

You could change directories to the directory holding your images and do

Code: Select all

identify *
or if all you want is the width, then

Code: Select all

identify -format "%f %w\n" *

Please always specify your IM version and platform when asking questions and your exact command line.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at viewtopic.php?f=1&t=9620

For novices, see

viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/