Hello everyone,

I'm trying to combine several PNG images into a single one.

header("Content-type: image/png");
$image = imagecreate(450, 155);
$white = imagecolorallocate($image, 255, 255, 255);
// later in code...
imagecopymerge($image, imagecreatefrompng("Header_normal.png"), 0, 0, 0, 0, 450, 20, 100);
// later in code...
imagepng($image);
imagedestroy($image);

However, when I use imagecopymerge() to do this, the quality it outputs is terrible. Here's a comparison:

Original Image
What it outputs

Is it something wrong with PHP or the image? If neither, I can always most more of the script to see if it's something wrong with my coding.

    Update: I apologize, I just figured out my issue. A moderator may close this now.

      Would you mind posting your solution?

      Also, you can "close" the thread by marking it resolved in the thread tools near the top of the thread.

        Write a Reply...