anthony wrote:
From everything I have seen it is fixed. prehaps I am missing the problem.
What is exactly wrong with it now.
ok, let download image named as "before.jpg" from this post
please "normalize" by hand - levels command like this
Code: Select all
convert before.jpg -level 0%,39% -quality 90 normalize_by_levels.jpg
ok, levels command stretching histogram for each channel by the same multiplier, so White balanse is not changed
let normalize by "auto" like contrast-stretch
Code: Select all
convert before.jpg -channel all -contrast-stretch 0%x99.7% -channel RGB -quality 90 contrast_stretch_cs.jpg
this command should also normalize but each channel by different multiplier, so white paper looks more greenish than picture normalized by leves
let see syntetic test
this is synth.jpg which contain gray gradient to about 128 in RGB values and solid pink to about 230 to R and B channels
let normalize by hand - each channel by the same multiplier
Code: Select all
convert synth.jpg -level 0%,80% -quality 90 -quality 90 synth-levels.jpg
ok, pink color reach near 255 in R and B, gray gradient reach about 161 in each channel and it still was gray
white balance is preserved
ok, let normalize byc contrast - stretch
Code: Select all
convert synth.jpg -channel all -contrast-stretch 0%x99.7% -quality 90 synth-contrast-stretch.jpg
pink color is ok, but this command cause normalize green channel to max that cause greenish gradient, because it was absent in pink solid rectangle
white balance is not preserved
also, let try -normalize command
Code: Select all
cconvert synth.jpg -channel all -normalize -quality 90 synth-normalize.jpg
results from this command was similar to contrast-stretch
white balance is not preserved