Code: Select all
$kind="desat";
$edge=4;
$con=125;
$sat=100;
$gray="yes";
$con1 = 100;
$con2 = $con-100;
Code: Select all
exec("convert original.jpg ( -clone 0 $grayscaling ) ( -clone 1 -negate -blur 0x".$edge." ) ( -clone 1 -clone 2 $setcspace -compose color_dodge -composite -level ".$con2."x100% ) ( -clone 3 -alpha set -channel a -evaluate set ".$con1."% +channel ) ( -clone 3 -clone 4 $setcspace -compose multiply -composite ) -delete 0-4 $setcspace output.jpg");
Now, How do i merge this converted effect to a background in the same command?
Can i convert more than one image to drawing effect
I am guessing i have to use background image, -gravity -composite for single image.
But i don't know how to use it.