PNG24 Alpha transparent fix |
[eluser]sankai[/eluser]
http://ellislab.com/forums/viewthread/77836/ by the author 'mandelkern' article =========================================================== I found a solution at http://www.webdeveloper.com/forum/showth...p?t=178210. Nearly at line 514 - $dst_img = $create($this->width, $this->height); I changed the code this way: //$dst_img = $create($this->width, $this->height); /* TRANSPARENT PNG */ $dst_img = imagecreatetruecolor($this->width, $this->height); $transparent = imagecolorallocatealpha($dst_img,0,255,0,127); imagefill($dst_img,0,0,$transparent); $copy($dst_img, $src_img, 0, 0, $this->x_axis, $this->y_axis, $this->width, $this->height, $this->orig_width, $this->orig_height); imageAlphaBlending($dst_img, false); imageSaveAlpha($dst_img, true); ..and now it works. ======================================================================
[eluser]sl3dg3hamm3r[/eluser]
wow, thanx for that fix, it just helped me a lot and prevented further pain. Now I just must remember to fix it again in case of any CI-upgrade |
Welcome Guest, Not a member yet? Register Sign In |