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. In-place form of #thumbnail.

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:



14381
14382
14383
14384
14385
14386
# File 'ext/RMagick/rmimage.cpp', line 14381

VALUE
Image_thumbnail_bang(int argc, VALUE *argv, VALUE self)
{
    rm_check_frozen(self);
    return thumbnail(True, argc, argv, self);
}