Hugo van Kemenade
2c0aa5d0b8
Merge pull request #4923 from ax3l/fix-imagingHinclude
2020-10-14 16:33:42 +03:00
Hugo van Kemenade
f9852c0381
Merge branch 'master' into fix-imagingHinclude
2020-10-14 14:50:36 +03:00
Axel Huebl
115add2fa0
do not add extra include directories ( #3 )
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-10-14 01:59:34 -07:00
nulano
e65dd04a63
avoid using pkg_resources in PIL.features.pilinfo
2020-10-13 17:52:26 +01:00
Hugo van Kemenade
9a93f6ee45
Merge pull request #4959 from nulano/anchor-part3
2020-10-12 19:27:08 +03:00
Hugo van Kemenade
c7b0fe1bca
Merge pull request #4963 from nulano/implicit-function
2020-10-12 19:23:40 +03:00
nulano
b49ebad5f5
Merge remote-tracking branch 'upstream/master' into anchor-part3
2020-10-12 16:14:00 +01:00
nulano
d7a08cbd15
add color support to new text measuring functions
2020-10-12 16:05:19 +01:00
Hugo van Kemenade
c1a9f889f3
Merge pull request #4964 from nulano/pypy
2020-10-12 17:59:55 +03:00
nulano
90e8255ba4
Merge remote-tracking branch 'upstream/master' into anchor-part3
...
# Conflicts:
# Tests/test_imagefontctl.py
2020-10-12 15:50:45 +01:00
Hugo van Kemenade
309cb9e5c4
Merge pull request #4927 from radarhere/tuple
2020-10-12 14:40:22 +03:00
Hugo van Kemenade
43c3f4de80
Merge pull request #4955 from nulano/ft-color3
2020-10-12 13:52:01 +03:00
Andrew Murray
518b783c64
Removed OSError in favour of DecompressionBombError
2020-10-12 19:32:48 +11:00
nulano
40c9a5a2a0
compatibility for LCMS<2.7, vix LCMS version string
2020-10-12 02:58:24 +01:00
nulano
c06bb8044d
remove PyPy3-7.1.x compatibility code
2020-10-12 02:08:50 +01:00
nulano
39ae5d62f0
compatibility code for ancient FreeType
2020-10-12 01:45:52 +01:00
nulano
067a254366
Apply suggestions from code review
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-10-11 21:55:32 +02:00
Hugo van Kemenade
15c339470d
Merge pull request #4523 from xtsm/ellipse
...
Implemented another ellipse drawing algorithm
2020-10-11 18:04:34 +03:00
nulano
9b5931f212
typo
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-10-09 16:43:10 +02:00
nulano
c80f123923
document ImageDraw.textlength and ImageDraw.textbbox
2020-10-09 01:43:23 +01:00
nulano
1551e120ae
add textlength and textbbox to ImageDraw
2020-10-09 01:02:51 +01:00
nulano
395aa946a9
add getbbox and getlength, with tests
...
Squashed commits:
[ec9ec31b] add tests for invalid anchor
(cherry picked from commit 9e50a6a47f79876ee56942152047f03fff03c49b)
[386a9170] fix lint and docs
(cherry picked from commit 2d0d5282fcfc3ee332a41e60b865ee766445cc3d)
[29f5d4c9] restore and document previous getsize behaviour
see discussion in issue 4789
(cherry picked from commit 9fbc94571ce0ed42fdd11e99f343a1613c9dc6d3)
[0ffd51a0] add getbbox and getlength, with tests
(cherry picked from commit c5f63737476a998c81e589e5819d21ca69bb7b46)
2020-10-09 00:56:58 +01:00
Andrew Murray
ddbd529573
Corrected comment
2020-10-09 01:16:23 +11:00
Andrew Murray
88f9ef2f6b
Removed unused function
2020-10-09 01:16:23 +11:00
nulano
568a1260fc
fix color on big-endian
2020-10-07 13:03:05 +01:00
nulano
bf529303de
use FT_Bitmap_Convert instead of reimplementing the wheel
2020-10-07 05:29:18 +01:00
nulano
9151da162c
add support for CBDT and embedded bitmaps in truetype fonts
2020-10-07 05:29:17 +01:00
nulano
82a28d12e2
add support for fonts with COLR data
2020-10-07 05:29:10 +01:00
Hugo van Kemenade
c841501c34
Merge pull request #4752 from radarhere/warnings
...
Fixed comparison warnings
2020-10-05 23:49:54 +03:00
Hugo van Kemenade
a7f384a813
Merge pull request #4292 from radarhere/private_png_chunks
...
Added reading and writing of private PNG chunks
2020-10-05 23:49:09 +03:00
Hugo van Kemenade
b29cab08d3
Merge pull request #4930 from nulano/anchor-part2
2020-10-05 20:19:33 +03:00
Andrew Murray
7a1f0f6a8f
Fixed bug in Exif __delitem__
2020-10-05 09:45:05 +11:00
nulano
3273a1af4c
fix tk on latest msys2-mingw64
2020-10-04 22:55:53 +01:00
Andrew Murray
ac1e86b9d4
Prefix header include
2020-09-29 19:54:57 +10:00
nulano
a9b8dcba7d
write anchor docs
...
(cherry picked from commit dcaee36941e6cb5e6f93186b6f819fb74887e0d3)
2020-09-22 14:58:17 +02:00
Andrew Murray
7e4db0a80e
Prefix other header includes
2020-09-22 13:33:05 +10:00
Andrew Murray
e01081bf8b
Improved error message
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-09-22 08:36:29 +10:00
Andrew Murray
27c0747518
Allow tuples with one item to give single color value in getink
2020-09-20 14:23:05 +10:00
nulano
e6d4c2ce8f
implement text anchor for truetype fonts
...
(cherry picked from commit bac9025918ccf944bac77addc130f33cf9d74701)
2020-09-19 15:17:45 +02:00
Hugo van Kemenade
93d011efb5
Merge pull request #4910 from nulano/anchor-part1
2020-09-19 13:41:15 +03:00
Axel Huebl
f79379ed7c
Imaging.h: confusion with system
...
The file `libImaging/Imaging.h` gets installed flat on
Ubuntus into the public Python includes.
When building a newer version of Pillow from source and
hinting the Python includes "too early" in includes, e.g.
in package managers, this can confuse the two files and
pick up the external file over the internal one. With
different versions, this mismatch can lead to build errors,
e.g. undefined macros.
The most robust way to avoid this is to pre-fix the internal
include accordingly, so that the relative path to the including
file has to match as well.
2020-09-17 18:06:45 +10:00
Andrew Murray
c196af6ddb
Fixed loading profile with non-ASCII path on Windows
2020-09-13 13:53:58 +10:00
Andrew Murray
2e029d9a79
Merge pull request #4840 from essarrjay/patch-1
...
Image.thumbnail docstring: added missing filters
2020-09-12 11:03:56 +10:00
Stanislau T
17d83d6a7c
Fix comment grammar
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-09-11 19:51:57 +03:00
nulano
a501ba9308
update link in comment
2020-09-11 01:14:00 +02:00
Hugo van Kemenade
68da661db9
Small optimisation: move distance==0 comparison to outer loop, to check once per call instead of once per pixel
2020-09-09 10:08:46 +03:00
nulano
ee1cc6ad7c
remove use of FT_Set_Transform
2020-09-09 02:14:49 +02:00
nulano
5d541e3d9e
simplify code, organize variable declarations, add comments
2020-09-09 02:14:46 +02:00
nulano
54e067779b
fix and add tests
...
(cherry picked from commit 0b711f10d0490863976699c051f2027b6799d501) (+1 squashed commits)
Squashed commits:
[9d4e6c17] fix tests
2020-09-09 02:12:21 +02:00
Andrew Murray
c83ffc6aea
Fixed effect_spread bug for zero distance
2020-09-08 18:51:58 +10:00