Re: Transparent image resizing using php 4.4.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:42 AM +0500 6/11/07, Sukhwinder Singh wrote:
try:

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

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.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux