tibberous Posted August 8, 2007 Share Posted August 8, 2007 I have an image with two colors, black and white. I am trying to make the black transparent, and replace the white with a given color. Does anyone know how to do this? I tried $image = imagecreatefromgif("sheep.gif"); imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0)); To try to make black transparent, but it doesn't seem to work. Quote Link to comment https://forums.phpfreaks.com/topic/63867-colorizing-an-image/ Share on other sites More sharing options...
tibberous Posted August 8, 2007 Author Share Posted August 8, 2007 I got everything working except being able to turn a solid color into a transparent one. Anyone know how to do that? Quote Link to comment https://forums.phpfreaks.com/topic/63867-colorizing-an-image/#findComment-318346 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.