📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 13:26:41
📂
/
/
opt
/
alt
/
tests
/
alt-php85-pecl-vips_1.0.13-1.el8
/
tests
✏️
Editing: 009.phpt
--TEST-- input array image args work --SKIPIF-- <?php if (!extension_loaded("vips")) print "skip"; ?> --FILE-- <?php $filename = dirname(__FILE__) . "/images/img_0076.jpg"; $image = vips_image_new_from_file($filename)["out"]; $r = vips_call("extract_band", $image, 0)["out"]; $g = vips_call("extract_band", $image, 1)["out"]; $b = vips_call("extract_band", $image, 2)["out"]; $new_image = vips_call("bandjoin", NULL, [$r, $g, $b])["out"]; $diff = vips_call("subtract", $image, $new_image)["out"]; $diff = vips_call("abs", $diff)["out"]; $diff = vips_call("max", $diff)["out"]; if ($diff == 0) { echo "pass"; } ?> --EXPECT-- pass
💾 Save Changes
❌ Cancel