lib/image_processing/mini_magick.rb
# Resizes the image to fill the specified dimensions, applying any
# necessary cropping.
Resizes the image to fill the specified dimensions, applying any
necessary cropping.
Resizes the image to fill the specified dimensions applying any necessary cropping .
def resize_to_fill(width, height, gravity: "Center", **options)
        thumbnail("#{width}x#{height}^", **options)
        magick.gravity gravity
        magick.background color(:transparent)
        magick.extent "#{width}x#{height}"
      end
def resize_to_fill ( width , height , gravity : "Center" , ** options ) thumbnail ( "#{width}x#{height}^" , ** options ) magick . gravity gravity magick . background color ( :transparent ) magick . extent "#{width}x#{height}" end
Resizes the image to fill the specified dimensions, applying any
necessary cropping.
Resizes the image to fill the specified dimensions applying any necessary cropping .
width
height
gravity
options