image_lib - resizing transparent png24 |
[eluser]mandelkern[/eluser]
I found a solution at http://www.webdeveloper.com/forum/showthread.php?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. |
Messages In This Thread |
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 01:56 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 02:47 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 02:59 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 03:06 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 03:26 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 03:48 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 09:45 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 10:08 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 10:42 AM
image_lib - resizing transparent png24 - by El Forum - 04-25-2008, 10:47 AM
image_lib - resizing transparent png24 - by El Forum - 05-11-2008, 04:03 PM
image_lib - resizing transparent png24 - by El Forum - 05-14-2008, 03:27 PM
image_lib - resizing transparent png24 - by El Forum - 05-14-2008, 05:34 PM
image_lib - resizing transparent png24 - by El Forum - 05-14-2008, 05:39 PM
image_lib - resizing transparent png24 - by El Forum - 06-13-2008, 05:22 PM
image_lib - resizing transparent png24 - by El Forum - 06-13-2008, 05:45 PM
image_lib - resizing transparent png24 - by El Forum - 06-24-2010, 02:26 PM
image_lib - resizing transparent png24 - by El Forum - 12-24-2010, 07:01 PM
|