I am creating some icons for use in a php image script.
Basically, the user can pick an image to appear on a background. The image they choose, I have created in png 24 The background is png 24
But when I view the image, I am getting bleed thru, as if I had saved the image as png8
My settings in adobe are:
width:35px height 35px resolution 72 transparent
color profile: sRGB IEC61966 -2.1
Pixel Aspect Ratio Square Pixels.
I was wondering if I should make additional settings. I think I once heard someone mention ( matte ), but I am buggered if I can rememebr where.
The following 2 images highlight the issue.
First Image works perfectly.
![]()
Second Image has background opacity …
![]()
Basically when I use this image within php image generator ( the second image ) I get white opaque background.
Plus the shadow is all buggered .. is this because of gradient shadows ? and its bleeding thru ?
If you are using GD to reshape the images it has a known issue with transparent backgrounds… There is a fix for it too but I haven’t had to mess with it in a while.
Yer, we have it narrowed down to
imagealphablending($img, false);
imagesavealpha($img, true);
Will keep fiddling
