Class: GifCompressor
- Inherits:
-
Compressor
- Object
- Compressor
- GifCompressor
- 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
-
#initialize ⇒ GifCompressor
constructor
A new instance of GifCompressor.
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
#initialize ⇒ GifCompressor
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 |