Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm writing a php script with the gd library.  I had everything working
wonderfully, however, all of the sudden, If i import two png's into one
image, the quality of the second png degrades very badly.

If I only use one, it looks fine.  If i load one with
ImageCreateFromPNG and reference it twice, it looks fine.  It's only
when I use ImageCreateFromPNG twice on two different files, the second
one looks awful.  Any suggestions?

Re: ImageCreateFromPNG

rich wrote:

Quoted text here. Click to load it

You're trying to combine images with different colour tables.

Use imagecreatetruecolor() to make a 24-bit full-colour image, and paste
your PNGs into that.

phil [dot] ronan @ virgin [dot] net /

Re: ImageCreateFromPNG

Excellent!  That was it.  Thank you much.

Site Timeline