Skip to content

Image settings DX tweaks in documentation #13232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thibaudcolas
Copy link
Member

Those are pretty small tweaks, attempting to make it more likely for developers to make advantage of available image optimizations: the AVIF format, and the quality settings.

Related: #12789, #13127

@@ -412,14 +412,47 @@ Custom storage classes should subclass `django.core.files.storage.Storage`. See
### `WAGTAILIMAGES_EXTENSIONS`

```python
WAGTAILIMAGES_EXTENSIONS = ['png', 'jpg']
WAGTAILIMAGES_EXTENSIONS = ['avif', 'svg']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not precious about which extensions we have in there, was just trying to go some way towards avoiding #13127

### `WAGTAILIMAGES_JPEG_QUALITY`

```python
WAGTAILIMAGES_JPEG_QUALITY = 75
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below – I chose to demo the settings with realistic values, that should work on all sorts of sites, and lead to smaller images than our defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant