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