Class: PngCompressor

Inherits:
Compressor show all
Defined in:
lib/compressors/pngCompressor.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

#initializePngCompressor

Returns a new instance of PngCompressor.



3
4
5
6
7
# File 'lib/compressors/pngCompressor.rb', line 3

def initialize
  super('png')
  set_command(:pngcrush,'%executable% -q -rem alla -brute -reduce  %input% %output%')

end