Page 1 of 1

-verbose gives same gamma value regardless of image

Posted: 2014-12-08T11:08:15-07:00
by Name
I have adjusted the gamma of some images, and to check that I had done it correctly, I decided to check the gamma of the converted image using the identify -verbose command. The problem is that however I adjust the gamma, the -verbose command gives a gamma value of 0.454545 for the converted picture.

For example:

convert test_picture.jpg -gamma 2.0 converted_2_0.jpg

and

convert test_picture2.jpg -gamma 0.5 converted_0_5.jpg

will give two different images, one lighter than the other, like expected. However, running a identify -verbose "image" command on either image will give the same value for gamma. 0.454545 for both converted_2_0.jpg and for converted_0_5.jpg.

Does this mean I did something wrong in my gamma correction? Or is there an error with the value given by -verbose?

Re: -verbose gives same gamma value regardless of image

Posted: 2014-12-08T11:21:30-07:00
by snibgo
The "-gamma" operator changes pixel values. "gamma" reported by "identify" is the gamma-shift that display software and hardware should apply to the image so it shows the correct tones. This value is either 0.454545 (=1/2.2) or 1.0.

In current versions of IM, the "-gamma" command doesn't modify the gamma setting.

Re: -verbose gives same gamma value regardless of image

Posted: 2014-12-08T11:32:41-07:00
by Name
Thanks for quick answer!

That makes sense.