Patriot Posted March 2, 2008 Share Posted March 2, 2008 The following iPod Touch is placed on the image with imagecopy. The code is: // selectPrizeImage() is a function that tells it which image to use for the freebie, don't worry about that. $prizesimage = imagecreatefrompng(selectPrizeImage($prizenumber)); imagecopy($banner, $prizesimage, 303, 0, 0, 0, 97, 105); Does anyone know why the quality is so poor? Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/ Share on other sites More sharing options...
redarrow Posted March 2, 2008 Share Posted March 2, 2008 what is the bits of the png pic 8 16 32 64 128 in other words is the pic it self designed correctly.............. Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481375 Share on other sites More sharing options...
Patriot Posted March 2, 2008 Author Share Posted March 2, 2008 Sorry, it got messed up. Here's the image: Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481377 Share on other sites More sharing options...
Patriot Posted March 2, 2008 Author Share Posted March 2, 2008 up Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481444 Share on other sites More sharing options...
tippy_102 Posted March 2, 2008 Share Posted March 2, 2008 I took a look at your ipod image in photoshop, and it doesn't look any better than the results you got above. It looks ok on a light background, but not dark. You should create using a dark background then make the dark transparent. Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481450 Share on other sites More sharing options...
Patriot Posted March 2, 2008 Author Share Posted March 2, 2008 Thanks for the reply! I'm taking the iPod and placing it on the background. It seems to be losing quality when it is placed on the background, as you can see in the first image. The colors on the iPod have degraded. Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481466 Share on other sites More sharing options...
tippy_102 Posted March 2, 2008 Share Posted March 2, 2008 Ya....that's because it needs to be created on a dark background. http://toolkit.crispen.org/formats/png.html Read the "Tricks with transparency" section. Quote Link to comment https://forums.phpfreaks.com/topic/93951-poor-imagecopy-quality/#findComment-481479 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.