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        //v6.4.2-6
14        $imagick = new \Imagick();
15    $imagick->newPseudoImage(640, 480, "magick:logo");
16        $points = array(
17            0
18        );
19
20        //Only do partial arc
21//        $points = array(
22//            60,20, 0,0, -60,60
23//        );
24
25//        HorizontalTile
26
27        $imagick->setimagebackgroundcolor("#fad888");
28        $imagick->setImageVirtualPixelMethod( \Imagick::VIRTUALPIXELMETHOD_HORIZONTALTILE);
29        $imagick->distortImage(\Imagick::DISTORTION_POLAR, $points, TRUE);
30
31    $bytes = $imagick;
32    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
33
34echo "Ok";
35?>
36--EXPECTF--
37Ok