Page 1 of 1

Mogrify -normalize oversaturates images

Posted: 2014-05-12T09:51:32-07:00
by Elapido
I'm using this command for autocorrection of levels in photos. The problem is that, in many cases, the colors get oversaturated. For instance, the color of the bodies turns like red. Is there a way to prevent this? Could it be that -normalize corrects levels with too much strenght? Maybe this is not the right command for what I need? Is there a way to control it?

Re: Mogrify -normalize oversaturates images

Posted: 2014-05-12T09:57:14-07:00
by fmw42
try -auto-level (or on older systems -contrast-stretch 0)

-normalize will clip at the ends, thus saturating pixels on either end. -auto-level stretches just to the full dynamic range

see
http://www.imagemagick.org/script/comma ... #normalize
http://www.imagemagick.org/script/comma ... auto-level

Re: Mogrify -normalize oversaturates images

Posted: 2014-05-12T17:01:29-07:00
by snibgo
In my experience, in ordinary photographs, any spreading out of pixel values by "-auto-level", "-normalize", "-contrast-stretch", "-equalize" etc will increase saturation. (It is almost inevitable.) So it should come early in the workflow, before decisions about saturation. To decrease saturation, "-modulate 100,80,100" or similar is useful.

Re: Mogrify -normalize oversaturates images

Posted: 2014-05-13T01:12:35-07:00
by Elapido
I've tried with auto-level but the correction of the images is too subtle, almost unnoticiable. I'm using Photoshop to manually correct oversaturated photos. What does that "-modulate 100,80,100" command do? Does it magically correct oversaturated images or does it affect all images?

Re: Mogrify -normalize oversaturates images

Posted: 2014-05-13T04:08:45-07:00
by snibgo
See http://www.imagemagick.org/script/comma ... p#modulate

Instead of "80", use "100" for no change, "0" to entirely remove saturation, "120" to increase it, etc. It has no concept of "oversaturated". That's a decision you must make. You might automate it in a script, getting a numeric value for the current saturation. See my page "Adding zing to photographs" including the script "stats.bat".