Method: Magick::Image#thumbnail

Defined in:
ext/RMagick/rmimage.cpp

#thumbnail(scale) ⇒ Magick::Image #thumbnail(cols, rows) ⇒ Magick::Image

The thumbnail method is a fast resizing method suitable for use when the size of the resulting image is < 10% of the original.

Overloads:

  • #thumbnail(scale) ⇒ Magick::Image

    Parameters:

    • scale (Numeric)

      The desired size represented as a floating-point number. For example, to make a thumbnail that is 9.5% of the size of the original image, use 0.095.

  • #thumbnail(cols, rows) ⇒ Magick::Image

    Parameters:

    • cols (Numeric)

      The desired width in pixels.

    • rows (Numeric)

      The desired height.

Returns:

See Also:



14358
14359
14360
14361
14362
14363
# File 'ext/RMagick/rmimage.cpp', line 14358

VALUE
Image_thumbnail(int argc, VALUE *argv, VALUE self)
{
    rm_check_destroyed(self);
    return thumbnail(False, argc, argv, self);
}