image_lib - resizing transparent png24 |
[eluser]Ornoc[/eluser]
I believe I have the 24bit PNG transparency issue solved. It requires first creating a 100% transparent color, and then filling the new image before the imagecopyresampled. I have made a custom library that replaces the image_lib->image_process_gd function and adds the relevant code. Just put it in your system/application/libraries directory and it should be good to go. My_Image_lib.zip Unless there is some big performance problem with doing this, it seems like this could easily be integrated into the next CI update. For those interested, here is the relevant code: Code: imageAlphaBlending($dst_img, false); |
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
|