Class: Paperclip::ThumbCropper

Inherits:
Cropper
  • Object
show all
Defined in:
lib/paperclip_processors/cropper.rb

Instance Method Summary collapse

Methods inherited from Cropper

#transformation_command

Instance Method Details

#crop_commandObject



14
15
16
17
18
19
# File 'lib/paperclip_processors/cropper.rb', line 14

def crop_command
  target = @attachment.instance
  if target.cropping_thumb?
    ["-crop", "#{target.thumb_crop_w}x#{target.thumb_crop_h}+#{target.thumb_crop_x}+#{target.thumb_crop_y}"]
  end
end