Class: ImageSqueeze::JPEGTranNonProgressiveProcessor

Inherits:
Processor
  • Object
show all
Defined in:
lib/image_squeeze/processors/jpeg_tran_non_progressive_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/jpeg_tran_non_progressive_processor.rb', line 3

def self.input_type
  JPEG
end

.squeeze(filename, output_filename) ⇒ Object



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

def self.squeeze(filename, output_filename)
  system("jpegtran -copy none -optimize #{filename} > #{output_filename}")
end