From 3c2940b002de54ff0ea499ac55e2b5d33dd8b0d8 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 5 Jan 2019 01:00:15 +0200 Subject: [PATCH 1/2] Add 5.4.1 release notes --- docs/releasenotes/5.4.1.rst | 27 +++++++++++++++++++++++++++ docs/releasenotes/index.rst | 1 + 2 files changed, 28 insertions(+) create mode 100644 docs/releasenotes/5.4.1.rst diff --git a/docs/releasenotes/5.4.1.rst b/docs/releasenotes/5.4.1.rst new file mode 100644 index 000000000..465f70fc8 --- /dev/null +++ b/docs/releasenotes/5.4.1.rst @@ -0,0 +1,27 @@ +5.4.1 +----- + +This release fixes regressions in 5.4.0. + +Installation on Termux +^^^^^^^^^^^^^^^^^^^^^^ + +A change to the way Pillow detects libraries during installed prevented +installation on Termux, which does not have ``/sbin/ldconfig``. This is now +fixed. + +PNG: Handle IDAT chunks after image end +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Some PNG images have multiple IDAT chunks. In some cases, Pillow will stop +reading the image after one chunk. A regression caused an ``EOFError`` +exception when previously there was none. This is now fixed, and file reading +continues in case there are subsequent text chunks. + +PNG: MIME type +^^^^^^^^^^^^^^ + +The addition of limited APNG support to the PNG plugin also overwrote the MIME +type for PNG files, causing "image/apng" to be returned as the MIME type of +both APNG and PNG files. This has been fixed so the MIME type of PNG files is +"image/png". diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index df4fd4930..9f98d6961 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 2 + 5.4.1 5.4.0 5.3.0 5.2.0 From b2905aec0837d345b954dc7223c06d101abb3e06 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 5 Jan 2019 11:10:19 +1100 Subject: [PATCH 2/2] Updated release notes [ci skip] --- docs/releasenotes/5.4.1.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/5.4.1.rst b/docs/releasenotes/5.4.1.rst index 465f70fc8..7b8b5804f 100644 --- a/docs/releasenotes/5.4.1.rst +++ b/docs/releasenotes/5.4.1.rst @@ -14,9 +14,9 @@ PNG: Handle IDAT chunks after image end ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Some PNG images have multiple IDAT chunks. In some cases, Pillow will stop -reading the image after one chunk. A regression caused an ``EOFError`` -exception when previously there was none. This is now fixed, and file reading -continues in case there are subsequent text chunks. +reading image data before the IDAT chunks finish. A regression caused an +``EOFError`` exception when previously there was none. This is now fixed, and +file reading continues in case there are subsequent text chunks. PNG: MIME type ^^^^^^^^^^^^^^