Class: GifCompressor

Inherits:
Compressor show all
Defined in:
lib/compressors/gifCompressor.rb

Constant Summary

Constants included from SqweezeUtils

SqweezeUtils::EMBED_MIME_TYPES

Instance Attribute Summary

Attributes inherited from Compressor

#byteweight_after, #byteweight_before, #input_file_extensions

Instance Method Summary collapse

Methods inherited from Compressor

#collect_filepaths, #compress, #concatenate_files, #filextension2regexpstr, #print_summary, #process, #set_command, #size_check

Methods included from SqweezeUtils

#ansi_bold, #ansi_green, #ansi_nocolour, #ansi_red, #ansi_yellow, #byteweight, #compression_percentage, #encoded_contents, #find_file_in_targetdir, #mime_type, #notify, #remap_filepath, #write_file

Constructor Details

#initializeGifCompressor

Returns a new instance of GifCompressor.



3
4
5
6
7
8
9
# File 'lib/compressors/gifCompressor.rb', line 3

def initialize
  super('gif')

  set_command(        
       :gifsicle, '%executable% --optimize < %input% > %output%'
  )
end