Andrew Murray
d7fa0b9d96
Update CHANGES.rst [ci skip]
2023-12-04 22:20:22 +11:00
Andrew Murray
b51dcc070b
Merge pull request #7587 from radarhere/freetypefont
...
Moved error from truetype() to FreeTypeFont
2023-12-04 22:05:38 +11:00
Andrew Murray
0853e4b8a4
Merge pull request #7598 from radarhere/lcms2
...
Updated lcms2 to 2.16
2023-12-04 22:03:58 +11:00
Andrew Murray
b431e2c140
Merge pull request #7555 from radarhere/pdf_palette
...
Correct PDF palette size when saving
2023-12-04 21:54:01 +11:00
Andreas Florath
90e1e94530
Merge branch 'python-pillow:main' into ImageStat_getcount_opt
2023-12-04 10:36:21 +01:00
Andreas Florath
ac47b75953
Update src/PIL/ImageStat.py
...
Simplification of return statement
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-04 10:27:30 +01:00
Andrew Murray
2b734a33c7
Updated lcms2 to 2.16
2023-12-04 08:32:39 +11:00
Hugo van Kemenade
27d7bd10c8
Use list comprehensions to create transformed lists
2023-12-03 21:59:44 +02:00
Andrew Murray
2eddbc5994
Updated docstrings
2023-12-03 14:25:07 +11:00
REDxEYE
9e5ff7600e
Merge pull request #10 from radarhere/improved_dds
...
Moved _Tile from Image to ImageFile
2023-12-03 02:40:07 +03:00
Hugo van Kemenade
80d0ed48b3
Merge pull request #7590 from radarhere/windows
...
Update Windows wheels info
2023-12-02 16:35:15 +02:00
Andrew Murray
77a96a00ce
Update CHANGES.rst [ci skip]
2023-12-02 21:50:11 +11:00
Andrew Murray
e072a12974
Corrected constant values
2023-12-02 21:36:17 +11:00
Andrew Murray
5aadeb5004
Moved _Tile to ImageFile
2023-12-02 21:36:17 +11:00
Andrew Murray
ab96324c12
Removed support for RGB bitcount 8
2023-12-02 21:36:17 +11:00
Andrew Murray
56b4822294
args may be a string or None
2023-12-02 21:36:17 +11:00
Andrew Murray
662cb229c2
Updated variable name to match tile
2023-12-02 21:36:17 +11:00
Andrew Murray
49578f0059
Merge branch 'main' into improved_dds
2023-12-02 21:35:20 +11:00
Andrew Murray
a6a612c6c5
Merge branch 'main' into fix-alpha-for-overlapping-glyphs
2023-12-02 21:33:29 +11:00
Andrew Murray
364e627c27
Merge branch 'main' into windows
2023-12-02 21:31:40 +11:00
Andrew Murray
96fe0a103b
Merge branch 'main' into ImageStat_getextrema_opt
2023-12-02 21:27:36 +11:00
Hugo van Kemenade
2b5c081499
Merge pull request #7594 from radarhere/olefile
...
Fixed closing file pointer with olefile 0.47
2023-12-02 12:22:17 +02:00
Zach Nagengast
bd2977c518
Update src/PIL/ImageDraw.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-01 22:56:59 -08:00
Andrew Murray
11e226ee90
All GitHub Actions wheels are now in the "Wheels" workflow
2023-12-02 13:18:13 +11:00
Andrew Murray
0e523d9868
Fixed closing file pointer with olefile 0.47
2023-12-02 10:57:16 +11:00
Andreas Florath
7762dd382a
Fixed spacing in _getextrema method
...
Signed-off-by: Andreas Florath <andreas@florath.net>
2023-12-01 18:53:44 +01:00
Andreas Florath
1b8f9d386b
Optimize ImageStat.Stat._getextrema function
...
The optimzed function improves the performance. The original function
always runs through the complete historgram of length 256 even if it
is possible to exit the loop early (break).
Running some tests I found performance improvements of factor >10
depending on the image.
Signed-off-by: Andreas Florath <andreas@florath.net>
2023-12-01 18:53:44 +01:00
Andreas Florath
e01354a2c8
Added space before colon
...
Signed-off-by: Andreas Florath <andreas@florath.net>
2023-12-01 18:52:27 +01:00
Andreas Florath
f7d40ce31c
Removed functools and operator import which are not needed anymore
...
Signed-off-by: Andreas Florath <andreas@florath.net>
2023-12-01 18:52:27 +01:00
Andreas Florath
a04c6a27e8
Optimization of ImageStat.Stat._getcount method
...
The new implementation uses "sum" instead of the construct
"functools.reduce(operator.add, ...)". Test showed that the
new function is about three times faster than the original.
Also it is shorter and easier to read.
Signed-off-by: Andreas Florath <andreas@florath.net>
2023-12-01 18:52:27 +01:00
Zach Nagengast
e80002643d
Update Tests/test_imagefont.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-01 08:54:13 -08:00
Hugo van Kemenade
76446ee450
Merge pull request #7524 from cclauss/ruff-rules-C4-PERF102-PIE810-PLR
2023-12-01 17:09:25 +02:00
Andrew Murray
ea680d98a5
Merge pull request #21 from nulano/font
...
Fix documentation link to PIL.ImageFont.Layout
2023-12-01 12:29:32 +11:00
Andrew Murray
bd7874a6f1
Update Windows wheels info
2023-12-01 12:01:34 +11:00
Andrew Murray
316f39702c
Merge pull request #7580 from nulano/cibuildwheel-docker
...
Build Windows wheels using cibuildwheel
2023-12-01 10:41:53 +11:00
Nulano
984700b1f7
fix documentation link to PIL.ImageFont.Layout
2023-11-30 23:58:47 +01:00
Andrew Murray
13c1d752c6
Use enum in type hint
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-01 08:42:25 +11:00
Nulano
e1059767d8
replace importlib.util.find_spec with try import except ImportError
2023-11-30 20:11:24 +01:00
Andrew Murray
63bec07b97
Merge pull request #7475 from radarhere/harfbuzz
...
Updated harfbuzz to 8.3.0
2023-11-30 21:58:40 +11:00
Andrew Murray
f23d029d5f
Moved error from truetype() to FreeTypeFont
2023-11-30 07:41:02 +11:00
Andrew Murray
e1291b880d
Update CHANGES.rst [ci skip]
2023-11-30 07:38:27 +11:00
Hugo van Kemenade
54c5631fe1
Merge pull request #7584 from akx/truetype-size-validation
2023-11-29 17:16:51 +02:00
Aarni Koskela
36e0b5312a
Update Tests/test_imagefont.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-29 09:21:51 +02:00
Zach Nagengast
78f78d2aa7
Update src/_imagingft.c
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-28 11:53:46 -08:00
Ondrej Baranovič
6fe42bddd9
Apply suggestions from code review
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-28 14:20:57 +01:00
Nulano
d88ab8a668
use verbose flag when building wheels
2023-11-28 14:20:57 +01:00
Nulano
7dc3a8ffa5
do not build Windows wheels on every push
2023-11-28 14:20:57 +01:00
nulano
1fdb0668d8
test cibuildwheel wheels in Docker on Windows
2023-11-28 14:20:57 +01:00
Nulano
3d49244d36
specify build config settings in pyproject.toml
2023-11-28 14:20:57 +01:00
Nulano
bf51d71660
enable heap verification
2023-11-28 14:20:56 +01:00