From 534b5d1fd9ce15ac88056d692e18a0a5620765a2 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Wed, 5 Oct 2016 16:03:54 +0100 Subject: [PATCH] Release note for #2474 --- CHANGELOG.txt | 1 + docs/releases/1.7.rst | 6 ++++++ docs/topics/images.rst | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7436c8196e..81f0fe0082 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,7 @@ Changelog ~~~~~~~~~~~~~~~~ * Elasticsearch 2 support (Karl Hobley) + * Added parameters to image tag to specify file type and JPEG compression level (Karl Hobley) * Added support for AWS CloudFront in frontend cache invalidation module (Rob Moorman) * Unpublishing a page now gives the option to unpublish subpages too (Jordi Joan) * The ``|embed`` filter has been converted into a templatetag ``{% embed %}`` (Janneke Janssen) diff --git a/docs/releases/1.7.rst b/docs/releases/1.7.rst index eb0fbe48d9..2793b75845 100644 --- a/docs/releases/1.7.rst +++ b/docs/releases/1.7.rst @@ -19,6 +19,12 @@ Wagtail now supports Elasticsearch 2. Note that you need to change backend in `` See: :ref:`wagtailsearch_backends_elasticsearch` +New image tag options for file type and JPEG compression level +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The ``{% image %}`` tag now supports extra parameters for specifying the image file type and JPEG compression level on a per-tag basis. See :ref:`output_image_format` and :ref:`jpeg_image_quality`. This feature was developed by Karl Hobley. + + AWS CloudFront support added to cache invalidation module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/topics/images.rst b/docs/topics/images.rst index a021e9ed6d..9af573cf70 100644 --- a/docs/topics/images.rst +++ b/docs/topics/images.rst @@ -198,6 +198,8 @@ Wagtail comes with three pre-defined image formats, but more can be defined in P For more information about image formats, including creating your own, see :ref:`rich_text_image_formats` +.. _output_image_format: + Output image format ------------------- @@ -218,6 +220,9 @@ For example, to make the tag always convert the image to a JPEG, use ``format-jp You may also use ``format-png`` or ``format-gif``. + +.. _jpeg_image_quality: + JPEG image quality ------------------