Class: MagickFilter::Tool

Inherits:
Object
  • Object
show all
Defined in:
lib/magick_filter.rb

Class Method Summary collapse

Class Method Details

.apply_frame(path = '', color_type = '') ⇒ Object



13
14
15
16
17
18
# File 'lib/magick_filter.rb', line 13

def self.apply_frame(path='', color_type='')
	parameter_missing?(path, color_type)
    parse_if_image(path)
    out_file = build_out_file_name(path)
    out_file = cmd_convert_frame(path, out_file, color_type)
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)
    parse_if_image(path)
    out_file = build_out_file_name(path)
    out_file = cmd_convert(path, out_file, effect)
end

.rootObject



20
21
22
# File 'lib/magick_filter.rb', line 20

def self.root
 	File.expand_path('../..',__FILE__)
end