Class: ImageSqueeze::GifsicleProcessor

Inherits:
Processor
  • Object
show all
Defined in:
lib/image_squeeze/processors/gifsicle_processor.rb

Instance Attribute Summary

Attributes inherited from Processor

#filename

Class Method Summary collapse

Methods inherited from Processor

handles?, output_extension

Class Method Details

.input_typeObject



3
4
5
# File 'lib/image_squeeze/processors/gifsicle_processor.rb', line 3

def self.input_type
  ANIMATED_GIF
end

.squeeze(filename, output_filename) ⇒ Object



7
8
9
# File 'lib/image_squeeze/processors/gifsicle_processor.rb', line 7

def self.squeeze(filename, output_filename)
  system("gifsicle -O2 #{filename} > #{output_filename} 2> /dev/null")
end