Created
March 31, 2012 11:14
-
-
Save l4u/2262281 to your computer and use it in GitHub Desktop.
Optimizing PNGs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment