Re: Transparent image resizing using php 4.4.x
| From: | tedd | Date: | Sun, 10 Jun 2007 20:33:53 +0000 |
| Subject: | Re: Transparent image resizing using php 4.4.x | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256566@lists.php.net to get a copy of this message | ||
At 12:42 AM +0500 6/11/07, Sukhwinder Singh wrote:
I've seen it mentioned before that down-sizing a transparent image presents a problem to the algorithm that calculates what colors are more relevant. As such, if you redefine the color that you want to be transparent at 0,0 -- then the imagecolortransparent() function has an easier time of it. At least, that's my take on it -- could be wrong. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comtry: imagecolortransparent($img,imagecolorat($img,0,0)); Look-up imagecolorat().I had tried it earlier. As I have written in my other emails. I have tried almost all solutions. I am really wondering that no one has every faced any such problem. I'll try what you have suggested. But I think I have already and it didn't work. But I'll let you know after trying again. Sukhwinder Singh