How want to apply a vignette effect to an image using PHP with ImageMagik. I found this function but I'm not sure how to use it.
Thanks for your help!
How want to apply a vignette effect to an image using PHP with ImageMagik. I found this function but I'm not sure how to use it.
Thanks for your help!
Correct answer: read the docs.
Assuming you have the correct version of Image Magick and the PHP library installed:
<?php
$image = new Imagick();
$image->readImage($in);
$image->vignetteImage ( float $blackPoint , float $whitePoint , int $x , int $y )
$image->writeImage($out);
?>
© 2022 - 2024 — McMap. All rights reserved.