4 ms·
Gzipping images is generally not a good idea. PNG/GIF/JPEG are already highly compressed and will probably grow in size if you attempt to gzip them.
by chaosmachine 18y ago
Gzipping images is generally not a good idea. PNG/GIF/JPEG are already highly compressed and will probably grow in size if you attempt to gzip them.
- _pius 18y agoPNG is often not well compressed unless you've gone out of your way to do so with PNGCRUSH (http://pmt.sourceforge.net/pngcrush/ http://pmt.sourceforge.net/pngcrush/) or something similar
- wysiwtf 18y agoI think this might be better? http://optipng.sourceforge.net/ http://optipng.sourceforge.net/
- lucumo 18y agoYeah, it's pretty good. pngout is good too. But I found some really good compression with pngnq. It's lossy, but can help you with some larger optimisations. I had an image that pngout got to 218K (221K for optipng). pngnq chopped that thing to 74K. When flipping between the images you could see some pixels change, but only if you looked really hard. (Running pngout on that image brought it down to 71K. Nice.)