# Gimp.Metadata.prototype.set_pixel_size

    function set_pixel_size(width: Number(gint), height: Number(gint)): void {
        // Gjs wrapper for gimp_metadata_set_pixel_size()
    }

Sets Exif.Image.ImageWidth and Exif.Image.ImageLength on metadata. If already present, also sets Exif.Photo.PixelXDimension and Exif.Photo.PixelYDimension.

Since 2.10

width

  Width in pixels

height

  Height in pixels