Class: Paperclip::FullCropper

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



23
24
25
26
27
28
# File 'lib/paperclip_processors/cropper.rb', line 23

def crop_command
  target = @attachment.instance
  if target.cropping_full?
    ["-crop", "#{target.full_crop_w}x#{target.full_crop_h}+#{target.full_crop_x}+#{target.full_crop_y}"]
  end
end