Class: ImageSqueeze::PNGCrushProcessor
- Inherits:
-
Processor
- Object
- Processor
- ImageSqueeze::PNGCrushProcessor
show all
- Defined in:
- lib/image_squeeze/processors/png_crush_processor.rb
Instance Attribute Summary
Attributes inherited from Processor
#filename
Class Method Summary
collapse
Methods inherited from Processor
handles?, output_extension
Class Method Details
3
4
5
|
# File 'lib/image_squeeze/processors/png_crush_processor.rb', line 3
def self.input_type
PNG
end
|
.squeeze(filename, output_filename) ⇒ Object
7
8
9
|
# File 'lib/image_squeeze/processors/png_crush_processor.rb', line 7
def self.squeeze(filename, output_filename)
system("pngcrush -rem alla -brute -reduce #{filename} #{output_filename} > /dev/null")
end
|