Answer the question
In order to leave comments, you need to log in
How to make a "cool" darkening of an image using ImageMagick?
Hey!
My goal is to darken the image and achieve a similar effect: Original -> Result
Image taken from the careerdean site, namely from here: https://www.careerdean.com/ama/dave-hoover
At first I thought it was just an overlay of translucent black background, this is of course very simple, but the colors turn out to be gray and all the depth is lost. Then I twisted the Brightness and Gamma, connected the Contrast, but I didn’t even achieve a close result.
I don't know if this is a common technique. But I didn't get anything. Tell me what else to turn.
UPD:
I did not adjust the gamma, using only the level in a hurry it turned out something like this.
define('ROOT_PATH', getcwd());
header("Content-Type: image/jpeg");
$Imagick = new Imagick();
$Imagick->readImage(ROOT_PATH."/img.jpg");
$Imagick->setImageCompressionQuality(80);
$quantumRange = $Imagick->getQuantumRange();
$quantumRange = $quantumRange['quantumRangeLong'];
$Imagick->levelImage(0, 1.0, $quantumRange + ($quantumRange - ($quantumRange / 2)));
echo $Imagick->getImageBlob();
Answer the question
In order to leave comments, you need to log in
This is probably so
data3.floomby.com/files/share/13_1_2015/14/AMrm3gg...
Well, then adjusting the shades as you like, something like this
data3.floomby.com/files/share/13_1_2015/14/TCLQKck...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question