djenigma wrote in php 😡frustrated

Listens: real life - send me an angel

php/gd image question

hello all.

i'm using php 4.2.3 and gd 1.6.2. i'm writing a script that takes an image uploaded by a user from their browser, and overlays it onto an image located on the server. the problem i'm running into is that the color palette of the image on the server often doesn't contain all the colors of the image being uploaded, and therefore the uploaded image doesn't display w/ the correct colors in the final "combined" image.

short of allocating all 16,581,375 colors manually (which i'm certain would probably make the server have a heart attack anyways, since this script will be under pretty heavy usage once it goes live)... is there a way to make this work?

i'd appreciate all ideas and assistance. thanks.