mattal999 Posted December 3, 2008 Share Posted December 3, 2008 Hi, I have this script: <?php header('content-type: image/png'); $head="images/head/1.png"; $hair="images/hair/1.png"; $x=0; $y=0; $head=imagecreatefrompng($head); imagealphablending($head, true); $hair=imagecreatefrompng($hair); imagealphablending($hair, true); imagecopy($head, $hair, 0, 0, 0, 0, 150, 300); imagepng($head); imagedestroy($img); ?> Which produces this: As you can see, it has messed up somewhere in the line. I tried it with head being a jpeg and it worked perfectly. I am not sure why it is doing this but do you guys have any ideas on how to fix it? Cheers. Link to comment https://forums.phpfreaks.com/topic/135409-2-png-overlays/ Share on other sites More sharing options...
mattal999 Posted December 3, 2008 Author Share Posted December 3, 2008 Bump. Link to comment https://forums.phpfreaks.com/topic/135409-2-png-overlays/#findComment-705324 Share on other sites More sharing options...
blueman378 Posted December 3, 2008 Share Posted December 3, 2008 well it looks fine in google chrome, anyway the problem youre having is that by default ie has no support for transparency in pngs. google ie png transparency hack Link to comment https://forums.phpfreaks.com/topic/135409-2-png-overlays/#findComment-705431 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.