Class: Thumbkit::Processor::Collection
Instance Attribute Summary
#options, #outfile, #path
Instance Method Summary
collapse
force_extension, #initialize, processor_for, processors
Instance Method Details
#collection ⇒ Object
20
21
22
23
24
|
# File 'lib/thumbkit/processor/collection.rb', line 20
def collection
self.paths.map do |path|
Thumbkit.new(path)
end
end
|
#determine_outfile ⇒ Object
5
6
7
|
# File 'lib/thumbkit/processor/collection.rb', line 5
def determine_outfile
raise ArgumentError, 'Thumbkit: At output file must be provided for collections'
end
|
#write ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/thumbkit/processor/collection.rb', line 9
def write
sources = generate_each
command = build_montage_command(sources)
run(command)
command = build_resize_command(outfile)
run(command)
outfile
end
|