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. 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? Link to comment https://forums.phpfreaks.com/topic/63867-colorizing-an-image/#findComment-318346 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.