Resizing of transparent/animated gifs [solved] |
[eluser]#1313[/eluser]
There are no native functions capable of resizing transparent gifs in GD2. So i wrote a little patch to the image_lib image_process_gd() function (actually, this patch is copied from PHP Online Manual): 0. backup your \system\libraries\Image_lib.php 1. locate following line of code in the \system\libraries\Image_lib.php (somewhere in the image_process_gd() function, near line #512) Code: $dst_img = $create($this->width, $this->height); 2. insert these lines right after that line: Code: // keeping transparency 3. test and see if this helped In my case this patch completely did the magic and now my transparent gifs (and pngs) remain transparent after resizing. Hope this'll help someone. |
Welcome Guest, Not a member yet? Register Sign In |