Page 1 of 1

Photoshop blending mode "Darker color"?

Posted: 2015-03-18T03:17:00-07:00
by elmimmo
Is there a way to reproduce Photoshop's "Darker color" blending mode using the command line?

Re: Photoshop blending mode "Darker color"?

Posted: 2015-03-18T03:45:07-07:00
by Bonzo
I think you should expand on your question - what does darker color do? Perhaps post a before and after example.

Re: Photoshop blending mode "Darker color"?

Posted: 2015-03-20T05:11:13-07:00
by tom_dl
Darker color compares RGB (total) from image A and with RGB (total) from image B and chooses the pixel with the lower total value. This way, no new colors appear in the composited image. This is different from "Darken" which does this on a per channel basis, often creating colors that weren't in either image A or B. Darker Color should be achieved by IM's "Darken-Intensity" like this:

Code: Select all

convert imageA.png imageB.png -compose Darken_Intensity -composite imageC.png
However, I've noticed Photoshop's implementation is sometimes very different from ImageMagick's (with IM's giving expected results and Photoshop's not), although I haven't had the time to work out how Photoshop is implementing Darker Color, and therefore why it sometimes differs from IM's Darken-Intensity. Hopefully someone else can explain the rest!