Skip to content

Instantly share code, notes, and snippets.

@tvandervossen
Created October 6, 2010 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvandervossen/614055 to your computer and use it in GitHub Desktop.
Save tvandervossen/614055 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
unless ARGV.empty?
ARGV.each do |filename|
`pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB #{filename} #{filename}.stripped`
`mv #{filename}.stripped #{filename}`
`touch #{filename}`
end
else
p "Usage: #{$0} filename"
end
@tvandervossen
Copy link
Author

Makes pngcrush easy. Save as ~/bin/pngstrip and make it executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment