1--TEST-- 2Test Imagick, distortImage 3--SKIPIF-- 4<?php 5$imageMagickRequiredVersion=0x675; 6require_once(dirname(__FILE__) . '/skipif.inc'); 7?> 8--FILE-- 9<?php 10 11$distortion = 1; 12 13 $imagick = new \Imagick(); 14 $imagick->newPseudoImage(640, 480, "magick:logo"); 15 $points = array( 16 0.9,0.3, 17 -0.2,0.7, 18 20,15 19 ); 20 $imagick->setimagebackgroundcolor("#fad888"); 21 $imagick->setImageVirtualPixelMethod( \Imagick::VIRTUALPIXELMETHOD_BACKGROUND ); 22 $imagick->distortImage( \Imagick::DISTORTION_AFFINEPROJECTION, $points, TRUE ); 23 header( "Content-Type: image/jpeg" ); 24 $bytes = $imagick; 25 if (strlen($bytes) <= 0) { echo "Failed to generate image.";} 26 27echo "Ok"; 28?> 29--EXPECTF-- 30Ok