Class: FaviconMaker::PngCommand
- Inherits:
-
Object
- Object
- FaviconMaker::PngCommand
- Includes:
- BaseCommand
- Defined in:
- lib/favicon_maker/commands/png_command.rb
Instance Method Summary collapse
-
#initialize(template_file_path, output_file_path, size, options) ⇒ PngCommand
constructor
A new instance of PngCommand.
Methods included from BaseCommand
#compose, #on_windows?, #options_to_args, #to_s
Constructor Details
#initialize(template_file_path, output_file_path, size, options) ⇒ PngCommand
Returns a new instance of PngCommand.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/favicon_maker/commands/png_command.rb', line 6 def initialize(template_file_path, output_file_path, size, ) convert_settings = [ [ :define, "png:include-chunk=none,trns,gama" ], [ :format, "png" ], [ :resize, size ], [ :gravity, "center" ], [ :background, "none" ], [ :extent, size ], ] compose(template_file_path, output_file_path, convert_settings, , :png) end |