pngquant is a command-line utility and a library for converting 24/32-bit PNG images to paletted (8-bit) PNGs.
Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.
The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency.