K
Kirk Is
So I'm trying to load a PNG with transprency...
use GD;
$im = GD::Image->newFromPng("orig/abe.png");
print $im->transparent(),"\n";
but it always prints -1
I think, confusing the issue, there might be two "blacks" in the palette,
one use in the image, and one to set the transperency...
The ancient version of PSP I'm using doesn't respect the transparency
either, but irfanview and browsers get it correct.
Any suggestions? Is there another way of loading the image that might
preserve the palette and the transparency better?
Thanks!
use GD;
$im = GD::Image->newFromPng("orig/abe.png");
print $im->transparent(),"\n";
but it always prints -1
I think, confusing the issue, there might be two "blacks" in the palette,
one use in the image, and one to set the transperency...
The ancient version of PSP I'm using doesn't respect the transparency
either, but irfanview and browsers get it correct.
Any suggestions? Is there another way of loading the image that might
preserve the palette and the transparency better?
Thanks!