Sha256: e7332d0ca691f102af5f9d2c84ec8ecd006bde325d870e1612427ac88f600bd0
Contents?: true
Size: 399 Bytes
Versions: 9
Compression:
Stored size: 399 Bytes
Contents
module Paperclip class AutoOrient < Paperclip::Processor def initialize(file, options = {}, *args) @file = file end def make( *args ) dst = Tempfile.new([@basename, @format].compact.join(".")) dst.binmode Paperclip.run('convert',"#{File.expand_path(@file.path)} -auto-orient #{File.expand_path(dst.path)}") return dst end end end
Version data entries
9 entries across 9 versions & 1 rubygems