Escaping in 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
novito
Posts: 30
Joined: 2013-11-26T17:37:36-07:00
Authentication code: 6789

Escaping in mogrify

Post by novito »

I am looking for a "simple" way to get the standard deviation of an image. I have used this:

Code: Select all

identify -format "%[standard-deviation]" my_picture.png
However, I am using a Mogrify wrapper, and when I try doing:

Code: Select all

mogrify -identify -format "%[standard-deviation]" my_picture.png
I keep getting the same info as if I was doing just

Code: Select all

mogrify -identify my_picture.png
What am I missing?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Escaping in mogrify

Post by fmw42 »

mogrify is a much simpler and more restrictive function than convert. It does not allow you to include convert or identify within it, nor does it allow % escapes nor most compose operations. I do not know if there is a solution using mogrify alone.
Post Reply