Transparency problems
Posted: 2015-06-04T08:20:24-07:00
In the case of transparent background, character will be degraded.
It does not occur in older versions.
Please tell me how to resolve.
Comparison image
https://img.kie.nu/.2zV2.png
imagick module version
3.1.2
ImageMagick version
ImageMagick 6.9.1-3 Q16 x86_64 2015-05-28
It does not occur in older versions.
Please tell me how to resolve.
Comparison image
https://img.kie.nu/.2zV2.png
imagick module version
3.1.2
ImageMagick version
ImageMagick 6.9.1-3 Q16 x86_64 2015-05-28
Code: Select all
<?php
$back = new Imagick();
$back->newImage(640, 200, 'none');
$draw = new ImagickDraw();
$draw->setFontSize(100);
$draw->setFillColor('yellow');
$back->annotateImage($draw, 10, 140, 0, 'Hello World');
$back->setImageFormat('png');
header('Content-type: image/png');
echo $back;