Page 1 of 1

Photoshop blending mode "hard light"

Posted: 2013-04-22T04:53:29-07:00
by sommerhit76
Is it possible to recreate the Photoshop blending mode "hard light" with ImageMagick?

Thanks for your input!

Re: Photoshop blending mode "hard light"

Posted: 2013-04-22T05:42:24-07:00
by snibgo
Possibly with "-compose HardLight -composite".

Re: Photoshop blending mode "hard light"

Posted: 2013-04-22T08:44:23-07:00
by Bonzo
Try:

Code: Select all

composite input1.png input2.jpg -compose hard-light -matte output.jpg

Re: Photoshop blending mode "hard light"

Posted: 2013-04-22T10:05:47-07:00
by fmw42
Better to stick with the convert syntax

convert image1 image2 -compose hardlight -composite result

Note IM has most if not all the PS compose methods. see http://www.imagemagick.org/Usage/compose/

Re: Photoshop blending mode "hard light"

Posted: 2013-04-30T08:30:47-07:00
by sommerhit76
Thanks, "convert image1 image2 -compose hardlight -composite result" did the trick! :D

Re: Photoshop blending mode "hard light"

Posted: 2013-04-30T10:12:03-07:00
by fmw42
Note the image order is important for some compose methods and is swapped between composite and convert syntax.

see
http://www.imagemagick.org/Usage/compose/#compose

Re: Photoshop blending mode "hard light"

Posted: 2013-04-30T23:38:50-07:00
by anthony
Also compose "Overlay" is the same as compose method "Hardlight" but with the source and destination images swapped.

Just remember it is the destination image (first image in "convert", second in "composite") that determines the final size of the image and the source of any other image meta-data (like profiles and comments).