1--TEST-- 2Test Imagick, vignetteImage 3--SKIPIF-- 4<?php 5$imageMagickRequiredVersion=0x675; 6require_once(dirname(__FILE__) . '/skipif.inc'); 7?> 8--FILE-- 9<?php 10 11$blackPoint = 10; 12$whitePoint = 10; 13$x = 10; 14$y = 10; 15 16function vignetteImage($blackPoint, $whitePoint, $x, $y) { 17 $imagick = new \Imagick(); 18 $imagick->newPseudoImage(640, 480, "magick:logo"); 19 $imagick->vignetteImage($blackPoint, $whitePoint, $x, $y); 20 $bytes = $imagick->getImageBlob(); 21 if (strlen($bytes) <= 0) { echo "Failed to generate image.";} 22} 23 24vignetteImage($blackPoint, $whitePoint, $x, $y) ; 25echo "Ok"; 26?> 27--EXPECTF-- 28Ok