Transparency problems

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
mikume
Posts: 2
Joined: 2015-06-04T04:46:37-07:00
Authentication code: 6789

Transparency problems

Post by mikume »

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

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;
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Transparency problems

Post by fmw42 »

I believe this issue is being worked on for the next release, IM 6.9.1.5. See the bugs forum.
mikume
Posts: 2
Joined: 2015-06-04T04:46:37-07:00
Authentication code: 6789

Re: Transparency problems

Post by mikume »

Thank you so much.
Post Reply