# Class: IIIFInfo

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/format/IIIFInfo~IIIFInfo

    import IIIFInfo from 'ol/format/IIIFInfo.js';

Format for transforming IIIF Image API image information responses into IIIF tile source ready options

#### new IIIFInfo(imageInfo)

format/IIIFInfo.js, line 309

  Name | Type | Description
  --- | --- | ---
  `imageInfo` | string | ImageInformationResponse | Deserialized image information JSON response object or JSON response as string

### Methods

#### getImageApiVersion(){Versions | undefined}

format/IIIFInfo.js, line 335

  ##### Returns:

  Major IIIF version.

#### getTileSourceOptions(preferredOptions){Options | undefined}

format/IIIFInfo.js, line 448

  Name | Type | Description
  --- | --- | ---
  `preferredOptions` | Optional options for preferred format and quality.
  Name | Type | Description
  --- | --- | ---
  `format` | string | undefined | Preferred image format. Will be used if the image information indicates support for that format.
  `quality` | string | undefined | IIIF image qualitiy. Will be used if the image information indicates support for that quality.

  ##### Returns:

  IIIF tile source ready constructor options.

#### setImageInfo(imageInfo)

format/IIIFInfo.js, line 323

  Name | Type | Description
  --- | --- | ---
  `imageInfo` | string | ImageInformationResponse | Deserialized image information JSON response object or JSON response as string