Dashed border around composite image (transparent background)
Posted: 2015-06-25T05:59:20-07:00
Recently noticed a strange bug
When we place an image on a transparent background
a dashed border appears around it
Here's the code we are using
ImageMagick 6.9.1-2 Q16 amd64
IMagick extension 3.1.2
Is it a bug or some behavior changed recently?
When we place an image on a transparent background
a dashed border appears around it
Here's the code we are using
Code: Select all
<?php
$canvas = new Imagick();
$canvas->newImage(500, 500, new ImagickPixel('transparent'), 'png');
$im = new Imagick('im_src.png');
$canvas->compositeImage($im, Imagick :: COMPOSITE_DEFAULT, 20, 20);
$canvas->writeImage('im_dst.png');
ImageMagick 6.9.1-2 Q16 amd64
IMagick extension 3.1.2
Is it a bug or some behavior changed recently?