����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.140 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 : /opt/cpanel/ea-php81/root/usr/share/tests/pecl/imagick/tests/ |
Upload File : |
--TEST--
Test Imagick, channelFxImage
--SKIPIF--
<?php
require_once(dirname(__FILE__) . '/skipif.inc');
checkClassMethods('Imagick', array('channelFxImage'));
?>
--FILE--
<?php
// MagickChannelFxImage() applies a channel expression to the specified image.
// The expression consists of one or more channels, either mnemonic or numeric
// (e.g. red, 1), separated by actions as follows:
//
// <=> exchange two channels (e.g. red<=>blue)
// => transfer a channel to another (e.g. red=>green)
// , separate channel operations (e.g. red, green)
// | read channels from next input image (e.g. red | green)
// ; write channels to next output image (e.g. red; green; blue)
function whiteBalanceImage() {
$imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
$result = $imagick->channelFxImage("red<=>blue");
// $result->writeImage(__DIR__ . '/complexImages_output_image.png');
$result->getImageBlob();
}
whiteBalanceImage() ;
echo "Ok";
?>
--EXPECTF--
Ok