> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/selphi-biometria-facial/propiedades/imageformat.md).

# imageFormat

## Details

**Attribute:** `image-format`

**Type:** `string`

**Default value:** `"image/jpeg"`

### ImageFormat

| Member | Value        | Description  |
| ------ | ------------ | ------------ |
| `PNG`  | `image/png`  | PNG format.  |
| `JPEG` | `image/jpeg` | JPEG format. |

## Morphology

```typescript
import { ImageFormat } from '@facephi/selphi-web-component';

selphi.imageFormat = ImageFormat.JPG;
```

## Description

MIME format of the returned images in `extractionFinish` by `facephi-selphi-widget` (`image/jpeg` or `image/png`). With JPEG, combine it with `imageQuality` to control compression.

***

## Example

```jsx
import { ImageFormat } from '@facephi/selphi-web-component';

<facephi-selphi-widget
    imageFormat={ImageFormat.JPG}
/>
```
