Skip to content

Commit 0978dfa

Browse files
committed
Add mime_type field to the format info option docs
1 parent ef56edc commit 0978dfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/usage/getting_info.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ format:%format
6767
f:%format
6868
```
6969

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

7272
:::info
73-
For video files, imgproxy returns a list of predicted formats divided by comma.
73+
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.
7474
:::
7575

7676
Default: `true`.
@@ -79,7 +79,8 @@ Default: `true`.
7979

8080
```json
8181
{
82-
"format": "jpeg"
82+
"format": "jpeg",
83+
"mime_type": "image/jpeg"
8384
}
8485
```
8586

0 commit comments

Comments
 (0)