radioman10 Posted July 6, 2010 Share Posted July 6, 2010 Hi, I have uploaded a PNG image to my web hosting service. It is at http://www.(mysitenamehere).com/image.png I need a php script that makes black (RGB 0 0 0) transparent, or clear, in the image, and spit out a different image where the image has black as transparent. Is this possible??? I would greatly appreciate replies. Link to comment https://forums.phpfreaks.com/topic/206824-image-help/ Share on other sites More sharing options...
phpSensei Posted July 6, 2010 Share Posted July 6, 2010 Haha no offense but i didn't understand much... using the GD library yes its possible, but pease elaborate a little more on waht you want to do exactly Link to comment https://forums.phpfreaks.com/topic/206824-image-help/#findComment-1081653 Share on other sites More sharing options...
radioman10 Posted July 6, 2010 Author Share Posted July 6, 2010 Sorry I wasn't detailed. Let's try that again. I have uploaded an image to the web. The image is located at http://www.(my-site-name-here).com/rooster.png What I am trying to do is make all of the black (0 0 0) pixels in the image transparent using a PHP script. I'd like the PHP script to make the black transparent. Is that a little more descriptive? Link to comment https://forums.phpfreaks.com/topic/206824-image-help/#findComment-1081655 Share on other sites More sharing options...
Dragosvr92 Posted July 6, 2010 Share Posted July 6, 2010 you could just say you have a image.. none cares where you have it Why do you need to do it in PHP ? why cant you just do it in Gimp ,Photoshop or whatever........ it will be alot simpler Link to comment https://forums.phpfreaks.com/topic/206824-image-help/#findComment-1081657 Share on other sites More sharing options...
radioman10 Posted July 6, 2010 Author Share Posted July 6, 2010 The reason I can't do it in Photoshop or a similar program is because I have a program that is updating a new image about every five minutes. That's why it has to be done in PHP. Link to comment https://forums.phpfreaks.com/topic/206824-image-help/#findComment-1081659 Share on other sites More sharing options...
Dragosvr92 Posted July 6, 2010 Share Posted July 6, 2010 The reason I can't do it in Photoshop or a similar program is because I have a program that is updating a new image about every five minutes. That's why it has to be done in PHP. Ah sorry... i have no idea check here maybe you will find something useful Link to comment https://forums.phpfreaks.com/topic/206824-image-help/#findComment-1081661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.