Skip to content

Commit

Permalink
Add mime_type field to the format info option docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSim committed Mar 8, 2025
1 parent ef56edc commit 0978dfa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/usage/getting_info.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ format:%format
f:%format
```

When set to `1`, `t`, or `true`, imgproxy will return the image format.
When set to `1`, `t`, or `true`, imgproxy will return the image format and MIME type.

:::info
For video files, imgproxy returns a list of predicted formats divided by comma.
For video files, imgproxy returns a list of predicted formats divided by comma. The MIME type is determined based on the `Content-Type` HTTP header in the source URL response, file extension, or first bytes of the file.
:::

Default: `true`.
Expand All @@ -79,7 +79,8 @@ Default: `true`.

```json
{
"format": "jpeg"
"format": "jpeg",
"mime_type": "image/jpeg"
}
```

Expand Down

0 comments on commit 0978dfa

Please sign in to comment.