unable to define a format when using Identify with mogrify

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
cubesolutions
Posts: 1
Joined: 2017-11-20T09:26:12-07:00
Authentication code: 1152

unable to define a format when using Identify with mogrify

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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/
Post Reply