Code: Select all
convert *.jpg -maximum OUT.jpg
Is it possible to do the same with saturation?
Get the most colorful pixel and set it in out.jpg...
Something like:
Code: Select all
convert *.jpg -maximumSaturation OUT.jpg
Code: Select all
convert *.jpg -maximum OUT.jpg
Code: Select all
convert *.jpg -maximumSaturation OUT.jpg
This would make me believe it was a synonym for -evaluate max.return the maximum intensity of an image sequence.
-maximum
Replaced by -evaluate-sequence Max.
Code: Select all
convert *.jpg -colorspace HSB -channel g -separate -evaluate-sequence max maxsat.png
convert *.jpg -colorspace HSB -channel b -separate -evaluate-sequence max maxbri.png
convert anyimage.jpg -colorspace HSB -channel r -separate maxsat.png maxbri.png -set colorspace HSL -combine -colorspace sRGB result.png
Code: Select all
convert ^
maxsat_r.jpg maxsat_g.jpg maxsat_b.jpg ^
NULL: ^
( -clone 0--2 ^
-colorspace HCL -channel G -separate +channel ^
NULL: ^
( -clone 0--2 ^
-evaluate-sequence Max ^
) ^
-compose Difference -layers Composite ^
-fill White +opaque Black -negate ^
) ^
-compose CopyOpacity -layers Composite ^
-compose Over -layers Merge ^
maxsat_out.jpg