# Gimp.Image.prototype.resize_to_layers

    function resize_to_layers(): Boolean {
        // Gjs wrapper for gimp_image_resize_to_layers()
    }

Resize the image to fit all layers.

This procedure resizes the image to the bounding box of all layers of the image. All channels within the image are resized to the new size; this includes the image selection mask. All layers within the image are repositioned to the new image area.

Since 2.2

Returns

  TRUE on success.