# Gimp.Image.prototype.resize

    function resize(new_width: Number(gint), new_height: Number(gint), offx: Number(gint), offy: Number(gint)): Boolean {
        // Gjs wrapper for gimp_image_resize()
    }

Resize the image to the specified extents.

This procedure resizes the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels within the image are resized according to the specified parameters; this includes the image selection mask. All layers within the image are repositioned according to the specified offsets.

new_width

  New image width.

new_height

  New image height.

offx

  x offset between upper left corner of old and new images: (new - old).

offy

  y offset between upper left corner of old and new images: (new - old).

Returns

  TRUE on success.