Feature suggestion: optimizing thumbnails
Posted: Thu Jan 19, 2012 11:28 pm
Hi there,
I'm using pngquant (http://pngquant.org/) for some of my images to reduce them to 8-bit of color depth which is often more than enough. pngquant does a very good job at compressing my images (especially illustration artwork and screenshots, not so good on real photos). Even fake alpha transparency is often retained, so often you can't tell which one is the optimized version and which one the original if you don't look at the file size.
However, when I upload them to Serendipity and generate thumbnails from them, these are again full-blown 32-bit PNGs (or at least 24-bit) resulting in a file size often larger than the original image.
My suggestion would be to check the avilability of pngquant and use it to optimize thumbnails which are generated from 8-bit source files, so they keep their optimization.
32-bit and 24-bit PNG thumbnails could also be optimized with a tool for lossless optimization such as pngrewrite, pngout or pngcrush.
Similar optimizations could be done for JPEGs with jpegoptim.
What do you think?
I'm using pngquant (http://pngquant.org/) for some of my images to reduce them to 8-bit of color depth which is often more than enough. pngquant does a very good job at compressing my images (especially illustration artwork and screenshots, not so good on real photos). Even fake alpha transparency is often retained, so often you can't tell which one is the optimized version and which one the original if you don't look at the file size.
However, when I upload them to Serendipity and generate thumbnails from them, these are again full-blown 32-bit PNGs (or at least 24-bit) resulting in a file size often larger than the original image.
My suggestion would be to check the avilability of pngquant and use it to optimize thumbnails which are generated from 8-bit source files, so they keep their optimization.
32-bit and 24-bit PNG thumbnails could also be optimized with a tool for lossless optimization such as pngrewrite, pngout or pngcrush.
Similar optimizations could be done for JPEGs with jpegoptim.
What do you think?