开发者

PHP Imagemagick vignette

开发者 https://www.devze.com 2023-04-02 14:45 出处:网络
How want to apply a vignette effect to an image using PHP with ImageMagik.I found this function but I\'m not 开发者_如何学JAVAsure how to use it.

How want to apply a vignette effect to an image using PHP with ImageMagik. I found this function but I'm not 开发者_如何学JAVAsure how to use it.

Imagick::vignetteImage

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);
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消