Sha256: 12defa078f1ee552c7af8e85866cd14620e9ca5085aab9ba85d294b2cbc34a00
Contents?: true
Size: 401 Bytes
Versions: 13
Compression:
Stored size: 401 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
13 entries across 13 versions & 1 rubygems