Code: Select all
exec("convert $filename -colorspace Gray $new_image; convert $new_image -fill 'rgb(238, 180, 34)' -tint 100 -modulate 110,100,100 $new_image");

desired version

Current result:

Code: Select all
exec("convert $filename -colorspace Gray $new_image; convert $new_image -fill 'rgb(238, 180, 34)' -tint 100 -modulate 110,100,100 $new_image");
Code: Select all
exec("convert $filename -colorspace Gray $new_image; convert $new_image -fill 'hsl(36, 62, -6)' -tint 100 $new_image");
Code: Select all
exec("convert $filename -colorspace Gray $new_image; convert $new_image -fill 'hsl(36, 62, -6)' -tint 100 $new_image");
As pointed out by Fred, -6 lightness is invalid. What this means in terms of what photoshop does is known. Their is a -modulate command, but it works with percentables, and does not effect tinting of grayscale image, only previously tinted images (rotation of existing colors in HSL or HSB colorspace).nicky77 wrote:Hi Anthony - what I've done in Photoshop is convert the image to greyscale, then apply HSL values of 36, 62, -6.