lib/image_optim/worker/jhead.rb in image_optim-0.29.0 vs lib/image_optim/worker/jhead.rb in image_optim-0.30.0

- old
+ new

@@ -23,19 +23,19 @@ def used_bins [:jhead, :jpegtran] end - def optimize(src, dst) + def optimize(src, dst, options = {}) return false unless oriented?(src) src.copy(dst) args = %W[ -autorot #{dst} ] resolve_bin!(:jpegtran) - execute(:jhead, *args) && dst.size? + execute(:jhead, args, options) && dst.size? end private def oriented?(image)