Permanently making alpha color transparent

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
Morgon

Permanently making alpha color transparent

Post by Morgon »

I'm having some trouble removing this color from an image.

If you look at the file, it seems just fine - however, you can see the color re-appear when loaded by Imagick:

Code: Select all

<?php
$im = new Imagick('bg.png');
header("Content-Type: image/png");
echo $im;
I can use paintTransparentImage() to hide it again, but even if I save it from Imagick, it doesn't actually go away.
How can I make this 'real' transparency?

Thank you!
Attachments
bg.png
bg.png (3.16 KiB) Viewed 4059 times
Post Reply