Created
June 2, 2010 02:45
-
-
Save stopdropandrew/421846 to your computer and use it in GitHub Desktop.
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
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