Sha256: e6a7ec9dc9bc10a1987d0d187fb3a587f241135698a469476950752c9690c526
Contents?: true
Size: 405 Bytes
Versions: 11
Compression:
Stored size: 405 Bytes
Contents
module Paperclip class Cropper < Thumbnail def transformation_command if crop_command crop_command + super.join(" ").gsub(/ -crop \S+/, '') else super end end def crop_command target = @attachment.instance if target.cropping? " -crop '#{target.crop_w}x#{target.crop_h}+#{target.crop_x}+#{target.crop_y}' " end end end end
Version data entries
11 entries across 11 versions & 1 rubygems