Class: MagickFilter::Tool
- Inherits:
-
Object
- Object
- MagickFilter::Tool
- Defined in:
- lib/magick_filter.rb
Class Method Summary collapse
- .apply_frame(path = '', color_type = '', frame_style = nil) ⇒ Object
- .process(path = '', effect = '') ⇒ Object
- .root ⇒ Object
Class Method Details
.apply_frame(path = '', color_type = '', frame_style = nil) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/magick_filter.rb', line 13 def self.apply_frame(path='', color_type='', frame_style=nil) parameter_missing?(path, color_type, "frame") parse_if_image(path) out_file = build_out_file_name(path) out_file = cmd_convert_frame(path, out_file, color_type, frame_style) end |
.process(path = '', effect = '') ⇒ Object
6 7 8 9 10 11 |
# File 'lib/magick_filter.rb', line 6 def self.process(path='', effect='') parameter_missing?(path, effect, "effect") parse_if_image(path) out_file = build_out_file_name(path) out_file = cmd_convert(path, out_file, effect) end |
.root ⇒ Object
20 21 22 |
# File 'lib/magick_filter.rb', line 20 def self.root File.('../..',__FILE__) end |