PHP | Imagick blueShiftImage() Function
The Imagick::blueShiftImage() function is an inbuilt function in PHP which is used to mute the colors of the image to simulate a scene at nighttime in the moonlight.
Syntax:
bool Imagick::blueShiftImage( $factor)
Parameters: This function accept only single parameter $factor which is used to specify the mutes colors of image.
Return Value: This function returns True on success.
Below programs illustrate the Imagick::blueShiftImage() function in PHP:
Program 1:
Original Image:

<?php // Create new imagick object $imagick = new Imagick( // Using blueShiftImage function $imagick->blueShiftImage(1.3); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); ?> |
Output:

Program 2:
Original Image:

<?php // Create new imagick object $imagick = new Imagick( // Using blueShiftImage function $imagick->blueShiftImage(2.5); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); ?> |
Output:

Reference: http://php.net/manual/en/imagick.blueshiftimage.php
Recommended Posts:
- PHP | Imagick equalizeImage() Function
- PHP | Imagick enhanceImage() Function
- PHP | Imagick getCopyright() Function
- PHP | Imagick extentImage() Function
- PHP | Imagick::shaveImage() Function
- PHP | Imagick sharpenImage() Function
- PHP | Imagick motionBlurImage() Function
- PHP | Imagick edgeImage() Function
- PHP | Imagick embossImage() Function
- PHP | Imagick cycleColormapImage( ) Function
- PHP | Imagick despeckleImage() Function
- PHP | Imagick convolveImage() Function
- PHP | Imagick pingImageBlob() Function
- PHP | Imagick paintTransparentImage() Function
- PHP | Imagick gammaImage() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



