lib/image_processing/mini_magick.rb
# Resizes the image using the specified geometry, and sharpens the
# resulting thumbnail.
Resizes the image using the specified geometry, and sharpens the
resulting thumbnail.
Resizes the image using the specified geometry and sharpens the resulting thumbnail .
def thumbnail(geometry, sharpen: nil)
        magick.resize(geometry)
        if sharpen
          sharpen = SHARPEN_PARAMETERS.merge(sharpen)
          magick.sharpen("#{sharpen[:radius]}x#{sharpen[:sigma]}")
        end
        magick
      end
def thumbnail ( geometry , sharpen : nil ) magick . resize ( geometry ) if sharpen sharpen = SHARPEN_PARAMETERS . merge ( sharpen ) magick . sharpen ( "#{sharpen[:radius]}x#{sharpen[:sigma]}" ) end magick end
Resizes the image using the specified geometry, and sharpens the
resulting thumbnail.
Resizes the image using the specified geometry and sharpens the resulting thumbnail .
geometry
sharpen