����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.220 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/cpanel/ea-php81/root/usr/share/tests/pecl/imagick/tests/ |
Upload File : |
--TEST--
Test cropthumbnail
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$im = new Imagick("magick:rose");
$im->cropThumbnailImage(200, 200);
var_dump($im->getImageGeometry());
$im = new Imagick("magick:rose");
$im->cropThumbnailImage(170, 120);
var_dump($im->getImageGeometry());
$im = new Imagick("magick:rose");
$im->cropThumbnailImage(50, 50);
var_dump($im->getImageGeometry());
$im = new Imagick("magick:rose");
$im->cropThumbnailImage(60, 120);
var_dump($im->getImageGeometry());
$im = new Imagick("magick:logo");
$im->cropThumbnailImage(100, 100);
var_dump($im->getImageGeometry());
$im = new Imagick("magick:rose");
$im->cropThumbnailImage(200, 10);
var_dump($im->getImageGeometry());
?>
--EXPECTF--
array(2) {
["width"]=>
int(200)
["height"]=>
int(200)
}
array(2) {
["width"]=>
int(170)
["height"]=>
int(120)
}
array(2) {
["width"]=>
int(50)
["height"]=>
int(50)
}
array(2) {
["width"]=>
int(60)
["height"]=>
int(120)
}
array(2) {
["width"]=>
int(100)
["height"]=>
int(100)
}
array(2) {
["width"]=>
int(200)
["height"]=>
int(10)
}