# Gimp.Metadata.prototype.get_resolution

    function get_resolution(): [ok: Boolean, xres: Number(gdouble), yres: Number(gdouble), unit: Gimp.Unit] {
        // Gjs wrapper for gimp_metadata_get_resolution()
    }

Returns values based on Exif.Image.XResolution, Exif.Image.YResolution and Exif.Image.ResolutionUnit of metadata.

Since 2.10

ok

  true on success, false otherwise.

xres

  Return location for the X Resolution, in ppi

yres

  Return location for the Y Resolution, in ppi

unit

  Return location for the unit unit