Composite Displacement
Posted: 2017-11-12T06:17:27-07:00
Hi.
(command line) Code:
(command line) Result:
true
(PHP) Code:
(PHP) Result:
false
Question:
How to get the same result in PHP?
(command line) Code:
Code: Select all
composite displace_map.jpg label.jpg -displace 0x10 result.png
true
(PHP) Code:
Code: Select all
$Displace = new Imagick("displace_map.jpg");
$Image = new Imagick("label.jpg");
$Image->compositeImage( $Displace, Imagick::COMPOSITE_DISPLACE, 0, 10);
$Image->writeImage("result.jpg");
false
Question:
How to get the same result in PHP?