Current Path : /usr/opt/php56/share/pear/test/imagick/tests/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/php56/share/pear/test/imagick/tests/261_compositeImageGravity.phpt |
--TEST-- Test compositeImageGravity --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); $v = Imagick::getVersion(); if ($v['versionNumber'] < 0x693) die ('skip too old ImageMagick'); // if ($v ['versionNumber'] >= 0x660 && $v ['versionNumber'] < 0x670) // die ('skip seems to be broken in this version of ImageMagick'); ?> --FILE-- <?php $im1 = new Imagick("magick:logo"); $im2 = new Imagick("magick:logo"); $im2->scaleImage( $im2->getImageWidth() / 2, $im2->getImageHeight() / 2 ); $im1->compositeImageGravity( $im2, \Imagick::COMPOSITE_ATOP, \Imagick::GRAVITY_NORTHEAST ); $im1->compositeImageGravity( $im2, \Imagick::COMPOSITE_ATOP, \Imagick::GRAVITY_SOUTH ); // $im1->setImageFormat('png'); // $im1->writeImage('compositeImageGravity.png'); echo "Ok"; ?> --EXPECT-- Ok