From 5669246da048c748276732b6de08412a39e8e3e0 Mon Sep 17 00:00:00 2001 From: nulano Date: Fri, 4 Sep 2020 21:33:02 +0200 Subject: [PATCH] add release notes for formats parameter --- docs/releasenotes/8.0.0.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/releasenotes/8.0.0.rst b/docs/releasenotes/8.0.0.rst index bbb954e25..991699727 100644 --- a/docs/releasenotes/8.0.0.rst +++ b/docs/releasenotes/8.0.0.rst @@ -50,6 +50,17 @@ Add MIME type to PsdImagePlugin API Additions ============= +Image.open: add formats parameter +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Added a new ``formats`` parameter to :py:func:`.Image.open`: + +* A list or tuple of formats to attempt to load the file in. + This can be used to restrict the set of formats checked. + Pass ``None`` to try all supported formats. You can print the set of + available formats by running ``python -m PIL`` or using + the :py:func:`PIL.features.pilinfo` function. + ImageOps.autocontrast: add mask parameter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^