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        //Make some text arc around the center of it's image
14//        convert logo: -resize x150 -gravity NorthEast -crop 100x100+10+0! \
15//        \( -background none label:'IM Examples' \
16//        -virtual-pixel Background +distort Arc '270 50 20' \
17//        -repage +75+21\! \)  -flatten  arc_overlay.jpg
18
19        $imagick = new \Imagick();
20    $imagick->newPseudoImage(640, 480, "magick:logo");
21        $degrees = array( 180 );
22        $imagick->setimagebackgroundcolor("#fad888");
23        $imagick->setImageVirtualPixelMethod( \Imagick::VIRTUALPIXELMETHOD_BACKGROUND );
24        $imagick->distortImage( \Imagick::DISTORTION_ARC, $degrees, TRUE );
25        header( "Content-Type: image/jpeg" );
26    $bytes = $imagick;
27    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
28
29echo "Ok";
30?>
31--EXPECTF--
32Ok