Sha256: 3ba68332e0f8541759b45c0c231137d6207e36db031733659f0ab1ea0ef81c36
Contents?: true
Size: 465 Bytes
Versions: 11
Compression:
Stored size: 465 Bytes
Contents
module Paperclip class Rotator < Thumbnail attr_accessor :rotate def initialize file, options = {}, attachment = nil super @rotate = options[:rotate] end def transformation_command if rotate_command super.join(" ") + rotate_command else super end end def rotate_command unless @rotate.blank? " -background None -rotate #{@rotate} " end end end end
Version data entries
11 entries across 11 versions & 1 rubygems