Class: Utopia::Tags::Gallery::Processes::CropThumbnail
- Defined in:
- lib/utopia/tags/gallery.rb
Overview
Resize the image to fit within the specified dimensions while retaining the aspect ratio of the original image. If necessary, crop the image in the larger dimension.
Instance Method Summary collapse
Methods inherited from Thumbnail
#default_extension, #initialize
Constructor Details
This class inherits a constructor from Utopia::Tags::Gallery::Processes::Thumbnail
Instance Method Details
#call(img) ⇒ Object
40 41 42 |
# File 'lib/utopia/tags/gallery.rb', line 40 def call(img) img.resize_to_fill(*@size) end |