diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b3a23aac53..7d772ff738 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -42,6 +42,10 @@ Changelog * API ordering now supports multiple fields (Rohit Sharma, Jake Howard) * Pass block value to `Block.get_template` to allow varying template based on value (Florian Delizy) * Add `InlinePanel` DOM events for when ready and when items added or removed (Faishal Manzar) + * Add a new `picture` template tag for Django Templates and Jinja (Thibaud Colas) + * Add a new `srcset_image` template tag for Django Templates and Jinja (Thibaud Colas) + * Support `Filter` instances as input for `AbstractImage.get_renditions()` (Thibaud Colas) + * Improve error messages for image template tags * Fix: Ensure that StreamField's `FieldBlock`s correctly set the `required` and `aria-describedby` attributes (Storm Heg) * Fix: Avoid an error when the moderation panel (admin dashboard) contains both snippets and private pages (Matt Westcott) * Fix: When deleting collections, ensure the collection name is correctly shown in the success message (LB (Ben) Johnston) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 20c78e067a..0bb3398680 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -750,6 +750,7 @@ * Florian Delizy * Susheel Thapa * Hazh. M. Adam +* Chris Lawton ## Translators diff --git a/docs/releases/5.2.md b/docs/releases/5.2.md index 242d8c5993..6fc594ab88 100644 --- a/docs/releases/5.2.md +++ b/docs/releases/5.2.md @@ -15,6 +15,17 @@ depth: 1 [OpenSearch](https://opensearch.org/) is now formally supported as an alternative to Elasticsearch. For configuration details, see [OpenSearch configuration](opensearch). This feature was developed by Matt Westcott. +### Responsive & multi-format images with the picture tag + +Wagtail has new template tags to reduce the performance and environmental footprint of images: + + * The `picture` tag generates images in multiple formats and-or sizes in one batch, creating an HTML `` tag. + * The `srcset_image` tag generates images in multiple sizes, creating an `` tag with a `srcset` attribute. + +We expect those changes to greatly reduce the weight of images for all Wagtail sites. We encourage all site implementers to consider using them to improve the performance of the sites and reduce their carbon footprint. For further details, For more details, see [](multiple_formats) and [](responsive_images). Those new template tags are also supported in Jinja templates, see [](jinja2) for the Jinja API. + +This feature was developed by Paarth Agarwal and Thibaud Colas as part of the Google Summer of Code program and a [partnership with the Green Web Foundation](https://www.thegreenwebfoundation.org/news/working-with-the-wagtail-community-on-the-summer-of-code/) and Green Coding Berlin, with support from Dan BraghiÈ™, Thibaud Colas, Sage Abdullah, Arne Tarara (Green Coding Berlin), and Chris Adams (Green Web Foundation). We also thank Aman Pandey for introducing [AVIF support](image_file_formats) in Wagtail 5.1, Andy Babic for creating [`AbstractImage.get_renditions()`](image_renditions_multiple) in the same release; and Storm Heg, Mitchel Cabuloy, Coen van der Kamp, Tom Dyson, and Chris Lawton for their feedback on [RFC 71](https://github.com/wagtail/rfcs/pull/71). + ### Other features * Add support for Python 3.12 (Matt Westcott) @@ -54,6 +65,8 @@ depth: 1 * API ordering now [supports multiple fields](api_v2_usage_ordering) (Rohit Sharma, Jake Howard) * Pass block value to `Block.get_template` to allow varying template based on value (Florian Delizy) * Add [`InlinePanel` DOM events](inline_panel_events) for when ready and when items added or removed (Faishal Manzar) + * Support `Filter` instances as input for [`AbstractImage.get_renditions()`](image_renditions_multiple) (Thibaud Colas) + * Improve error messages for image template tags (Thibaud Colas) ### Bug fixes