--TEST-- Test compositeImageGravity --SKIPIF-- = 0x660 && $v ['versionNumber'] < 0x670) // die ('skip seems to be broken in this version of ImageMagick'); ?> --FILE-- 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