Speed up development with full-stack environments for every branch.

Learn More

How to Blend the fill color of the image with imagick [PHP]

365 Runs 633 Views 199 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<?php
/**
 * PHP Imagick
 * Blends the fill color with the image
 */

//sending image header to proper display the image
header('Content-type: image/jpeg');

//loading the image
$image = new Imagick('images/picture.jpg');

//blends the color red
$image->colorizeImage  ('red',0.0);
echo $image;

?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).