Welcome Guest, Not a member yet? Register   Sign In
image library - gd2 - png/gif resizing with transparency
#1

[eluser]woopsicle[/eluser]
hi all

i have some code to create a thumbnail of a given image. it all works fine - except when the uploaded image is a gif or png and has transparency.

in this case, it will produce an image with black where the transparency should have been.

1) can the image lib not just resize an image and keep transparency as is
2) if not, how can i make it so the transparency changes to white (i know this has something to do with using imagecreate rather than imagecreatetruecolor but i am not an expert to know how/where to change the Image Library code).

i am using gd2 by the way - i dont have imagemagick.. but if someone says it works in imagemagick then i will try to see if i can get it installed.

Thanks


Messages In This Thread
image library - gd2 - png/gif resizing with transparency - by El Forum - 07-17-2007, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB