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
----- Original Message ----- From: "tedd" <tedd@sperling.com>
To: "Sukhwinder Singh" <ssruprai@hotmail.com>; <php-general@lists.php.net>
Sent: Sunday, June 10, 2007 10:08 PM
Subject: Re: [PHP] Transparent image resizing using php 4.4.x
At 1:12 AM +0500 6/10/07, Sukhwinder Singh wrote:
-snip-
Could anyone please provide me a solution which works using php 4.4.x
Sukhwinder Singh
Instead of:
imagecolortransparent($img_resized, $transparent);
try:
imagecolortransparent($img,imagecolorat($img,0,0));
Look-up imagecolorat().
Cheers,
tedd
-- -------
http://sperling.com http://ancientstones.com http://earthstones.com