Skip to content

Instantly share code, notes, and snippets.

@stopdropandrew
Created June 2, 2010 02:45
Show Gist options
  • Save stopdropandrew/421846 to your computer and use it in GitHub Desktop.
Save stopdropandrew/421846 to your computer and use it in GitHub Desktop.
class ImageSqueeze
class OptiPNGProcessor < Processor
def self.input_type
PNG
end
def self.squeeze(filename, output_filename)
system("optipng -i1 -o7 #{filename} -out=#{output_filename} > /dev/null")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment