class Paperclip::ThumbCropper

Public Instance Methods

crop_command() click to toggle source
# 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