![]() |
GD creates bloated pngs.
Basically after using GD to resize and crop images I'm getting massive (and I mean massive) file sizes:
this image: http://www.wastemylunch.com/thumbnai...144752_big.png is 256x80 px and it's 64kb. This is without compression, with it I get 40kb which is still crazy. This is all using imagecreatetruecolor when i use only imagecreate I get small but icky files. any suggestions? thanks! Also, if anyone knows if the pngs could just been transformed (and saved) as gifs that are smaller that would be great. |
I assume that at the end of the script you use:
PHP Code:
PHP Code:
PHP Code:
imagegif imagewbmp imagejpeg |
Thanks a load, I was under the assumption you couldn't use imagegif for png images but I was wrong, thats for solving my issue so quickly and simply!
|
No problem!
|
| All times are GMT. The time now is 01:18 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0