I\'m working on a magazine viewer for ipad and I\'m struggling with the performance.
I figured out that the most expensive part of displaying the pngs is the loading
I have been experimenting with pngnq, pngquant, pngcrush, optipng, etc.
For my set of PNGs, I've achieved minimum file size with pngquant, pngnq and pngcrush
Dir.glob("**/*.png").each do |file|
['pngnq -e .png -f', 'pngquant -f -speed 1 -ext .png', 'pngcrush'].each do |command|
puts "#{command} #{file}"
`#{command} #{file}`
end
end
More details at: http://l4u.github.com/blog/2012/04/02/optimizing-file-sizes-of-png-images/