Luminize, Colorize, HCL

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

Re: Luminize, Colorize, HCL

Post by GreenKoopa »

-modulate in HCLp is not implemented.
viewtopic.php?f=3&t=23811
User avatar
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

Re: Luminize, Colorize, HCL

Post by GreenKoopa »

This is my best guess of what PS is doing.

Code: Select all

convert infile.jpg ^
( -clone 0 -colorspace Rec601Luma +level-colors black,red -colorspace HCLp -separate ) ^
( -clone 0 -colorspace HCLp -separate ) ^
-delete 0,3,4,5 -combine -set colorspace HCLp -colorspace sRGB ^
out.png
If you like, I would be happy to make a go at reproducing this, but I'm at a disadvantage not having PS. I would need some PS outputs from you.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Luminize, Colorize, HCL

Post by fmw42 »

Yes, that matches visually better. The PS dark areas are slightly darker than from IM.

This was what I tried to do in my last set of examples when I tried to remove the linear RGB conversions, but I overlooked one.

infile="sunsets-lightroom-split-toning_srgb.jpg"
inname=`convert $infile -format "%t" info:`

convert $infile \
\( -clone 0 -colorspace Rec601Luma +level-colors black,red -colorspace HCLp -separate \) \
\( -clone 0 -colorspace HCLp -separate \) \
-delete 0,3,4,5 -combine -set colorspace HCLp -colorspace sRGB \
${inname}_highlight_HCLp_rms_levelcolors_colorize_greenkoopa.jpg

Image


Photoshop:

Image
Last edited by fmw42 on 2013-07-24T12:40:12-07:00, edited 1 time in total.
Post Reply