HEX
Server: LiteSpeed
System: Linux cluster02.load-balancer.x2.network 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: kbdhpghp (1098)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/php83/usr/share/pear/test/imagick/tests/299_Imagick_rangeThresholdImage.phpt
--TEST--
Test Imagick, rangeThresholdImage
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('rangeThresholdImage'));
?>
--FILE--
<?php


function rangeThresholdImage() {
    $imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');

    $imagick->rangeThresholdImage(
		32,
		64,
		192,
		228
	);

    $imagick->writeImage(__DIR__ . '/rangeThresholdImage_output_image.png');
//    $imagick->getImageBlob();
}

rangeThresholdImage() ;
echo "Ok";
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/rangeThresholdImage_output_image.png');
?>
--EXPECTF--
Ok