PNG Transparency and Merging Images

Discussion in 'PHP' started by trigoon, Feb 19, 2008.

  1. #1
    Im trying to learn a bit more image manipulation with php using GD Library but running into some problems.

    What im trying to do is merge two PNG images, the first one would be at the bottom with a white background but the one at the top would have a transparent background.

    I accomplished this using a watermarking tutorial I found but it only shows how to do it with GIF images, the problem with GIF images is that when merging images you get TERRIBLE quality especially when it comes to images that have decent quality. I read around and saw that PNG would be the best alternative that would produce an image with half decent quality.

    If anyone knows how I can do this I would be grateful :) Also for transparent PNGs do I need to have a certain background colour?
     
    trigoon, Feb 19, 2008 IP