# Type Alias: ImageEncoding

[Mobile Document Scanner API Reference](../index.md) / ImageEncoding

# Type Alias: ImageEncoding

> **ImageEncoding** = \{ `encoding`: `"png"`; \} \| \{ `encoding`: `"jpeg"`; `quality?`: `number`; \}

Defined in: [src/results.ts:50](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/results.ts#L50)

The format of an encoded image. The `quality` of a JPEG image is a number from 0
to 1.
