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

Learn More

How to add random noise to image with imagick [PHP]

Forked from How to add an adaptive blur filter to image with imagick.

182 Runs 649 Views 195 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<?php
/**
 * PHP Imagick
 * Add random noise to an image
 */

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

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

//adding random noice
$image->addNoiseImage (4,2);
echo $image;

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

Your session has timed out.

Dismiss (the page may not function properly).