84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# File 'lib/make_gallery/command.rb', line 84
def set_mogrify_options
cmd_opts = []
cmd_opts << "-verbose" if verbose
cmd_opts << "-format #{format}"
cmd_opts << "-path #{target}"
cmd_opts << "-quality #{quality}"
if action == :thumbs
geometry = [size, size].join("x")
cmd_opts << "-thumbnail #{geometry}^"
cmd_opts << "-gravity center"
cmd_opts << "-extent #{geometry}"
elsif action == :web
cmd_opts << "-resize #{size}"
end
debug_say "command opts: #{cmd_opts.inspect}"
cmd_opts
end
|