Identify values between verbose and format

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
blue-j
Posts: 68
Joined: 2007-06-12T14:03:18-07:00

Identify values between verbose and format

Post by blue-j »

when i run this

Code: Select all

identify -format '%[standard-deviation]' image.jpg
i get a value of
18232.1

but when i run

Code: Select all

identify -verbose image.jpg
i see in overall image statistics a standard deviation of 70.9422 (0.278205)

how can i get the value shown in the verbose output?

thanks so much!!

J
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Identify values between verbose and format

Post by snibgo »

The first version converts the image to 16 bits/channel/pixel before the calculation.

You could:

Code: Select all

identify -format "%[fx:255*standard_deviation] (%[fx:standard_deviation])" x.jpg
snibgo's IM pages: im.snibgo.com
blue-j
Posts: 68
Joined: 2007-06-12T14:03:18-07:00

Re: Identify values between verbose and format

Post by blue-j »

thank you so much!!! : )

J
Post Reply