class ImageProcessing::MiniMagick::Processor

def resize_to_fill(width, height, gravity: "Center", **options)

necessary cropping.
Resizes the image to fill the specified dimensions, applying any
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