PhotoDune

Transparent PNG issue

3390 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

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 ?

38 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
djmceltic says

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.

3390 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Yer, we have it narrowed down to

imagealphablending($img, false);

imagesavealpha($img, true);

Will keep fiddling

by
by
by
by
by