PHP Imagemagick vignette

自作多情 提交于 2019-12-11 06:29:59

问题


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.

Imagick::vignetteImage

Thanks for your help!


回答1:


Correct answer: read the docs.




回答2:


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


来源:https://stackoverflow.com/questions/7321289/php-imagemagick-vignette

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!