Guest User

Untitled

a guest
May 27th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class ImageSqueeze
  2. class OptiPNGProcessor < Processor
  3. def self.input_type
  4. PNG
  5. end
  6.  
  7. def self.squeeze(filename, output_filename)
  8. system("optipng -i1 -o7 #{filename} -out=#{output_filename} > /dev/null")
  9. end
  10. end
  11. end
Add Comment
Please, Sign In to add comment