Forum Moderators: coopster
I was using a script to upload images and been working good for 6 months but then i discovered that uploaded images with transperancy turns to black!
SO i found out how to fix that using this function imagecolortransparent()
But then i found out that pictures with shadow created in photoshop get like strange pixels around the shadow!
SO i just want to detect if there is transperancy then i use that function, otherwise i dont use it!
The thing is that the images with shadow works fine if i dont use the imagecolortransparent() function!
Any input is appreciated!
Thanks in advance
So, also basically from a comment on that manual page, here's the way to check if transparency exists:
$transparentcolor = imagecolortransparent($img_resource);
if($transparentcolor >= 0){
// image has transparency
}