• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resizing of transparent/animated gifs [solved]

#20
[eluser]Grasp Minds[/eluser]
Improved code!

Code:
//Start- For transparency//
imagecolortransparent($dst_img, imagecolorallocatealpha($dst_img, 0, 0, 0, 127));
imagealphablending($dst_img, false);
imagesavealpha($dst_img, true);
//End- For transparency//

Please put the above code after the following line

Code:
$dst_img = $create($this->width, $this->height);

Thank You!
Asik


Messages In This Thread
Resizing of transparent/animated gifs [solved] - by El Forum - 10-17-2007, 07:02 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 10-17-2007, 07:15 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 10-17-2007, 07:18 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 10-17-2007, 08:11 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 10-23-2007, 04:55 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 11-15-2007, 04:57 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 04-07-2008, 04:41 PM
Resizing of transparent/animated gifs [solved] - by El Forum - 08-23-2009, 12:09 PM
Resizing of transparent/animated gifs [solved] - by El Forum - 09-15-2009, 05:28 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 09-15-2009, 07:01 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 09-15-2009, 07:21 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 09-19-2009, 07:18 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 04-17-2010, 09:49 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 07-15-2010, 08:41 PM
Resizing of transparent/animated gifs [solved] - by El Forum - 11-25-2010, 05:21 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 12-24-2010, 02:47 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 01-27-2011, 08:44 PM
Resizing of transparent/animated gifs [solved] - by El Forum - 06-08-2011, 10:02 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 07-20-2011, 06:58 AM
Resizing of transparent/animated gifs [solved] - by El Forum - 07-21-2011, 12:54 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.