lib/image_optim/worker/jpegrecompress.rb in image_optim-0.31.1 vs lib/image_optim/worker/jpegrecompress.rb in image_optim-0.31.2
- old
+ new
@@ -25,13 +25,13 @@
option(:quality, 3, "JPEG quality preset: #{quality_names_desc}") do |v|
OptionHelpers.limit_with_range(v.to_i, 0...QUALITY_NAMES.length)
end
METHOD_OPTION =
- option(:method, 'ssim', 'Comparison Metric: '\
- '`mpe` - Mean pixel error, '\
- '`ssim` - Structural similarity, '\
- '`ms-ssim` - Multi-scale structural similarity (slow!), '\
+ option(:method, 'ssim', 'Comparison Metric: ' \
+ '`mpe` - Mean pixel error, ' \
+ '`ssim` - Structural similarity, ' \
+ '`ms-ssim` - Multi-scale structural similarity (slow!), ' \
'`smallfry` - Linear-weighted BBCQ-like (may be patented)') do |v, opt_def|
if %w[mpe ssim ms-ssim smallfry].include? v
v
else
warn "Unknown method for jpegrecompress: #{v}"