Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment