From 93c382003dc2414e99416a6bacb67c199ae193d4 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Wed, 8 Oct 2014 10:28:30 -0700 Subject: [PATCH] Fix comments and ruby < 2.0 compatibility --- lib/image_optim/worker/jpegrecompress.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/image_optim/worker/jpegrecompress.rb b/lib/image_optim/worker/jpegrecompress.rb index dd7edfbf..b98c6327 100644 --- a/lib/image_optim/worker/jpegrecompress.rb +++ b/lib/image_optim/worker/jpegrecompress.rb @@ -3,7 +3,7 @@ class ImageOptim class Worker - # http://www.kokkonen.net/tjko/projects.html + # https://github.com/danielgtaylor/jpeg-archive#jpeg-recompress class Jpegrecompress < Worker QUALITY_OPTION = option(:quality, 4, 'JPEG quality preset: '\ @@ -15,13 +15,13 @@ class Jpegrecompress < Worker OptionHelpers.limit_with_range(v.to_i, 0..4) end - QUALITY_OPTIONS = %i(low medium high veryhigh lossless) + QUALITY_OPTIONS = [:low, :medium, :high, :veryhigh, :lossless] def used_bins QUALITY_OPTIONS[quality] == :lossless ? [] : [:'jpeg-recompress'] end - # Run first [-1] if max_quality < 100 otherwise with normal priority + # Run first [-1] def run_order -1 end