Skip to content

Commit

Permalink
Merge branch 'master' into release-notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Oct 13, 2020
2 parents 8a9d6e0 + 87ee880 commit 2b05506
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
27 changes: 27 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ Changelog (Pillow)
8.0.0 (unreleased)
------------------

- Drop support for PyPy3 < 7.2.0 #4964
[nulano]

- Allow tuples with one item to give single color value in getink #4927
[radarhere, nulano]

- Removed OSError in favour of DecompressionBombError for BMP #4966
[radarhere]

- Implemented another ellipse drawing algorithm #4523
[xtsm, radarhere]

- Removed unused JpegImagePlugin._fixup_dict function #4957
[radarhere]

- Added reading and writing of private PNG chunks #4292
[radarhere]

- Fixed bug in Exif __delitem__ #4942
[radarhere]

- Fix crash in ImageTk.PhotoImage on MinGW 64-bit #4946
[nulano]

- Moved CVE images to pillow-depends #4929
[radarhere]

- Fixed loading profile with non-ASCII path on Windows #4914
[radarhere]

Expand Down
4 changes: 2 additions & 2 deletions Tests/test_imagefontctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_text_direction_ttb():

target = "Tests/images/test_direction_ttb.png"
with Image.open(target) as target_img:
assert_image_similar(im, target_img, 1.15)
assert_image_similar(im, target_img, 2.8)


def test_text_direction_ttb_stroke():
Expand All @@ -142,7 +142,7 @@ def test_text_direction_ttb_stroke():

target = "Tests/images/test_direction_ttb_stroke.png"
with Image.open(target) as target_img:
assert_image_similar(im, target_img, 12.4)
assert_image_similar(im, target_img, 19.4)


def test_ligature_features():
Expand Down
15 changes: 10 additions & 5 deletions docs/releasenotes/8.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ and :py:meth:`.FreeTypeFont.getbbox` return the bounding box of rendered text.

These functions accept an ``anchor`` parameter, see :ref:`text-anchors` for details.

Security
========

TODO

Other Changes
=============

Expand All @@ -152,6 +147,16 @@ The ``align`` parameter of :py:meth:`.ImageDraw.multiline_text` now gives better

TrueType fonts with embedded bitmaps are now supported.

Added writing of subIFDs
^^^^^^^^^^^^^^^^^^^^^^^^

When saving EXIF data, Pillow is now able to write subIFDs, such as the GPS IFD. This
should happen automatically when saving an image using the EXIF data that it was opened
with, such as in :py:meth:`~PIL.ImageOps.exif_transpose`.

Previously, the code of the first tag of the subIFD was incorrectly written as the
offset.

Error for large BMP files
^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
6 changes: 3 additions & 3 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def cmd_msbuild(
"libs": [r"libpng16.lib"],
},
"freetype": {
"url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.10.2.tar.gz", # noqa: E501
"filename": "freetype-2.10.2.tar.gz",
"dir": "freetype-2.10.2",
"url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.10.3.tar.gz", # noqa: E501
"filename": "freetype-2.10.3.tar.gz",
"dir": "freetype-2.10.3",
"patch": {
r"builds\windows\vc2010\freetype.vcxproj": {
# freetype setting is /MD for .dll and /MT for .lib, we need /MD
Expand Down

0 comments on commit 2b05506

Please sign in to comment.