PHP Imagemagick vignette
Asked Answered
S

2

1

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!

Scriptwriter answered 6/9, 2011 at 14:10 Comment(1)
Please define what you mean by "vignette effect" exactlyBemock
B
1

Correct answer: read the docs.

Blackcock answered 6/9, 2011 at 14:13 Comment(1)
The PHP page for Imagick::vignetteImage seems to reflect the correct params. Not sure if it was updated after this answer was posted or what, but the param list above is not correct. Here's a relevant discussion: #17847165Presbyter
U
0

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);
?>
Unfriendly answered 6/9, 2011 at 14:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.