PATH:
opt
/
alt
/
tests
/
alt-php83-pecl-vips_1.0.13-1.el8
/
tests
--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
[-] 003.phpt
[edit]
[-] 032.phpt
[edit]
[-] 042.phpt
[edit]
[-] 001.phpt
[edit]
[-] 006.phpt
[edit]
[-] 017.phpt
[edit]
[-] 038.phpt
[edit]
[-] 029.phpt
[edit]
[-] 007.phpt
[edit]
[-] 014.phpt
[edit]
[-] 012.phpt
[edit]
[-] 041.phpt
[edit]
[-] 010.phpt
[edit]
[-] 013.phpt
[edit]
[-] 030.phpt
[edit]
[-] 035.phpt
[edit]
[-] 004.phpt
[edit]
[-] 026.phpt
[edit]
[-] 027.phpt
[edit]
[+]
..
[-] 036.phpt
[edit]
[-] 002.phpt
[edit]
[-] 040.phpt
[edit]
[-] 009.phpt
[edit]
[-] 037.phpt
[edit]
[-] 031.phpt
[edit]
[-] 005.phpt
[edit]
[-] 008.phpt
[edit]
[-] 028.phpt
[edit]
[-] 011.phpt
[edit]
[+]
images
[-] 039.phpt
[edit]
[-] 015.phpt
[edit]
[-] 016.phpt
[edit]
[-] 033.phpt
[edit]
[-] 034.phpt
[edit]