lib/image_optim/worker/jhead.rb in image_optim-0.26.3 vs lib/image_optim/worker/jhead.rb in image_optim-0.26.4

- old
+ new

@@ -1,14 +1,16 @@ +# frozen_string_literal: true + require 'image_optim/worker' require 'exifr/jpeg' class ImageOptim class Worker # http://www.sentex.net/~mwandel/jhead/ # # Jhead internally uses jpegtran which should be on path class Jhead < Worker - ORIENTED = 2..8 # not top-left + ORIENTED = (2..8).freeze # not top-left # Works on jpegs def image_formats [:jpeg] end