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

Version Path
fullstack-cms-0.3.30 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.29 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.28 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.27 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.26 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.25 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.24 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.23 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.22 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.21 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.20 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.19 lib/fullstack/paperclip/auto_orient.rb
fullstack-cms-0.3.18 lib/fullstack/paperclip/auto_orient.rb