Patriot Posted March 7, 2008 Share Posted March 7, 2008 What our page does is takes a background and places a picture of a gift on it using imagecopy. We also tried the imagecreatetruecolor function, but that didn't work either; if you know anything about it, please post. Background: .gif, 400 * 105 Gift: .gif, 84 * 97 ================================== Examples: ================================== Separated images: ================================== Does anyone know why the prize is losing color/resolution when placed on the background? Thanks, Gil Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/ Share on other sites More sharing options...
BlueSkyIS Posted March 7, 2008 Share Posted March 7, 2008 it may be because you are placing a gif on a png. you might need to convert your pngs to gifs first. Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/#findComment-486520 Share on other sites More sharing options...
Patriot Posted March 7, 2008 Author Share Posted March 7, 2008 It's all .gif... Thanks for the reply! (the top one is now .gif... it just wasn't when I uploaded that) Any idea why it's not working? Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/#findComment-486548 Share on other sites More sharing options...
BlueSkyIS Posted March 7, 2008 Share Posted March 7, 2008 i meant the image you are placing the gif onto, http://img.photobucket.com/albums/v76/gilbert/sigt2.png is that also a gif before you place another gif onto it? Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/#findComment-486559 Share on other sites More sharing options...
Patriot Posted March 7, 2008 Author Share Posted March 7, 2008 Yes, they're both gif's... the other used to be PNG but we changed it (that's just the old version, the messed up images are based on the new version). Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/#findComment-486565 Share on other sites More sharing options...
BlueSkyIS Posted March 7, 2008 Share Posted March 7, 2008 i suspect that the target image has a limited color palette and the secondary image's colors aren't all included. you might want to look into imagecreatetruecolor() and try different methods of combining the images instead of simply placing one on the other. Quote Link to comment https://forums.phpfreaks.com/topic/94978-imagecopy-resolution-and-color-loss/#findComment-486577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.