Class: Paperclip::ThumbCropper
- Defined in:
- lib/paperclip_processors/cropper.rb
Instance Method Summary collapse
Methods inherited from Cropper
Instance Method Details
#crop_command ⇒ Object
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 |