AdySmith Posted January 1, 2008 Share Posted January 1, 2008 Hello, I'm trying to build a website similar to Gaia Online, which includes the dress-up avatar system, but I've come across a critical error that I need to fix. I'm using GD (gif) to make the avatar system, but whenever I have avatars with a couple of different main colors (including different shades), the avatar loses a lot of its color. Is there anyway to boost the amount of colors allowed on the image? I've tried converting everything to PNG but it does the same. Any help is appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/83996-gd-gif-help/ Share on other sites More sharing options...
hitman6003 Posted January 1, 2008 Share Posted January 1, 2008 A gif can only have 256 colors. Use a jpg or png if you need more. Quote Link to comment https://forums.phpfreaks.com/topic/83996-gd-gif-help/#findComment-427451 Share on other sites More sharing options...
Barand Posted January 1, 2008 Share Posted January 1, 2008 ... and use imagecreatetruecolor() instead of imagecreate() Quote Link to comment https://forums.phpfreaks.com/topic/83996-gd-gif-help/#findComment-427455 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.