Imagick::blueShiftImage


wizard apg

MUTES the colors of the image to simulate a scene at nighttime in the moonlight.



<?php


bool 
public Imagick::blueShiftImage(float $factor 1.5)

?>

$factor


The factor that simulates the scene at nighttime in the moonlight.





This function returns true on success.



  1 EXERCISE   

<?php

    
// Run several times
    
    
$imagePath PATH2IMGW '/jpg/aa.jpg';
    
    
$str1img 'img/results/aablsh681.jpg';

    
$imagick = new Imagick($imagePath);
    
    
$blueShift mt_rand(1,5);
    
    
$imagick->blueShiftImage($blueShift);
    
    
$image1 $imagick->getImageBlob();
    
    
$img imagecreatefromstring($image1);

imagegif($img$str1img);

echo 
basename($str1img); ?>
<br><br>
<img src="<?php echo $str1img?>"
 alt="<?php echo $str1img?>
 title="<?php echo $str1img?>">

 RESULT   

aablsh681.jpg (60%)

$blueShift = 1

img/results/aablsh681.jpg apr

Hachiko and Doctor Hidesaburo Ueno (JPN) - 2022.