Document HEIC image support

pull/12384/head
Matt Westcott 2024-10-02 21:55:02 +01:00
rodzic d02e09e00e
commit 92567f6203
2 zmienionych plików z 14 dodań i 1 usunięć

Wyświetl plik

@ -25,10 +25,11 @@ image formats and let the browser choose the one it prefers. For example:
</picture>
```
(customising_output_formats)=
### Customising output formats
By default, all `avif`, `bmp` and `webp` images are converted to the `png` format
when no image output format is given.
when no image output format is given, and `heic` images are converted to `jpeg`.
The default conversion mapping can be changed by setting the
`WAGTAILIMAGES_FORMAT_CONVERSIONS` to a dictionary, which maps the input type

Wyświetl plik

@ -566,3 +566,15 @@ If a user navigates directly to the URL of the SVG file embedded scripts may be
- setting `Content-Disposition: attachment` will cause the file to be downloaded rather than being immediately rendered in the browser, meaning scripts will not be executed (note: this will not prevent scripts from running if a user downloads and subsequently opens the SVG file in their browser).
The steps required to set headers for specific responses will vary, depending on how your Wagtail application is deployed.
(heic_heif_images)=
## HEIC / HEIF images
`.heic` images are not widely supported on the web, but may be encountered when exporting images from Apple devices. Wagtail does not allow upload of these by default, but this can be enabled by adding "heic" to `WAGTAILIMAGES_EXTENSIONS`:
```python
WAGTAILIMAGES_EXTENSIONS = ["gif", "jpg", "jpeg", "png", "webp", "heic"]
```
These images will be automatically converted to JPEG format when rendered (see [](customising_output_formats)).