[magick-users] -level and getting proper values for it

Mikolaj Machowski mikmach at wp.pl
Mon Apr 28 10:26:44 PDT 2008


Hello,

For proper color transformation with -level you have to check min,max
color values for each image separately. Is there a way to do it more or
less automatically with IM or other cross platform tool (Windows and
Linux)?

identify -verbose gives histogram values but 1) it takes ages to get
that info for big files 2) isn't easy to parse.

Correct info for level is something like:

convert image.jpg 
  -level (min(min r, min g, min b)),(max(max r, max g, max b)) image2.jpg

TIA

m.



More information about the Magick-users mailing list