Compare commits

...

4735 Commits
10.0.0 ... main

Author SHA1 Message Date
Hugo van Kemenade
8ec31431cb
Drop support for PyPy3.10 (#9112) 2025-07-28 22:34:58 +03:00
Andrew Murray
98d38a3bff
Updated libpng to 1.6.50 (#9058) 2025-07-28 18:52:06 +10:00
Andrew Murray
53b6d57b73 Drop support for PyPy3.10 2025-07-26 19:39:54 +10:00
renovate[bot]
7dbcb32cbe
Update cygwin/cygwin-install-action action to v6 (#9108)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-07-26 19:32:57 +10:00
Luke Granger-Brown
ec6d5efe4d
Deprecate ImageCmsProfile product_name and product_info (#8995)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-07-26 17:33:11 +10:00
Hugo van Kemenade
640f55a655
Update for pyroma 5.0 (#9093) 2025-07-24 12:25:04 +03:00
Andrew Murray
f4d86e4f44 Use teardown_method 2025-07-24 07:27:39 +10:00
Andrew Murray
a39d14648b Updated manifest 2025-07-16 13:54:43 +10:00
Andrew Murray
a426eb55af Remove file after test completion 2025-07-16 13:54:33 +10:00
Andrew Murray
91bbeb5dcb Revert iOS change until the test runs again 2025-07-16 13:54:13 +10:00
wiredfool
d56032047d
Add parallel compile from pybind11 (#8990) 2025-07-15 18:26:13 +02:00
Hugo van Kemenade
5e26d2fa2c
Improve WmfImagePlugin test coverage (#9090) 2025-07-15 09:16:08 +03:00
renovate[bot]
638eb1b999
Update dependency mypy to v1.17.0 (#9092) 2025-07-15 13:23:40 +10:00
Hugo van Kemenade
71d495add8
Improve DdsImagePlugin test coverage (#9091) 2025-07-14 23:40:29 +03:00
Andrew Murray
7516805121 Improved DDS test coverage 2025-07-14 19:29:27 +10:00
Andrew Murray
d85fa7a247 Improved WmfImagePlugin test coverage 2025-07-13 16:13:44 +10:00
Hugo van Kemenade
d80cf0ee1b
Improve ImageMath test coverage (#9087) 2025-07-11 20:35:36 +03:00
Andrew Murray
a8bb7579dc Improved ImageMath test coverage 2025-07-11 21:06:30 +10:00
Hugo van Kemenade
7b1ba29b5b
Remove unused _save_cjpeg (#9084) 2025-07-11 10:58:56 +03:00
Hugo van Kemenade
3c4fe62c1e
Update libwebp to 1.6.0 (#9082) 2025-07-11 10:46:17 +03:00
Andrew Murray
985544d557 Do not disable libwebpexamples 2025-07-11 13:28:08 +10:00
Andrew Murray
722c130b31
Restored URL
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-07-11 13:12:38 +10:00
Andrew Murray
d88986a184
Link transitive dependencies
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2025-07-11 12:53:43 +10:00
Andrew Murray
50dde1c125 Remove unused _save_cjpeg 2025-07-10 23:19:16 +10:00
Andrew Murray
6c12d188db Updated libwebp to 1.6.0 2025-07-10 22:33:31 +10:00
Hugo van Kemenade
d74fdc4b5d
Ensure dynamic libjpeg libraries are not linked (#9081) 2025-07-10 11:06:32 +03:00
Russell Keith-Magee
2af930b2f7
Ensure dynamic libjpeg libraries are not linked. 2025-07-10 12:07:38 +08:00
Hugo van Kemenade
329d6a6a62
Remove reference to libtiff 3.x (#9072) 2025-07-08 20:01:35 +03:00
Hugo van Kemenade
3e5df07b34
Fix unclosed file warning (#9065) 2025-07-08 19:57:09 +03:00
Hugo van Kemenade
d58f4d5f1f
Added "Colors" to concepts (#9067) 2025-07-08 19:56:53 +03:00
Andrew Murray
cbd47d8609 Removed handling of deprecated WebP features 2025-07-08 23:07:07 +10:00
Andrew Murray
c9cf688ee7 Removed ImageDraw.getdraw hints deprecation section 2025-07-08 21:10:26 +10:00
renovate[bot]
2195faf0dc
Update dependency cibuildwheel to v3.0.1 (#9075) 2025-07-08 13:44:13 +10:00
Andrew Murray
06f5cd1dde
Restored manylinux2014 wheels (#9059) 2025-07-08 11:31:03 +10:00
Hugo van Kemenade
27d47b3abf
[pre-commit.ci] pre-commit autoupdate (#9073) 2025-07-07 23:43:15 +03:00
Andrew Murray
e88f312029 Fix unclosed file warning 2025-07-08 06:38:16 +10:00
Andrew Murray
4cfef00574 Added "Colors" to concepts 2025-07-08 06:37:03 +10:00
pre-commit-ci[bot]
14b0cebfc1
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.0 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.0...v0.12.2)
- [github.com/PyCQA/bandit: 1.8.5 → 1.8.6](https://github.com/PyCQA/bandit/compare/1.8.5...1.8.6)
- [github.com/pre-commit/mirrors-clang-format: v20.1.6 → v20.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v20.1.6...v20.1.7)
- [github.com/python-jsonschema/check-jsonschema: 0.33.1 → 0.33.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.1...0.33.2)
- [github.com/woodruffw/zizmor-pre-commit: v1.9.0 → v1.11.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.9.0...v1.11.0)
2025-07-07 17:16:48 +00:00
Hugo van Kemenade
44a553a0a2
Pyroma now supports PEP 639 (#9064) 2025-07-07 19:12:30 +03:00
Hugo van Kemenade
ef129003d9
Update macOS tested Pillow versions (#9068) 2025-07-07 16:23:04 +03:00
Andrew Murray
756dd04705 Removed reference to libtiff 3.x 2025-07-07 19:09:39 +10:00
Andrew Murray
a84458ffbd Revert "Work around pyroma test"
This reverts commit d8a0cb5db1.
2025-07-07 18:57:58 +10:00
Hugo van Kemenade
dcd202568a
Remove deprecations for Pillow 12.0.0 (#9053) 2025-07-07 11:49:02 +03:00
Andrew Murray
dc9e0cf326
Thanks, folks! (#9056) 2025-07-07 09:48:39 +10:00
Andrew Murray
1ee91f22ba Updated macOS tested Pillow versions 2025-07-05 22:51:02 +10:00
Jeffrey A. Clark
77f3a091b8
Setup nit: "fork" should be lowercased (#9055) 2025-07-01 10:54:12 -04:00
Andrew Murray
f2417d8b39 Added release notes 2025-07-02 00:00:21 +10:00
Andrew Murray
0e3aac1ed1 Updated deprecation timeline 2025-07-02 00:00:21 +10:00
Andrew Murray
92bafe6b88 Removed support for FreeType <= 2.9.0 2025-07-02 00:00:21 +10:00
Andrew Murray
aaf217cea0 Removed ICNS (width, height, scale) sizes 2025-07-02 00:00:21 +10:00
Andrew Murray
9fbc255ce5 Removed non-image modes in ImageCms 2025-07-02 00:00:21 +10:00
Andrew Murray
b4bc43fed2 Removed ImageCms constants and versions() 2025-07-02 00:00:21 +10:00
Andrew Murray
4301c1fde6 Removed ImageMath eval and options parameters 2025-07-02 00:00:21 +10:00
Andrew Murray
0a29d6392a Removed IptcImageFile helper functions 2025-07-02 00:00:21 +10:00
Andrew Murray
9c9449af34 Removed support for LibTIFF < 4 2025-07-02 00:00:16 +10:00
Andrew Murray
a7e00fba8b Removed ImageDraw.getdraw hints parameter 2025-07-01 23:57:50 +10:00
Andrew Murray
88018c1c2d Removed id and unsafe_ptrs 2025-07-01 23:57:50 +10:00
Andrew Murray
cce39084f5 Removed specific WebP feature checks 2025-07-01 23:57:50 +10:00
Andrew Murray
b72b8dd84d Removed JpegImageFile.huffman_ac and JpegImageFile.huffman_dc 2025-07-01 23:57:50 +10:00
Andrew Murray
1800e580d2 Removed ImageFile raise_oserror() 2025-07-01 23:57:50 +10:00
Andrew Murray
5d4a05465d Removed Image isImageType() 2025-07-01 23:57:50 +10:00
Andrew Murray
583f0a50d5 Removed BGR;15, BGR;16 and BGR;24 modes 2025-07-01 23:57:46 +10:00
Jeffrey A. Clark
d4ef93150f Thanks, folks!
As a general rule I think we should acknowledge when significant
contribtions come from outside the core team. We know the core team
does a lot of work (thank you!) but it's not always obvious when
significant contributions come from outside the core team.

In the old change log, we had ACKs via `[radarhere]` syntax which I
miss. I don't expect we'll start using the old change log again but
maybe we can make a note in the release notes to include such ACKs as
needed and appropriate.
2025-07-01 09:25:32 -04:00
Jeffrey A. Clark
0cd2d3b24b Setup nit: "fork" should be lowercased 2025-07-01 09:10:20 -04:00
Andrew Murray
37cd041e5e 12.0.0.dev0 version bump 2025-07-01 19:25:23 +10:00
Andrew Murray
89f1f4626a 11.3.0 version bump 2025-07-01 17:41:24 +10:00
Andrew Murray
f2de251c76
Updated check script paths (#9052) 2025-07-01 15:17:56 +10:00
Hugo van Kemenade
84855d11c8
Raise FileNotFoundError when opening an empty path (#9048) 2025-06-30 17:48:44 +03:00
Andrew Murray
204d11d4da Raise FileNotFoundError when opening an empty path 2025-06-30 22:29:41 +10:00
Hugo van Kemenade
2b39f7581e
Handle IPTC TIFF tags with incorrect type (#8925) 2025-06-30 15:25:19 +03:00
Hugo van Kemenade
e7a53ba19b
Do not update palette for L mode GIF frame (#8924) 2025-06-30 15:24:18 +03:00
Hugo van Kemenade
c22230b761
Use save parameters as encoderinfo defaults (#9001) 2025-06-30 15:13:12 +03:00
Russell Keith-Magee
da10ed1cf3
Add support for iOS (#9030)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-30 21:46:07 +10:00
Kylian Ronfleux--Corail
be2b4e7864
Fix qtables and quality scaling (#8879)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-30 20:46:40 +10:00
Andrew Murray
d4162f8505 Updated return type 2025-06-30 18:27:49 +10:00
Hugo van Kemenade
a2fbd58f4b
Read 16-bit McIdas images into I;16B mode to allow for memory mapping (#9046) 2025-06-29 15:38:26 +03:00
Hugo van Kemenade
144890255f
Support ttb multiline text (#8730) 2025-06-28 14:35:13 +03:00
Hugo van Kemenade
c084bd7d95
Use unpacking (#9044) 2025-06-28 14:33:10 +03:00
Hugo van Kemenade
d263e3ba13
Fix saving MPO with more than one appended image (#8979) 2025-06-28 14:32:33 +03:00
Andrew Murray
4ac2403532 Read 16-bit images into I;16B mode to allow for memory mapping 2025-06-28 15:48:44 +10:00
Andrew Murray
26ae44e059 Merge branch 'main' into ttb 2025-06-28 13:49:43 +10:00
Andrew Murray
ed82f4d235 Use unpacking 2025-06-28 10:57:23 +10:00
Andrew Murray
5732a86cc6
Use snake case
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-28 10:52:25 +10:00
Andrew Murray
a370209fea
Add match parameter to pytest.warns() (#9038) 2025-06-28 10:29:34 +10:00
Andrew Murray
69c0c422c8
Increase pytest verbosity (#9040)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-28 10:29:01 +10:00
Andrew Murray
a0a1ff14c4 Merge branch 'main' into encoderinfo_frames 2025-06-28 01:35:59 +10:00
Andrew Murray
646b4a4ecd
Merge branch 'main' into mpo 2025-06-28 01:20:15 +10:00
Andrew Murray
41129ce1cb
Use list
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-28 01:20:02 +10:00
Hugo van Kemenade
3a66b1d291
Restore original encoderinfo after saving (#8942) 2025-06-27 18:04:43 +03:00
Hugo van Kemenade
935e9e4fbd
Return PixelAccess from first load of ICO and IPTC images (#8922) 2025-06-27 18:02:48 +03:00
Hugo van Kemenade
c96b27711c
Improve justifying text (#8905) 2025-06-27 18:01:25 +03:00
Hugo van Kemenade
ba37249ab7
Set color table fourth channel to zero for 1 and L mode when saving BMP (#8889) 2025-06-27 18:00:06 +03:00
Hugo van Kemenade
3a18e555f0
Assert palette is not None (#8877) 2025-06-27 17:53:55 +03:00
Hugo van Kemenade
3d21c16977
Improve reading XPM images (#8874) 2025-06-27 17:53:34 +03:00
Andrew Murray
d07aa6fd17
Added release notes for #9041 (#9042)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-28 00:30:22 +10:00
Andrew Murray
ef98b3510e
Fix buffer overflow when saving compressed DDS images (#9041)
Co-authored-by: Eric Soroos <eric-github@soroos.net>
2025-06-28 00:29:58 +10:00
Hugo van Kemenade
958c449b98
Close image after assert
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-06-27 16:17:20 +03:00
Andrew Murray
e783aff688
Improve SgiImagePlugin test coverage (#8896) 2025-06-27 15:32:30 +03:00
Hugo van Kemenade
6aff8fcc18
Fix PT031 (#135) 2025-06-27 14:30:41 +03:00
Andrew Murray
a61a23d7ae Fixed PT031 2025-06-27 13:00:48 +10:00
Andrew Murray
092e37a56c
Merge branch 'main' into bump-pre-commit 2025-06-27 11:04:44 +10:00
Hugo van Kemenade
1788ab7887
Do not import type checking (#8854) 2025-06-26 18:52:09 +03:00
Hugo van Kemenade
cb061f7269
Update ruff pre-commit ID (#8994) 2025-06-26 18:50:17 +03:00
Hugo van Kemenade
a27731b2af
Improve type hints (#8883) 2025-06-26 18:49:39 +03:00
Hugo van Kemenade
d1894dcd46 Add match parameter to pytest.warns() 2025-06-26 18:12:36 +03:00
Hugo van Kemenade
234875bf90 Update Ruff hook from legacy 2025-06-26 17:56:26 +03:00
Hugo van Kemenade
b9afe18646 Bump pre-commit hooks 2025-06-26 17:56:26 +03:00
Frankie Dintino
3d261a2101
Add AVIF to wheels using only aomenc and dav1d AVIF codecs for reduced size (#8858)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-26 16:21:44 +10:00
Andrew Murray
23ed906b62 Removed default limit of 4 2025-06-25 22:00:36 +10:00
Andrew Murray
ecd264fffc Use "parallel" config setting and 4 as defaults 2025-06-25 21:43:03 +10:00
Hugo van Kemenade
46d969168e
Use PEP 489 multi-phase initialization (#8983) 2025-06-25 11:32:37 +01:00
Andrew Murray
a549c5528a
Merge branch 'main' into pybind11 2025-06-25 20:31:48 +10:00
Hugo van Kemenade
1e5eb3b29d
Support saving I;16L TIFF images (#9015) 2025-06-25 11:11:47 +01:00
Hugo van Kemenade
8655b7c559
Only check DHT marker for libjpeg-turbo (#9025) 2025-06-25 11:09:55 +01:00
Hugo van Kemenade
8cf8b0dde0
Do not call sys.executable in ImageShow in PyInstaller application (#9028) 2025-06-25 10:46:46 +01:00
Hugo van Kemenade
c704f43288
Deprecate fromarray mode argument (#9018) 2025-06-25 10:44:39 +01:00
Hugo van Kemenade
0450f99596
Search for libtiff library file first on Windows and macOS (#9034) 2025-06-25 10:42:00 +01:00
Andrew Murray
e1ee8afc7d Search for libtiff library file first on Windows and macOS 2025-06-25 10:42:09 +10:00
Andrew Murray
acd8b0c2ac
Fix libtiff cleanup (#9002) 2025-06-25 09:09:31 +10:00
Hugo van Kemenade
129267bc82
Use percent formatting for _dbg calls (#9035) 2025-06-24 18:37:07 +01:00
Andrew Murray
18f8af78d3 Pass strings or tuples of strings to _dbg 2025-06-24 20:35:09 +10:00
Andrew Murray
1557585411 Use percent formatting 2025-06-24 20:29:38 +10:00
Andrew Murray
2954964cd2
Removed ImageCmsProfile._set method (#9032)
Co-authored-by: Luke Granger-Brown <git@lukegb.com>
2025-06-23 07:05:43 +10:00
Andrew Murray
ae02518314
Use same AVIF URL when fetching dependency (#8871) 2025-06-22 22:08:51 +10:00
Hugo van Kemenade
f8d53fb8e6
Added Python 3.14 macOS x86-64 wheels (#9031) 2025-06-22 09:36:57 +01:00
Andrew Murray
78bc045db9
Merge branch 'main' into fromarray_mode 2025-06-21 21:03:37 +10:00
Hugo van Kemenade
13faa4681c
Deprecate saving I mode images as PNG (#9023) 2025-06-21 11:24:28 +01:00
Andrew Murray
216dc4ca60 Added Python 3.14 macOS x86-64 wheels 2025-06-21 19:12:23 +10:00
Andrew Murray
f937dd27cd Do not call sys.executable in PyInstaller application 2025-06-20 23:44:30 +10:00
Andrew Murray
2316c930f9 Removed default argument 2025-06-19 22:46:09 +10:00
thisismypassport
ef0bab0c65
Support writing QOI images (#9007)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-19 18:16:26 +10:00
renovate[bot]
92de1db067
Update dependency mypy to v1.16.1 (#9026) 2025-06-19 11:12:40 +10:00
Andrew Murray
79e0b0b6ad Allow for custom stacklevel in deprecations 2025-06-18 22:19:20 +10:00
Andrew Murray
a4e8d675b4 Only check DHT marker for libjpeg-turbo 2025-06-18 21:59:31 +10:00
Andrew Murray
d23d56e195 Deprecate saving I mode images as PNG 2025-06-17 23:10:15 +10:00
Hugo van Kemenade
4d0ebb040a
Add release notes for #8912 and #8969 (#9019) 2025-06-16 13:25:43 +03:00
Andrew Murray
7b5e11deb7 Updated heading 2025-06-16 20:06:53 +10:00
Andrew Murray
c19afb9430
Use names
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-16 20:05:34 +10:00
Hugo van Kemenade
ef683e9d78
Simplify C error handling (#9021) 2025-06-16 13:01:46 +03:00
Hugo van Kemenade
01267f9dac
Improve BLP tests (#9020) 2025-06-16 13:00:30 +03:00
Hugo van Kemenade
850271a912
Fix warning (#9016) 2025-06-16 12:57:45 +03:00
Andrew Murray
8309962926 Replaced ImagingError_OSError with PyErr_SetString 2025-06-16 08:19:27 +10:00
Andrew Murray
cb433ad00a Replaced ImagingError_Clear with PyErr_Clear 2025-06-16 08:15:08 +10:00
Andrew Murray
ce8083e0d8 Match error message 2025-06-14 18:40:03 +10:00
Andrew Murray
59667bbec5 Use *_tofile helpers 2025-06-14 18:39:30 +10:00
Hugo van Kemenade
222b86222e
Update libpng to 1.6.49 (#9014) 2025-06-14 10:24:58 +03:00
Andrew Murray
3ac1edf6da Added release notes for #8912 2025-06-14 17:13:02 +10:00
Andrew Murray
27ce12bb7a Added release notes for #8969 2025-06-14 16:44:42 +10:00
Andrew Murray
e6af31e709 Deprecate fromarray mode argument 2025-06-14 16:09:11 +10:00
Andrew Murray
5aa09cd107 Updated libpng to 1.6.49 2025-06-14 12:23:01 +10:00
Andrew Murray
925fe51904 Support saving I;16L images 2025-06-14 12:22:48 +10:00
Andrew Murray
4ba97d1327 Removed entries for non-existent modes 2025-06-14 12:22:48 +10:00
Andrew Murray
a219e96fd3 Fixed warning 2025-06-14 12:22:29 +10:00
Hugo van Kemenade
a3d91cb0ce
CI: Require Python >= 3.13.5 on Windows (#9017) 2025-06-14 12:21:31 +10:00
Andrew Murray
2e5117305b
Add Python 3.14 beta wheels (#9012) 2025-06-13 18:59:32 +10:00
Hugo van Kemenade
3841db0252 Fix: Invalid skip selector: 'pp39-*' 2025-06-13 00:08:52 +03:00
Hugo van Kemenade
aca0e57126 Add 3.14 to CI targets 2025-06-12 23:47:28 +03:00
Hugo van Kemenade
4a1eea8466 Add Python 3.14 beta wheels 2025-06-12 23:47:28 +03:00
Hugo van Kemenade
a76dca9c45
Test Python 3.14t on macOS and Linux (#9011) 2025-06-12 19:26:11 +03:00
Hugo van Kemenade
5996dbdc3a
Update dependency cibuildwheel to v3 (#9010) 2025-06-12 19:13:45 +03:00
Andrew Murray
9bffc015e6 Use pypy.exe if it exists 2025-06-12 23:52:51 +10:00
Andrew Murray
b9aac77003 Test Python 3.14t 2025-06-12 22:48:27 +10:00
Andrew Murray
d2295c0843 Do not activate virtualenv 2025-06-12 18:53:35 +10:00
renovate[bot]
b65a7acf25
Update dependency cibuildwheel to v3 2025-06-11 13:20:34 +00:00
Andrew Murray
8ccdc399df
Remove padding between interleaved PCX palette data (#9005) 2025-06-11 16:19:09 +03:00
Andrew Murray
7f7c27f66a
Start QOI decoding with a zero-initialized array of previously seen pixels (#9008) 2025-06-11 22:56:57 +10:00
Andrew Murray
3eb893f0c1
Updated libjpeg-turbo to 3.1.1 (#9009) 2025-06-11 13:56:28 +03:00
Andrew Murray
056dc89a3c
Correct drawing I;16 horizontal lines (#8985) 2025-06-10 15:12:40 +03:00
Hugo van Kemenade
ff624fe1e6
Reduce number of bytes read for PCX header (#9004) 2025-06-10 15:01:02 +03:00
Andrew Murray
d7a45cc250
ImageFont does not handle multiline text (#9000) 2025-06-10 14:57:37 +03:00
Hugo van Kemenade
de053fbae0
Handle XMP data from an UNDEFINED TIFF tag (#8997) 2025-06-10 14:57:15 +03:00
Andrew Murray
36cea19532
Do not decode bytes in PPM error message (#8958) 2025-06-10 14:08:29 +03:00
Andrew Murray
646885e546
Parse XMP tag bytes without decoding to string (#8960)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-10 14:06:28 +03:00
Andrew Murray
e65e5bea45 Start decoding with a zero-initialized array of previously seen pixels 2025-06-10 20:30:18 +10:00
Andrew Murray
b844007cdc
Clear TIFF core image if memory mapping was used for last load (#8962) 2025-06-10 17:03:31 +10:00
Andrew Murray
6bd55684e0
Only accept missing tkinter when building wheels on Windows (#8981) 2025-06-10 09:00:08 +03:00
Andrew Murray
7b163cc35d
Use mask in C when drawing wide polygon lines (#8984) 2025-06-10 11:46:12 +10:00
Hugo van Kemenade
05636dca17
Simplify code (#8863) 2025-06-09 19:33:55 +03:00
Andrew Murray
7341e70f6b Reduced number of bytes read for header 2025-06-09 12:21:53 +10:00
Andrew Murray
313969cf0b Removed unnecessary seek 2025-06-09 12:21:49 +10:00
Andrew Murray
ef1f90fe1c
Check for equality rather than inequality
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-09 09:06:08 +10:00
Hugo van Kemenade
8e5a15bab7
Call startswith once with a tuple (#8998) 2025-06-08 19:19:53 +02:00
Andrew Murray
0bb99e5561 Use save parameters as encoderinfo defaults 2025-06-07 15:08:16 +10:00
Andrew Murray
04c984f2f2 Removed duplicate code 2025-06-07 11:29:11 +10:00
Andrew Murray
89c38258dc Assert getcolors() does not return None 2025-06-07 11:13:30 +10:00
Andrew Murray
a3da70e76e Assert load() does not return None 2025-06-07 11:13:30 +10:00
Andrew Murray
cba096b4a9 Assert pixel data is tuple 2025-06-07 11:13:12 +10:00
Andrew Murray
33460d2f82 Assert _getmp() does not return None 2025-06-07 11:09:38 +10:00
Andrew Murray
0d1edba311 Assert tile args is tuple 2025-06-07 11:09:38 +10:00
renovate[bot]
f3b05d6fab
Update dependency mypy to v1.16.0 (#8991)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-07 11:07:21 +10:00
Andrew Murray
9d5ea827e4 Call startswith once with a tuple 2025-06-05 18:16:05 +10:00
Andrew Murray
f03c23683e Trim whitespace from end when parsing XMP data 2025-06-04 20:08:58 +10:00
Andrew Murray
cb077a16c8 Handle UNDEFINED XMP data 2025-06-04 20:07:13 +10:00
Hugo van Kemenade
1bf32ae892
Fix test (#8996) 2025-06-04 09:06:09 +02:00
Andrew Murray
eb0256acc0 Fixed test 2025-06-03 22:44:26 +10:00
Andrew Murray
fa7413904b Updated ruff ID 2025-06-03 14:13:22 +10:00
pre-commit-ci[bot]
070e1eba62
[pre-commit.ci] pre-commit autoupdate (#8993) 2025-06-03 14:08:24 +10:00
Andrew Murray
95603e9717
Use ImageFile.MAXBLOCK in tobytes() (#8906) 2025-06-02 20:14:11 +10:00
Andrew Murray
892fd2c2af
Removed unreachable code (#8918) 2025-06-01 15:41:48 +10:00
Eric Soroos
b931402046 add pybind11 elsewhere so mypy can find it 2025-05-31 15:14:17 +02:00
wiredfool
2059e06005 Add parallel compile from pybind11 2025-05-31 14:46:07 +02:00
Hugo van Kemenade
d730e60078
Update Ubuntu CI targets (#8988) 2025-05-31 10:52:59 +02:00
Hugo van Kemenade
598066d9e1
Stop testing deprecated Windows Server 2019 runner image (#8989) 2025-05-31 07:12:50 +02:00
Andrew Murray
9327e425ba Stop testing deprecated Windows Server 2019 2025-05-31 12:02:16 +10:00
Andrew Murray
bc4138f169 ubuntu-latest now uses Ubuntu 24.04 2025-05-31 11:48:49 +10:00
仓鼠
3944db288a
Update MinGW package names (#8987) 2025-05-31 11:10:45 +10:00
wiredfool
256f6ea1c1
Valgrind Memory Leak Checking (#8954) 2025-05-30 14:28:40 +01:00
wiredfool
f34b4a1806
Add parallel test target, using pytest-xdist (#8972) 2025-05-30 13:28:09 +01:00
wiredfool
0ba69613c9
Add support for flat uint8 arrow arrays for multi channel images (#8908) 2025-05-30 13:11:09 +01:00
wiredfool
22d6265063
Updated docstring (#8943) 2025-05-30 13:06:47 +01:00
wiredfool
e16f387bdf
Mention that tobytes() with the raw encoder uses Pack.c (#8878) 2025-05-30 13:01:19 +01:00
wiredfool
506691729a
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:40:35 +01:00
wiredfool
399b6c1045
Update Makefile
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:40:07 +01:00
wiredfool
98cf15e9e4
Update depends/docker-test-valgrind-memory.sh
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:35:13 +01:00
wiredfool
6a60b2e6dd Remove Tests/ path arg, this is already configured 2025-05-30 10:27:11 +01:00
Andrew Murray
62da23bf83 Removed polygon from DRAW struct 2025-05-29 18:27:22 +10:00
Andrew Murray
fcac6e7896 Removed hasAlpha argument 2025-05-29 18:27:17 +10:00
Andrew Murray
2ee2a1496d Simplified code 2025-05-29 18:26:09 +10:00
Andrew Murray
5000c83bcc Use multi-phase initialization 2025-05-28 23:50:18 +10:00
Andrew Murray
5b854b2332 Merge branch 'main' into valgrind-leakcheck 2025-05-28 08:27:57 +10:00
Andrew Murray
5a04b9581b
Run slow tests on valgrind, but without timeout (#8975) 2025-05-28 08:20:35 +10:00
Hugo van Kemenade
06e618c470
Removed CMAKE_POLICY_VERSION_MINIMUM=3.5 for libavif (#8973) 2025-05-27 17:18:20 +03:00
Hugo van Kemenade
90f115cd33
Reduced number of bytes read in WMF header (#8964) 2025-05-27 17:17:15 +03:00
Andrew Murray
bcc6e42bf8 Fixed saving MPO with more than one appended image 2025-05-27 21:08:58 +10:00
Andrew Murray
0eef5e20ef
Merge pull request #29 from wiredfool/tiff_mmap
Mark the image read-only in the C layer if it's created from a read only buffer
2025-05-27 09:12:43 +10:00
wiredfool
eff667a861 Mark the image read-only in the C layer if it's created from a read only buffer 2025-05-26 08:15:13 +10:00
Hugo van Kemenade
086e05f42f
Do not build against libavif < 1 (#8969) 2025-05-25 23:29:21 +03:00
Hugo van Kemenade
bce93319a9
Updated libpng to 1.6.48 (#8940) 2025-05-25 14:14:56 +03:00
Andrew Murray
041acf1344 Clear core image if memory mapping was used for last load 2025-05-25 15:00:47 +10:00
Andrew Murray
6096f335c1
Merge branch 'main' into valgrind-leakcheck 2025-05-24 15:41:48 +10:00
Andrew Murray
bcf1f85b30
Merge branch 'main' into parallel-test 2025-05-24 12:03:59 +10:00
Andrew Murray
57b77bde96 Removed CMAKE_POLICY_VERSION_MINIMUM=3.5 2025-05-24 11:55:18 +10:00
Andrew Murray
a4f477565a
Merge branch 'main' into fix_arrow_8907 2025-05-24 10:34:05 +10:00
Andrew Murray
5c2cabfa6c
Merge branch 'main' into avif 2025-05-24 10:30:29 +10:00
Andrew Murray
4eb89f8e5b Reduced number of bytes read for header 2025-05-24 10:24:42 +10:00
Andrew Murray
e018dc99fa Updated libpng to 1.6.48 2025-05-24 08:51:51 +10:00
Hugo van Kemenade
7e4d8e2f55
Updated Ghostscript to 10.5.1 (#8939) 2025-05-23 19:17:35 +03:00
Hugo van Kemenade
038ca7f3cc
Updated harfbuzz to 11.2.1 (#8937) 2025-05-23 19:17:23 +03:00
Hugo van Kemenade
97aa25ac6b
Updated libavif to 1.3.0 (#8949) 2025-05-23 19:17:07 +03:00
Eric Soroos
4d0678ca33 Add parallel test target, using pytest-xdist 2025-05-23 16:35:57 +02:00
pre-commit-ci[bot]
c63db77db3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-23 13:37:05 +00:00
Eric Soroos
60a1a20536 add timeouts to two more tests 2025-05-23 15:35:23 +02:00
wiredfool
edfc2caf62 Merge radarhere/fix_arrow_8907
* edit of elt typ
2025-05-23 11:04:55 +01:00
Andrew Murray
6807bd3d70 Added type hints 2025-05-23 11:04:08 +01:00
wiredfool
9526d949b0
Update Tests/test_pyarrow.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-23 10:58:28 +01:00
wiredfool
2603a249df
Update depends/docker-test-valgrind-memory.sh
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-23 10:57:03 +01:00
Andrew Murray
7824d2f8c6 Update rust when building libavif 2025-05-23 08:48:38 +10:00
Andrew Murray
45d1c4162b Do not build against libavif < 1 2025-05-22 15:55:43 +10:00
pre-commit-ci[bot]
c35082b619 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-17 08:48:02 +00:00
Eric Soroos
20b49a332b Remove timeout as the specific reason,
pytest-timeout doesn't raise a timeout error.
2025-05-17 10:45:43 +02:00
Eric Soroos
ff50e30d3e Fix memory leak in text_layout_raqm on 0 length string 2025-05-16 12:47:22 +02:00
Eric Soroos
6391f2c207 Merge remote-tracking branch 'upstream/main' into valgrind-leakcheck
* Some failing tests are on main but not last released version
2025-05-16 12:14:37 +02:00
Eric Soroos
f1957b49b2 Xfail timouts in Valgrind tests
* ensure that the env variable is set in the makefile
2025-05-16 12:08:45 +02:00
Eric Soroos
2d506f6f5a correct target 2025-05-15 22:06:35 +02:00
Eric Soroos
a6b8b3af77 executable 2025-05-15 22:04:14 +02:00
Eric Soroos
218f055865 Add github workflow/test-script 2025-05-15 21:59:02 +02:00
Eric Soroos
d5449d5760 Guess so. 2025-05-15 21:11:31 +02:00
Eric Soroos
fb126af7a6 Adding pytest-valgrind install 2025-05-15 21:10:48 +02:00
Andrew Murray
efa2288643 Updated libavif to 1.3.0 2025-05-15 08:38:33 +10:00
Eric Soroos
7aa6a61d43 Wrap Makefile 2025-05-13 23:50:52 +02:00
Eric Soroos
789631c60c Fix memory leak when JpegEncode returns an error. 2025-05-13 23:31:09 +02:00
Eric Soroos
f792e0b1ef Fix memory leak
* Return after setting the error for advanced features without
  libraqm. Not returning here leads to an alloc that's never freed.
2025-05-13 22:48:36 +02:00
Eric Soroos
e2e40c5456 Fix memory leak in TiffEncode
* If setimage errors out, the tiff client state was not freed.
2025-05-13 22:33:27 +02:00
Eric Soroos
a9bcd7db88 Fix leak of destination image in ImagingUnsharpMask when an error occurs 2025-05-13 19:50:55 +02:00
Eric Soroos
eaab435403 Fix leak in webp_encode
* Free the output buffer on webp encode error
2025-05-13 10:58:37 +02:00
Eric Soroos
84b88a9fbc Suppress all python level leaks for now 2025-05-13 10:58:12 +02:00
Eric Soroos
fdfba982c8 fix memory leak in arrow schema 2025-05-13 10:28:09 +02:00
Eric Soroos
4984c45da2 valgrind memory leak check 2025-05-13 10:27:38 +02:00
Andrew Murray
c64a7b5098 Updated harfbuzz to 11.2.1 2025-05-13 07:41:00 +10:00
Eric Soroos
74ab5ac4cd Fix memory leak in arrow export using array structure 2025-05-12 00:27:56 +02:00
Andrew Murray
78887f6114 Corrected comment 2025-05-09 23:52:18 +10:00
Hugo van Kemenade
3c71559804
Improve support for Python 3.14 (#8948) 2025-05-08 19:43:29 +03:00
Andrew Murray
215069af5d Added support for Python 3.14 2025-05-08 22:39:31 +10:00
Andrew Murray
71a916ad53 Do not install PyQt6 on Python 3.14 2025-05-08 22:13:49 +10:00
Andrew Murray
c7193f74fc Updated error message 2025-05-08 20:10:34 +10:00
pre-commit-ci[bot]
d02f786873
[pre-commit.ci] pre-commit autoupdate (#8944)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-08 19:16:40 +10:00
Andrew Murray
4d56b90f38 Updated docstring 2025-05-05 07:12:20 +10:00
Andrew Murray
0e292a80c8 Restore original encoderinfo after saving 2025-05-03 00:52:35 +10:00
Andrew Murray
2245fd09de Updated Ghostscript to 10.5.1 2025-04-30 07:54:07 +10:00
Hugo van Kemenade
07df26aa5d
Refactor docs Makefile (#8933)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-04-29 22:37:45 +10:00
Hugo van Kemenade
e23f017af1
Allow loading ImageFile state from Pillow < 11.2.1 (#8938) 2025-04-29 15:05:10 +03:00
Andrew Murray
47bebfc801 Allow loading state from Pillow < 11.2.1 2025-04-29 14:57:10 +10:00
Jeffrey A. Clark
c2f1b981b7
Add template for quarterly release issue (#8932) 2025-04-28 11:52:00 -04:00
Andrew Murray
dbe538a130 Updated template name 2025-04-28 06:19:18 +10:00
Andrew Murray
f1d5cdaa07 Use sentence case 2025-04-28 06:17:47 +10:00
Jeffrey A. Clark
e140027262 Move checklist to issue template 2025-04-27 15:45:40 -04:00
Jeffrey A. Clark
e6ff42303b
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-27 15:38:02 -04:00
Jeffrey A. Clark
1eba198b62
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-27 15:37:56 -04:00
Jeffrey A. Clark
fcaffa2229
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-27 15:37:50 -04:00
Jeffrey A. Clark
6881863eab
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-27 15:37:42 -04:00
Hugo van Kemenade
6a63907341
Remove outdated comment (#8929) 2025-04-27 18:16:34 +03:00
Andrew Murray
6f672191ad
Branch uses .x 2025-04-27 22:30:35 +10:00
Jeffrey A. Clark
0205fb4fa2
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-27 08:21:57 -04:00
Jeffrey A. Clark
8ab3bc469e
Update .github/ISSUE_TEMPLATE/RELEASE.md
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-27 08:21:48 -04:00
renovate[bot]
da9d5522f7
Update dependency cibuildwheel to v2.23.3 (#8931)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-27 21:35:08 +10:00
Jeffrey A. Clark
4c2227758e Add template for quarterly release issue 2025-04-27 07:09:53 -04:00
Andrew Murray
225182414c libavif below 1.0 is not supported 2025-04-25 17:14:13 +10:00
Andrew Murray
3bd55822cd Handle IPTC TIFF tags with incorrect type 2025-04-24 13:26:58 +10:00
Andrew Murray
d8afcb762f Do not update palette for L mode frame 2025-04-23 23:09:08 +10:00
Andrew Murray
1e365d8c72 Return PixelAccess on first load 2025-04-23 21:10:54 +10:00
Andrew Murray
7a48a9fae0 Do not load image more than once 2025-04-23 20:34:53 +10:00
wiredfool
45e24e429f Rearrance so black doesn't screw up the formatting 2025-04-21 10:54:00 +01:00
wiredfool
bc4b664b70 Add integer range tests 2025-04-21 10:46:45 +01:00
wiredfool
ce204f47f4 lint 2025-04-21 10:37:32 +01:00
wiredfool
6bf791a3e7 Use a named tuple for the packed parameters 2025-04-21 10:27:49 +01:00
Andrew Murray
58e48745cc
Add list of third-party plugins (#8910)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-21 12:14:08 +03:00
Hugo van Kemenade
8f123cd692
Update redirected URL (#8919) 2025-04-21 12:13:25 +03:00
Hugo van Kemenade
348589a367
Docs: use sentence case for headers (#8914)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-21 19:03:31 +10:00
Hugo van Kemenade
d03ce3d235
Docs: remove unused Makefile targets (#8917)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-21 18:22:03 +10:00
Andrew Murray
8fe7a7aaf8 Update redirected URL 2025-04-21 17:32:47 +10:00
Adian Kozlica
4402797b35
Add support for Grim in Wayland sessions ImageGrab (#8912)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-04-21 12:36:40 +10:00
Hugo van Kemenade
03e7871afd
Add make [-C docs] htmllive to rebuild and reload HTML files (#8913)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-20 00:18:01 +03:00
Hugo van Kemenade
d546233be4
Remove indentation from lists (#8915) 2025-04-19 22:50:57 +03:00
Andrew Murray
cf48bbf0c4 Removed indentation from list 2025-04-19 20:26:03 +10:00
Hugo van Kemenade
eb0395442c
Merge pull request #8904 from radarhere/harfbuzz 2025-04-18 14:29:58 +03:00
Andrew Murray
00ae9dda35 Changed harfbuzz buildtype to minsize 2025-04-18 18:49:11 +10:00
wiredfool
ac500460df lint 2025-04-17 22:22:31 +01:00
wiredfool
c729d4e208 Test uint32 array creation -> image32 images 2025-04-17 22:16:27 +01:00
wiredfool
3d77723a0c Added arrow support for a flat array of 4*uint8 for image32 modes 2025-04-17 21:42:42 +01:00
Andrew Murray
bc05a88ce6 Anchor left when justifying words 2025-04-17 20:56:02 +10:00
Andrew Murray
b955cee725 Do not justify last line 2025-04-17 19:36:52 +10:00
Andrew Murray
cccc07269a Do not justify a single word 2025-04-17 19:23:24 +10:00
Andrew Murray
ccc4668d4e Updated harfbuzz to 11.1.0 2025-04-17 08:04:34 +10:00
Andrew Murray
3d4119521c
Close file pointer earlier (#8895) 2025-04-16 18:49:57 +03:00
Andrew Murray
f630ec097b
Build Windows arm64 wheels on arm64 runner (#8898) 2025-04-16 14:05:08 +03:00
Andrew Murray
6ea7dc8eea
Add Fedora 42 (#8899) 2025-04-16 10:06:52 +03:00
Andrew Murray
507fefbce4
Python 3.13 is tested on Arch (#8894) 2025-04-15 14:02:35 +03:00
Andrew Murray
bd39801a7b
Merge pull request #8893 from python-pillow/doc-fix
Move XV Thumbnails to read only section
2025-04-15 12:16:17 +10:00
Jeffrey A. Clark
8b1777b999 Move XV Thumbnails to read only section 2025-04-14 14:51:01 -04:00
Andrew Murray
4716bb7818
Update macOS tested Pillow versions (#8890) 2025-04-13 16:59:05 +03:00
Andrew Murray
c6434dbbbc Set color table fourth channel to zero for 1 and L mode when saving 2025-04-13 23:00:06 +10:00
Hugo van Kemenade
1299039ec4
Merge pull request #8887 from radarhere/fedora
Removed Fedora 40
2025-04-13 11:27:27 +03:00
Andrew Murray
5294021438 Removed Fedora 40 2025-04-13 09:26:06 +10:00
Hugo van Kemenade
f9083264ff 11.3.0.dev0 version bump 2025-04-12 20:56:35 +03:00
Hugo van Kemenade
339bc5db93 11.2.1 version bump 2025-04-12 19:55:46 +03:00
Hugo van Kemenade
857b8846ea
Merge pull request #8885 from radarhere/releasenotes 2025-04-12 19:32:07 +03:00
Hugo van Kemenade
7a0092f207 Remove incomplete 11.2.0 release, bill as 11.2.1 instead 2025-04-12 18:56:38 +03:00
Hugo van Kemenade
d52c2db317
Do not include libavif in wheels 2025-04-12 18:30:08 +03:00
Andrew Murray
8dafc38371 Added 11.2.1 release notes 2025-04-12 19:24:35 +10:00
Andrew Murray
07d7800248 Removed release notes update 2025-04-12 19:08:45 +10:00
Andrew Murray
04909483a7
Remove GPL v2 license (#8884) 2025-04-12 10:29:06 +03:00
Hugo van Kemenade
774d0aedce
Merge pull request #8868 from radarhere/xz_upgrade
Updated xz to 5.8.1
2025-04-12 10:27:17 +03:00
Hugo van Kemenade
d1e27fc86c
Merge pull request #8870 from radarhere/harfbuzz_upgrade
Updated harfbuzz to 11.0.1
2025-04-12 10:20:59 +03:00
Andrew Murray
b2945ec2aa Test truncated header 2025-04-10 22:07:55 +10:00
Andrew Murray
dce9608961 Test unknown colour and missing colour key 2025-04-10 21:59:04 +10:00
Andrew Murray
af52060e97 Mention that tobytes() with the raw encoder uses Pack.c 2025-04-10 20:45:53 +10:00
Andrew Murray
34efaaddf3 Improved type hints 2025-04-10 18:57:58 +10:00
Andrew Murray
6512a8e371 Test not enough image data 2025-04-10 18:57:58 +10:00
Andrew Murray
395bd6bd12 Allow more than 256 colours 2025-04-10 18:57:58 +10:00
Andrew Murray
89ac20d2b9 Allow more than 1 character per pixel 2025-04-10 18:57:58 +10:00
Andrew Murray
7b459a8524 Improved reading XPM images 2025-04-10 18:57:58 +10:00
Andrew Murray
75d3f1d3bd Assert palette is not None 2025-04-10 18:41:12 +10:00
Andrew Murray
c8d98d56a0
Added avif to config settings (#8875) 2025-04-10 09:21:48 +03:00
Hugo van Kemenade
5b1a64c53c
[pre-commit.ci] pre-commit autoupdate 2025-04-10 09:20:41 +03:00
Andrew Murray
6b5f8d768d Do not include libavif in wheels 2025-04-10 13:55:02 +10:00
Andrew Murray
179ae9d395 Disable building harfbuzz tests 2025-04-08 22:05:29 +10:00
Andrew Murray
8b7d72440e Specify both C and Cpp 2025-04-08 20:15:45 +10:00
Hugo van Kemenade
8c4510cb23 Fix clang-format: Configuration file(s) do(es) not support C 2025-04-07 22:25:12 +03:00
pre-commit-ci[bot]
a5a8ece5d2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-07 17:17:36 +00:00
pre-commit-ci[bot]
f6eb2e7fa5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.11.4)
- [github.com/pre-commit/mirrors-clang-format: v19.1.7 → v20.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.7...v20.1.0)
- [github.com/python-jsonschema/check-jsonschema: 0.31.2 → 0.32.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.2...0.32.1)
- [github.com/woodruffw/zizmor-pre-commit: v1.4.1 → v1.5.2](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.4.1...v1.5.2)
- [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](https://github.com/abravalheri/validate-pyproject/compare/v0.23...v0.24.1)
2025-04-07 17:17:00 +00:00
Andrew Murray
82bccf70a0 Added XZ_CLMUL_CRC:BOOL=OFF to allow Windows x86 to use xz 5.8.1 2025-04-06 11:10:05 +10:00
Andrew Murray
1db27be6a0 Use same URL as wheels-dependencies.sh 2025-04-05 16:09:12 +11:00
Andrew Murray
1ba32fce48 Updated harfbuzz to 11.0.1 2025-04-05 15:44:46 +11:00
Hugo van Kemenade
cda26be10e
Merge pull request #8850 from hugovk/pep639
Replace deprecated classifier with licence expression (PEP 639)
2025-04-04 18:36:02 +03:00
Frankie Dintino
9f654ff748
Fixed conversion of AVIF image rotation property to EXIF orientation (#8866) 2025-04-04 16:41:11 +03:00
Andrew Murray
61d3dd9e83 Updated xz to 5.8.1, except on Windows x86 2025-04-04 22:12:54 +11:00
Andrew Murray
9f4195752d
Added type hints (#8867) 2025-04-03 13:24:37 +03:00
renovate[bot]
8691112a2c
Update scientific-python/upload-nightly-action action to v0.6.2 (#8865) 2025-04-03 13:23:36 +03:00
Andrew Murray
2d452c82e5
Removed condition that is always true (#8862) 2025-04-03 13:17:54 +03:00
Andrew Murray
7e15c54cad
Use multibuild build_github (#8861) 2025-04-02 15:53:14 +03:00
Hugo van Kemenade
92eb58ef15
Merge pull request #8859 from radarhere/filename
Include filename in ImageFile state
2025-04-02 15:51:49 +03:00
Andrew Murray
8dbbce624f Compare absolute path of filename 2025-04-02 12:16:25 +11:00
Andrew Murray
1103e82d17 Include filename in state 2025-04-02 11:14:58 +11:00
mergify[bot]
7c56b383ff
Merge pull request #8842 from AdianKozlica/image_grab_wayland_kde
Add KDE Wayland support for ImageGrab
2025-04-01 09:38:56 +00:00
Andrew Murray
867c4772c2 Do not import type checking 2025-04-01 20:23:16 +11:00
mergify[bot]
64178415e6
Merge pull request #8852 from radarhere/save
Only change readonly if saved filename matches opened filename
2025-04-01 09:22:14 +00:00
Andrew Murray
c19482f888
Merge pull request #8853 from radarhere/arrow
Added release notes for #8330
2025-04-01 19:28:41 +11:00
Andrew Murray
f205a45f44 Added release notes for #8330 2025-04-01 19:10:11 +11:00
Andrew Murray
98e74fd7a0
Merge pull request #8516 from radarhere/imagegrab
Allow HWND to be passed to ImageGrab.grab() on Windows
2025-04-01 18:45:03 +11:00
Adian Kozlica
2b62c0beeb
Merge branch 'main' into image_grab_wayland_kde 2025-04-01 09:43:52 +02:00
Andrew Murray
a7537b1b06 Only change readonly if saved filename matches opened filename 2025-04-01 18:31:04 +11:00
Andrew Murray
869aa5843c
Merge pull request #8851 from radarhere/tiff
Allow cmake<4 when building libavif and libtiff
2025-04-01 18:30:45 +11:00
wiredfool
5c76e7ec17
Image -> Arrow support (#8330)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-01 09:10:45 +03:00
Andrew Murray
348bf6550d Allow cmake<4 when building libavif 2025-04-01 16:33:55 +11:00
Andrew Murray
8141221201 Allow cmake<4 when building libtiff 2025-04-01 16:28:07 +11:00
Frankie Dintino
7d50816f0a
Add AVIF plugin (decoder + encoder using libavif) (#5201)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-01 07:13:21 +03:00
Andrew Murray
999d9a7f0c
Updated xz to 5.8.0 on manylinux2014 by removing po4a dependency (#8848) 2025-04-01 07:09:09 +03:00
Hugo van Kemenade
d8a0cb5db1 Work around pyroma test 2025-03-31 23:04:08 +03:00
Hugo van Kemenade
e995eef424 Replace deprecated classifier with licence expression (PEP 639) 2025-03-31 23:04:08 +03:00
Andrew Murray
b1f7ba0a41
Merge pull request #8772 from radarhere/zlib_macos
Revert to zlib on macOS < 10.15
2025-03-31 08:47:49 +11:00
Andrew Murray
f673f3e543
Close file handle on error (#8846) 2025-03-30 21:16:50 +03:00
Andrew Murray
81be8d5410
Fixed unclosed file warning (#8847) 2025-03-30 21:16:25 +03:00
Andrew Murray
25af4f1841 Added release notes 2025-03-31 00:32:35 +11:00
Andrew Murray
b4a480ff2c Corrected documentation 2025-03-31 00:31:56 +11:00
mergify[bot]
60b5131e9f
Merge pull request #8844 from radarhere/import
Do not import TYPE_CHECKING
2025-03-30 12:34:51 +00:00
Andrew Murray
4236b583a1 Do not import TYPE_CHECKING 2025-03-30 22:16:16 +11:00
pre-commit-ci[bot]
d2683e052f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-03-30 11:13:51 +00:00
Andrew Murray
80d5b421eb
Do not import type checking
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-03-30 22:13:21 +11:00
Andrew Murray
ca9f4f8304
Merge branch 'main' into imagegrab 2025-03-30 21:53:23 +11:00
Andrew Murray
14fb62e36c
Assert image type (#8619) 2025-03-30 10:42:46 +03:00
Adian Kozlica
feaded9d41
Merge pull request #2 from radarhere/image_grab_wayland_kde
Updated documentation
2025-03-30 03:16:59 +02:00
Andrew Murray
382c3ab10d spectacle may also be used on Linux 2025-03-30 11:16:05 +11:00
Adian Kozlica
ec11f7aaed
Merge branch 'main' into image_grab_wayland_kde 2025-03-29 23:51:29 +01:00
Adian Kozlica
2f672935eb
Merge pull request #1 from radarhere/image_grab_wayland_kde
Do not create temporary file if no utility is available
2025-03-29 23:44:12 +01:00
Andrew Murray
e053be3412
Updated version
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-03-30 07:27:30 +11:00
Andrew Murray
bce83ac800
Enable mmap on PyPy (#8840) 2025-03-29 18:36:36 +02:00
Andrew Murray
25653d2f87
Corrected P mode save (#8685) 2025-03-29 18:34:42 +02:00
Andrew Murray
e8a9b56603
Improved connecting discontiguous corners (#8659) 2025-03-29 18:33:51 +02:00
Andrew Murray
03dc994baa
Check that _fp type is not DeferredError before use (#8640) 2025-03-29 18:30:30 +02:00
Andrew Murray
6bffa3a9d4
Only read until the offset of the next tile (#8609)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:29:02 +02:00
Andrew Murray
140e426082
Added USE_RAW_ALPHA (#8602)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:27:00 +02:00
Andrew Murray
93cdfeb488
Prevent TIFFRGBAImageBegin from applying image orientation (#8556)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:25:57 +02:00
Andrew Murray
6d42449788
Allow loading of EMF images at a given DPI (#8536)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 18:25:13 +02:00
Hugo van Kemenade
2579973815
Merge pull request #8506 from radarhere/emf_records
Skip failing records when rendering WMF images
2025-03-29 18:19:10 +02:00
Andrew Murray
ae52f9f37d
Added release notes for #8781 and #8837 (#8843)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-29 15:21:51 +02:00
Andrew Murray
e685e2833e Do not create temporary file if no utility is available 2025-03-29 18:27:02 +11:00
Adian Kozlica
eeb494abf7 Fix formatting 2025-03-28 17:18:09 +01:00
Adian Kozlica
722283e819 Add KDE Wayland support for ImageGrab 2025-03-28 16:43:10 +01:00
Andrew Murray
1cb6c7c347
Parametrize tests (#8838)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-28 14:27:39 +02:00
Andrew Murray
10ccbd7788
If append_images is populated, default save_all to True (#8781)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-27 18:01:09 +02:00
Hugo van Kemenade
095f5992bc
Merge pull request #8826 from radarhere/gimp
Added GimpPaletteFile frombytes() to allow for unlimited parsing
2025-03-27 14:47:29 +02:00
Andrew Murray
3c185d1f69
Do not load image during save if file extension is unknown (#8835)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-27 14:44:27 +02:00
Andrew Murray
e1f0def839
Updated xz to 5.8.0, except on manylinux2014 (#8836)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-27 14:43:07 +02:00
Andrew Murray
fecb53b4b9
Merge pull request #8837 from radarhere/bcn_decode
Do not convert BC1 LUT to UINT32
2025-03-27 23:13:33 +11:00
Andrew Murray
295a5e9bd7 Do not convert BC1 LUT to UINT32 2025-03-27 21:36:17 +11:00
Andrew Murray
b8abded99b
Change back to actions/setup-python (#8833)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-25 15:31:49 +02:00
Andrew Murray
b6b6eae996
Merge pull request #8832 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.23.2
2025-03-25 13:10:44 +11:00
renovate[bot]
14d495a519
Update dependency cibuildwheel to v2.23.2 2025-03-25 00:41:03 +00:00
Andrew Murray
053b5790e1
Added media_white_point (#8829)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-24 15:22:21 +02:00
Andrew Murray
bca693bd82
Updated harfbuzz to 11.0.0 (#8830)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-24 08:33:45 +02:00
Hugo van Kemenade
af09976a5f
Merge pull request #8825 from radarhere/fixme
Removed FIXME
2025-03-21 22:09:16 +02:00
Hugo van Kemenade
478ccb4e69
Merge pull request #8823 from radarhere/test_fp
Simplified test code
2025-03-21 15:04:21 +02:00
Andrew Murray
c7e3158d51 Added explicit test for opening and saving image with string 2025-03-21 20:47:38 +11:00
Andrew Murray
9334bf040e Do not cast unnecessarily 2025-03-21 20:41:52 +11:00
Andrew Murray
8d55054877 Reuse temp path 2025-03-21 20:41:15 +11:00
Andrew Murray
8d440f734b Removed unused argument 2025-03-21 20:39:36 +11:00
Andrew Murray
21ff960c9c Test that an unlimited number of lines is not read by __init__ 2025-03-21 08:51:41 +11:00
Andrew Murray
510bc05577 Added frombytes() to allow for unlimited parsing 2025-03-20 23:12:35 +11:00
Andrew Murray
0888dc02ac Allow for two header fields and a comment 2025-03-20 23:10:09 +11:00
Andrew Murray
acd8548f6e Removed FIXME 2025-03-20 22:36:59 +11:00
Hugo van Kemenade
e66ebb6428
Merge pull request #8822 from radarhere/comment
Updated comment
2025-03-19 16:13:37 +02:00
Hugo van Kemenade
b40bcab6dd
Merge pull request #8824 from radarhere/dds_docs
Added release notes for #8807
2025-03-19 15:18:23 +02:00
Andrew Murray
700d36f2d2 Added release notes for #8807 2025-03-20 00:11:18 +11:00
Andrew Murray
6cc5f1f0ad Simplified code 2025-03-19 20:58:40 +11:00
Andrew Murray
ba2c4291ea Updated comment 2025-03-19 19:22:15 +11:00
Hugo van Kemenade
e1bf0f647f
Merge pull request #8805 from radarhere/gimp
Start from zero index when reading GimpPaletteFile
2025-03-18 15:32:24 +02:00
Hugo van Kemenade
74fec91d33
Merge pull request #8807 from radarhere/dxt1
Support saving DDS images with pixel formats
2025-03-18 15:31:38 +02:00
Hugo van Kemenade
039ecaca62
Merge pull request #8820 from radarhere/tiff_timeout
If every TIFF tile covers the image, only use the last offset
2025-03-18 15:20:21 +02:00
Hugo van Kemenade
eec43cfbc0
Merge pull request #8817 from radarhere/typo
DXT3 images are read in RGBA mode
2025-03-17 21:33:06 +02:00
Andrew Murray
841ba163fd If every tile covers the image, only use the last offset 2025-03-18 00:21:08 +11:00
Andrew Murray
cd11792c15 Added BC5 saving 2025-03-17 07:55:25 +11:00
Andrew Murray
b0315cc603 Added BC2 loading and saving 2025-03-17 07:55:24 +11:00
Andrew Murray
f1a61a1e76 Added DXT3 saving 2025-03-17 07:55:24 +11:00
Andrew Murray
9f619b814f Added BC3 loading and saving 2025-03-17 07:55:24 +11:00
Andrew Murray
9430bbe5a1 Added DXT5 saving 2025-03-17 07:55:24 +11:00
Andrew Murray
3dbd0e57ba Added DXT1 encoding 2025-03-17 07:55:24 +11:00
Andrew Murray
6c7917d7a6 Revert to zlib on macOS < 10.15 2025-03-17 07:54:47 +11:00
Andrew Murray
669a288beb Convert all entries to bytes at once 2025-03-17 07:52:51 +11:00
Andrew Murray
ca0c940cb1 Do not add palette entries when reading other lines 2025-03-17 07:52:51 +11:00
Andrew Murray
6e597a1ca7 Do not force palette length to be 256 2025-03-17 07:52:51 +11:00
Andrew Murray
1f6fd3b994 Only convert to int if there are enough items 2025-03-17 07:52:51 +11:00
Andrew Murray
e1cd9ad5ac Use maxsplit 2025-03-17 07:52:51 +11:00
Hugo van Kemenade
33ce0140fb
Merge pull request #8806 from radarhere/fli
Improved FliImagePlugin test coverage
2025-03-16 17:06:53 +02:00
Hugo van Kemenade
2748b91100
Merge pull request #8819 from radarhere/qemu
Use docker/setup-qemu-action
2025-03-16 15:02:50 +02:00
Andrew Murray
7767e83e6c Use action to setup qemu 2025-03-16 22:24:13 +11:00
Andrew Murray
9953256bbf Revert "Use Ubuntu 22.04 for 24.04 ppc64le and s390x"
This reverts commit e31441fc41.
2025-03-16 22:12:14 +11:00
Andrew Murray
004bb0e8ee
Merge pull request #8818 from python-pillow/renovate/cibuildwheel-2.x 2025-03-16 08:21:44 +11:00
renovate[bot]
db30ef7423
Update dependency cibuildwheel to v2.23.1 2025-03-15 19:49:03 +00:00
Andrew Murray
7b725a8fc4 DXT3 images are read in RGBA mode 2025-03-15 13:04:26 +11:00
Andrew Murray
5efcaa4603
Updated Ghostscript to 10.5.0 (#8814)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-14 08:50:28 +02:00
Andrew Murray
d97441cb86
Install libtiff-dev (#8816)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-14 08:49:59 +02:00
Andrew Murray
4b9d9f55cd
Updated libtiff to 4.7.0 (#8812)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-12 00:59:25 +02:00
Andrew Murray
b965116982
Merge pull request #8810 from hugovk/renovate-cron
Replace deprecated Renovate schedule with cron syntax
2025-03-11 11:00:29 +11:00
Hugo van Kemenade
a38d4d2583 Replace deprecated Renovate schedule with cron syntax 2025-03-10 22:44:13 +01:00
Andrew Murray
baa299a6f4 Moved code outside of context manager 2025-03-08 09:56:23 +11:00
Andrew Murray
5575c1d072 Test missing frame size 2025-03-08 09:56:00 +11:00
Andrew Murray
e946c7b14a
Test using _seek to skip frames (#8804)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-03-06 17:42:10 +02:00
Andrew Murray
5ba72a9b54
Merge pull request #8800 from radarhere/path_lists
Allow coords to be sequence of lists
2025-03-05 19:15:55 +02:00
Hugo van Kemenade
5e9eea12f3
Merge pull request #8803 from radarhere/abstract
Use ABCMeta in classes with abstractmethod
2025-03-05 18:15:33 +02:00
Hugo van Kemenade
c23bf05201
Merge pull request #8797 from radarhere/pcx
Improved PcxImagePlugin test coverage
2025-03-05 18:08:26 +02:00
Hugo van Kemenade
ebdfca329e
Merge pull request #8786 from radarhere/openjpeg
Support reading grayscale JPEG2000 images with 4 channels
2025-03-05 18:07:20 +02:00
Hugo van Kemenade
00593ff3f8
Merge pull request #8780 from radarhere/save_all
Allow encoderconfig and encoderinfo to be set for appended TIFF images
2025-03-05 18:04:28 +02:00
Hugo van Kemenade
5f36c9af43
Merge pull request #8801 from radarhere/match
Use match argument
2025-03-05 17:16:21 +02:00
Andrew Murray
d186a2a8d6 Replace NotImplementedError with abstractmethod 2025-03-05 21:50:09 +11:00
Andrew Murray
2309f0fa60 Inherit classes with abstractmethod from ABC 2025-03-05 21:30:24 +11:00
Andrew Murray
7552893792
Merge pull request #8799 from hugovk/flake8-pie
Call `startswith`/`endswith` once with a tuple, and `range` without `start=0`
2025-03-05 19:12:35 +11:00
Andrew Murray
3607d1ade3 Use match argument 2025-03-05 00:03:37 +11:00
Andrew Murray
c0b5d013f6 Test bad image size and unknown PCX mode 2025-03-04 22:19:06 +11:00
Hugo van Kemenade
a2b13cc02a Call startswith/endswith once with a tuple 2025-03-03 23:57:40 +02:00
Hugo van Kemenade
e4cac21044 Don't use start=0 in range() 2025-03-03 23:57:40 +02:00
Hugo van Kemenade
1f4beb4a5c Lint with flake8-pie 2025-03-03 23:57:40 +02:00
Andrew Murray
c7ed097dd1
Merge pull request #8783 from radarhere/bdf
Improved BdfFontFile test coverage
2025-03-04 08:29:33 +11:00
Andrew Murray
5ce8929ed4
Updated test name
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-03-04 07:48:12 +11:00
Hugo van Kemenade
5187b54235
Merge pull request #8795 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-03-03 20:40:28 +02:00
Hugo van Kemenade
0c9a3a7019
Merge pull request #8770 from radarhere/harfbuzz
Updated harfbuzz to 10.4.0
2025-03-03 19:17:41 +02:00
pre-commit-ci[bot]
c1703f5330
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.4...v0.9.9)
- [github.com/PyCQA/bandit: 1.8.2 → 1.8.3](https://github.com/PyCQA/bandit/compare/1.8.2...1.8.3)
- [github.com/python-jsonschema/check-jsonschema: 0.31.1 → 0.31.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.1...0.31.2)
- [github.com/woodruffw/zizmor-pre-commit: v1.3.0 → v1.4.1](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.3.0...v1.4.1)
- [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.5.0...v2.5.1)
2025-03-03 17:15:48 +00:00
Hugo van Kemenade
4efc096c7d
Merge pull request #8788 from radarhere/jpeg_comment
JPEG comments are from the COM marker
2025-03-03 18:47:21 +02:00
Hugo van Kemenade
721a2fe3b1
Merge pull request #8792 from radarhere/xmp
Corrected exif_transpose error when XMP is tuple
2025-03-03 18:44:55 +02:00
Hugo van Kemenade
7700293438
Merge pull request #8793 from radarhere/gd
Fixed loading GD images
2025-03-03 18:43:03 +02:00
Hugo van Kemenade
a4f5feaf74
Merge pull request #8794 from radarhere/outline
Image.core.outline will no longer raise an AttributeError
2025-03-03 18:19:30 +02:00
Hugo van Kemenade
4e550d47f3
Merge pull request #8791 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.15.0
2025-03-03 18:10:42 +02:00
Hugo van Kemenade
1a62ef9855
Merge pull request #8782 from radarhere/imagetk
Removed ImageTk._show
2025-03-03 18:08:13 +02:00
Hugo van Kemenade
17c7beffd8
Merge branch 'main' into harfbuzz 2025-03-03 17:41:34 +02:00
Hugo van Kemenade
8e8b94ada4
Merge pull request #8764 from radarhere/libpng
Updated libpng to 1.6.47
2025-03-03 17:40:33 +02:00
Hugo van Kemenade
04438f46fd
Merge pull request #8742 from radarhere/lcms2
Updated lcms2 to 2.17
2025-03-03 17:40:24 +02:00
Hugo van Kemenade
f89952cb04
Merge pull request #8778 from radarhere/mingw
Revert "Do not install libimagequant"
2025-03-03 17:38:47 +02:00
Hugo van Kemenade
989a35830b
Merge pull request #8773 from radarhere/eof
_seek_check already raises an EOFError
2025-03-03 17:36:24 +02:00
Hugo van Kemenade
7145057ef8
Merge pull request #8767 from radarhere/ftex
Only set mode when necessary in FtexImagePlugin
2025-03-03 17:35:36 +02:00
Hugo van Kemenade
952d6e9a61
Merge pull request #8766 from radarhere/ftex_test
Improved FtexImagePlugin test coverage
2025-03-03 17:35:03 +02:00
Andrew Murray
a1a467bda2 Image.core.outline will no longer raise an AttributeError 2025-03-03 23:55:19 +11:00
Andrew Murray
51183c2204 Fixed loading images 2025-03-03 21:58:29 +11:00
Andrew Murray
4161bb1645 Corrected error when XMP is tuple 2025-03-03 19:10:55 +11:00
Andrew Murray
d6272297fc Ignore override 2025-03-03 14:48:00 +11:00
renovate[bot]
2d97521aa3
Update dependency mypy to v1.15.0 2025-03-03 02:38:52 +00:00
Andrew Murray
92cc9bf902 Support reading grayscale images with 4 channels 2025-03-03 08:46:20 +11:00
Andrew Murray
ebc7a17d86 Removed _show 2025-03-03 07:24:13 +11:00
Hugo van Kemenade
5d52ede584
Merge pull request #8789 from hugovk/wheels-pypy3.11
Build PyPy3.11 wheel for macOS 10.15 x86_64
2025-03-02 14:34:23 +02:00
Andrew Murray
c60682af67 JPEG comments are from the COM marker 2025-03-02 22:34:58 +11:00
Hugo van Kemenade
db4534a8cf Build PyPy3.11 wheel for macOS 10.15 x86_64 2025-03-02 12:00:46 +02:00
Andrew Murray
bcdb688233
Merge pull request #8785 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.23.0
2025-03-02 09:11:34 +11:00
renovate[bot]
397f8c752b
Update dependency cibuildwheel to v2.23.0 2025-03-01 20:50:23 +00:00
Andrew Murray
ff4f5d4cb6 Test ValueError 2025-03-01 21:41:30 +11:00
Andrew Murray
d6b94421d0 Updated harfbuzz to 10.4.0 2025-03-01 11:37:49 +11:00
Andrew Murray
5c93145061 Allow encoderconfig and encoderinfo to be set for appended TIFF images 2025-02-28 22:16:52 +11:00
Andrew Murray
3407f765cc Document using encoderinfo on subsequent frames from #8483 2025-02-28 10:28:48 +11:00
Andrew Murray
153fd4801c Revert "Do not install libimagequant"
This reverts commit 1e115987af.
2025-02-27 22:24:48 +11:00
Andrew Murray
85f439f575 _seek_check already raises an EOFError 2025-02-25 18:46:22 +11:00
Hugo van Kemenade
d7d48df9af
Merge pull request #8771 from radarhere/fontfile 2025-02-22 17:27:55 +02:00
Andrew Murray
ae7c4920c9 Test that subsequent compile() calls do not change anything 2025-02-22 08:09:44 +11:00
Andrew Murray
ddb238c70d Only set mode when necessary 2025-02-20 07:57:10 +11:00
Andrew Murray
ae6bb4cac2 Test invalid texture compression format 2025-02-19 23:28:25 +11:00
Hugo van Kemenade
769a14dca5
Merge pull request #8765 from radarhere/mpo 2025-02-19 12:39:25 +02:00
Andrew Murray
dc94d1d8bb Test opening file with plugin directly 2025-02-19 18:27:05 +11:00
Hugo van Kemenade
1496d87d3a
Merge pull request #8763 from radarhere/sphinx
Update Sphinx to 8.2 to remove nitpick ignore
2025-02-19 08:29:53 +02:00
Andrew Murray
4415b4ad36 Updated libpng to 1.6.47 2025-02-19 08:47:04 +11:00
Hugo van Kemenade
1126733edf
Merge pull request #8762 from radarhere/sun 2025-02-18 20:59:37 +02:00
Andrew Murray
b096018fdd Update Sphinx to 8.2 to remove nitpick ignore 2025-02-18 22:27:13 +11:00
Andrew Murray
5d40e6aead Test RGBX raw mode 2025-02-18 20:48:04 +11:00
Andrew Murray
4b7e75be2d Test errors 2025-02-18 20:47:17 +11:00
Andrew Murray
fe1cab6ea0
Merge pull request #8761 from hugovk/slice-startswith
Replace slice and comparison with `startswith`/`endswith`
2025-02-18 18:41:42 +11:00
mergify[bot]
f6d227e128
Merge pull request #8760 from radarhere/px
Corrected type check
2025-02-17 22:05:00 +00:00
Hugo van Kemenade
9665eb3972 Replace slice and comparison with endswith 2025-02-17 23:39:33 +02:00
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
Andrew Murray
322e121a92 Corrected type check 2025-02-18 07:56:11 +11:00
Andrew Murray
fa58313c41
Merge pull request #8759 from radarhere/tar
Improve TarIO test coverage
2025-02-18 07:40:50 +11:00
Hugo van Kemenade
17541258c0
Merge pull request #8618 from radarhere/px 2025-02-17 13:30:17 +02:00
Hugo van Kemenade
a254b8cfeb
Merge pull request #8741 from radarhere/type 2025-02-17 13:29:44 +02:00
Hugo van Kemenade
0e333bf0dc
Merge pull request #8738 from radarhere/pkg_config 2025-02-17 13:28:21 +02:00
Hugo van Kemenade
3f111b986e
Merge pull request #8748 from radarhere/gif 2025-02-17 13:07:20 +02:00
Andrew Murray
1ac527a9e1
Merge pull request #8758 from hugovk/pypy3.11
Add PyPy3.11 to CI
2025-02-17 22:00:20 +11:00
Andrew Murray
19010bb301
Use match
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-17 21:49:08 +11:00
Andrew Murray
017b16b803
Removed argument
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-17 21:48:09 +11:00
Hugo van Kemenade
15e4c1a724 Fix ShellCheck 2025-02-17 12:19:44 +02:00
Andrew Murray
152d982644 Test missing subfile 2025-02-17 20:20:45 +11:00
Andrew Murray
9762c9e30e Test unexpected end of tar file 2025-02-17 20:20:02 +11:00
Hugo van Kemenade
216690ff17 Add PyPy3.11 to CI 2025-02-16 21:29:54 +02:00
Hugo van Kemenade
8a3c4f5965
Merge pull request #8757 from mgorny/pycapi-compat-pypy311 2025-02-16 21:23:43 +02:00
Michał Górny
0fbe1860c4 Update pythoncapi_compat.h to fix building with PyPy3.11
Update `pythoncapi_compat.h` to upstream commit
c84545f0e1e21757d4901f75c47333d25a3fcff0, which includes fixes necessary
for Pillow to build against PyPy3.11.  Otherwise, it fails due to
duplicate declarations:

```
      In file included from src/encode.c:28:
      src/thirdparty/pythoncapi_compat.h:295:1: error: static declaration of ‘PyThreadState_GetInterpreter’ follows non-static declaration
        295 | PyThreadState_GetInterpreter(PyThreadState *tstate)
            | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /usr/include/pypy3.11/Python.h:80,
                       from src/encode.c:26:
      /usr/include/pypy3.11/pystate.h:35:33: note: previous declaration of ‘PyThreadState_GetInterpreter’ with type ‘PyInterpreterState *(PyThreadState *)’ {aka ‘struct _is *(struct _ts *)’}
         35 | PyAPI_FUNC(PyInterpreterState*) PyThreadState_GetInterpreter(PyThreadState *tstate);
            |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2025-02-16 16:32:24 +01:00
Andrew Murray
0364cfdfc4
Merge pull request #8754 from hugovk/update-tox
Don't call `make clean` or `pip` in tox
2025-02-16 06:23:57 +11:00
mergify[bot]
fed5d85cd6
Merge pull request #8756 from radarhere/open
Don't shadow builtin open
2025-02-15 18:40:09 +00:00
Andrew Murray
7f414846a3 Don't shadow builtin open 2025-02-16 05:08:22 +11:00
Andrew Murray
1650425283
Merge pull request #8673 from freakboy3742/zlib-ng-with-sip
Rewrite the install_name of the ZLIB-NG library on macOS
2025-02-16 05:00:36 +11:00
Andrew Murray
f8566b90eb
Merge pull request #8755 from hugovk/rm-_wedge
Remove debug `Image._wedge`
2025-02-16 04:54:27 +11:00
Andrew Murray
397e6f2710
Merge pull request #8753 from hugovk/rm-unused
Remove unused `bdf_slant` and `bdf_spacing` variables
2025-02-16 04:24:13 +11:00
Hugo van Kemenade
126026e5e5 Don't shadow builtin open 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
028f0d6ea9 Remove unused data read 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
ff960b8841 Remove debug Image._wedge 2025-02-15 16:35:07 +02:00
Hugo van Kemenade
8261348fff Don't call pip in tox 2025-02-15 14:27:52 +02:00
Hugo van Kemenade
1c18d29c34 Remove unused bdf_slant and bdf_spacing variables 2025-02-15 13:26:06 +02:00
Hugo van Kemenade
c4eb2fe597
Merge pull request #8752 from radarhere/mingw_test 2025-02-15 13:00:20 +02:00
Andrew Murray
9f0398ef32 Removed unused code 2025-02-15 21:07:43 +11:00
Andrew Murray
ad6c4f82f3 Updated lcms2 to 2.17 2025-02-15 09:27:16 +11:00
Hugo van Kemenade
ede46d47fc
Merge pull request #8745 from radarhere/zlibng 2025-02-14 23:59:06 +02:00
Hugo van Kemenade
9b2ea830e0
Merge pull request #8744 from radarhere/imagequant 2025-02-14 23:54:19 +02:00
Hugo van Kemenade
ad231352a8
Merge pull request #8747 from radarhere/monkeypatch
Use monkeypatch
2025-02-13 20:03:00 +02:00
Andrew Murray
8f4bfe1fe5 Only crop when saving with disposal method 2 if transparency is present 2025-02-12 19:12:27 +11:00
Andrew Murray
8020d423bc Use monkeypatch 2025-02-12 18:36:14 +11:00
Andrew Murray
45d8d80567 Updated zlib-ng to 2.2.4 2025-02-11 11:36:55 +11:00
Andrew Murray
c566a81c64 Updated libimagequant to 4.3.4 2025-02-10 21:47:37 +11:00
Hugo van Kemenade
3c2310e090
Merge pull request #8739 from radarhere/boolean 2025-02-09 16:05:54 +02:00
Hugo van Kemenade
c81f2f5014
Merge pull request #8740 from radarhere/tuple 2025-02-09 16:05:29 +02:00
Andrew Murray
422c0f607d Use default tp_flags 2025-02-09 16:03:38 +11:00
Andrew Murray
bfa2d64e0e Use member names to initialize PyTypeObjects 2025-02-09 16:02:50 +11:00
Andrew Murray
b59dea60a6 Simplify Python code by receiving tuple from C 2025-02-08 21:07:25 +11:00
Andrew Murray
166d0b94d9 Use boolean format argument for irreversible 2025-02-08 21:00:54 +11:00
Andrew Murray
1b0095fad4 Pass CFLAGS to build_simple directly 2025-02-08 17:23:41 +11:00
Andrew Murray
56a72a3da4
Merge branch 'main' into zlib-ng-with-sip 2025-02-08 16:31:36 +11:00
Andrew Murray
f4db366e41 Merge branch 'main' into px 2025-02-07 08:51:58 +11:00
Andrew Murray
f056c259a7 Support ttb multiline text 2025-02-06 22:30:09 +11:00
Hugo van Kemenade
b57b4e5f2c
Merge pull request #8735 from radarhere/affine 2025-02-06 13:26:24 +02:00
Hugo van Kemenade
a788ab31ca
Merge pull request #8734 from radarhere/module 2025-02-06 13:25:54 +02:00
Hugo van Kemenade
f55a0900f4
Merge pull request #8724 from radarhere/mingw_libimagequant 2025-02-06 13:25:03 +02:00
Hugo van Kemenade
c73796dc1e
Merge pull request #8733 from radarhere/tuple 2025-02-06 13:19:29 +02:00
Hugo van Kemenade
dd2bb392e6
Merge pull request #8732 from radarhere/unused_parse 2025-02-06 13:18:34 +02:00
Hugo van Kemenade
a7524a34b2
Merge pull request #8727 from radarhere/getpixel 2025-02-06 13:17:26 +02:00
Andrew Murray
41861e8e9f Updated AffineTransform docstring to mention it uses the inverse matrix 2025-02-06 19:26:49 +11:00
Andrew Murray
7924b6a11f Use member names to initialize modules 2025-02-05 20:20:57 +11:00
Andrew Murray
a37702dd8a Removed unused format character 2025-02-05 19:12:54 +11:00
Andrew Murray
b19506a499 Simplify Python code by passing tuples to C 2025-02-05 19:12:50 +11:00
Andrew Murray
a7d7a1080e Removed redundant argument parsing 2025-02-05 18:42:35 +11:00
Andrew Murray
2810d7c6ba
Merge pull request #8721 from radarhere/justify
Added "justify" align for multiline text
2025-02-04 20:10:39 +11:00
Andrew Murray
92eb11eb09
Merge pull request #8729 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-02-04 07:19:15 +11:00
Andrew Murray
00790e925d
Updated comment 2025-02-04 06:49:46 +11:00
pre-commit-ci[bot]
955d678ca2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-02-03 17:36:01 +00:00
pre-commit-ci[bot]
90d2506074
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4)
- [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...25.1.0)
- [github.com/PyCQA/bandit: 1.8.0 → 1.8.2](https://github.com/PyCQA/bandit/compare/1.8.0...1.8.2)
- [github.com/pre-commit/mirrors-clang-format: v19.1.6 → v19.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.6...v19.1.7)
- [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.1)
- [github.com/woodruffw/zizmor-pre-commit: v1.0.0 → v1.3.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.0.0...v1.3.0)
- [github.com/tox-dev/tox-ini-fmt: 1.4.1 → 1.5.0](https://github.com/tox-dev/tox-ini-fmt/compare/1.4.1...1.5.0)
2025-02-03 17:35:25 +00:00
Andrew Murray
ce1996d804 Use getpixel() instead of load() 2025-02-03 19:32:59 +11:00
Hugo van Kemenade
4d1f874096
Merge pull request #8725 from radarhere/macos 2025-02-01 12:23:49 +02:00
Andrew Murray
347a3865bf Revert "Ignore brew dependencies for libraqm on macOS 13"
This reverts commit dfd53564ff.
2025-02-01 12:21:15 +11:00
Andrew Murray
69c9572517 Added ImageDraw link 2025-02-01 10:54:18 +11:00
Andrew Murray
fca48db866
Added quote marks
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-01 10:02:42 +11:00
Hugo van Kemenade
c5d27af0f1
Merge pull request #8723 from radarhere/tiff_iimm 2025-01-31 17:53:06 +02:00
Andrew Murray
5bbbc46240 Fixed exceptions when closing AppendingTiffWriter 2025-02-01 01:13:30 +11:00
Andrew Murray
ec72d20d23 Added release notes 2025-02-01 00:47:21 +11:00
Andrew Murray
9a58456c9b
Added versionadded for justify
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-02-01 00:44:26 +11:00
Hugo van Kemenade
793e1fcba2
Merge pull request #8709 from radarhere/seek 2025-01-31 14:11:07 +02:00
Hugo van Kemenade
b03f143df1
Merge pull request #8701 from radarhere/stroke_outside 2025-01-31 13:35:22 +02:00
Hugo van Kemenade
84adbe5da8
Support saving PNG cICP chunk (#8704) 2025-01-31 13:24:08 +02:00
Andrew Murray
1e115987af Do not install libimagequant 2025-01-31 19:09:03 +11:00
Andrew Murray
e4f2a4a291
Merge pull request #8717 from radarhere/none
Use Py_RETURN_NONE macro when possible
2025-01-30 22:27:42 +11:00
Andrew Murray
10eaff8ac7 Added "justify" align for multiline text 2025-01-29 20:12:45 +11:00
Andrew Murray
7093de46a7 Moved common multiline code into _prepare_multiline_text 2025-01-29 19:42:25 +11:00
Andrew Murray
9a4f39588d Use embedded color for text length in multiline_text 2025-01-29 18:58:53 +11:00
Andrew Murray
f598c03233 Removed unused file 2025-01-29 17:33:55 +11:00
Aleksandr Karpinskii
849768df7a Remove unused declaration 2025-01-28 20:40:43 +11:00
Andrew Murray
a9d05a1e51
Fixed unclosed file warnings (#8705)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 22:59:44 +02:00
Andrew Murray
e19a1496c2
Use monkeypatch (#8707)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 12:17:51 +02:00
Aleksandr Karpinskii
e7ae4aaad0 Use Py_RETURN_NONE macro when possible 2025-01-27 18:17:03 +11:00
Andrew Murray
569b785371
Updated harfbuzz to 10.2.0 (#8688)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-25 09:04:52 +02:00
Hugo van Kemenade
0bfaba1dca
Merge pull request #8711 from radarhere/xz
Updated xz to 5.6.4
2025-01-24 23:01:30 +02:00
Hugo van Kemenade
7cd98e8b7c
Merge pull request #8712 from radarhere/libpng
Updated libpng to 1.6.46
2025-01-24 23:00:59 +02:00
Hugo van Kemenade
6973d6968f
Merge pull request #8710 from radarhere/libimagequant
Updated libimagequant to 4.3.4
2025-01-24 23:00:30 +02:00
Andrew Murray
16a8e2bde4 Updated xz to 5.6.4 2025-01-24 23:46:14 +11:00
Andrew Murray
f52dbe749b Updated libpng to 1.6.46 2025-01-24 23:46:03 +11:00
Andrew Murray
9d4232101f Updated libimagequant to 4.3.4 2025-01-24 23:40:21 +11:00
Hugo van Kemenade
51df14282f
Merge pull request #8713 from radarhere/22_04 2025-01-24 14:38:30 +02:00
Andrew Murray
e31441fc41 Use Ubuntu 22.04 for 24.04 ppc64le and s390x 2025-01-24 19:51:07 +11:00
Andrew Murray
8a90975c14 Seek relative to current position 2025-01-22 23:14:34 +11:00
Hugo van Kemenade
58dd4a7dac
Merge pull request #8702 from radarhere/imagefile_fp 2025-01-20 19:29:05 +02:00
Andrew Murray
427244877b Support saving cICP chunk 2025-01-19 15:09:12 +11:00
Andrew Murray
0318304f9a Do not draw normal text onto stroke text if they are the same color 2025-01-18 21:58:15 +11:00
Andrew Murray
8d9279dd73 Only use outside border of stroke in text() 2025-01-18 21:58:04 +11:00
Andrew Murray
c78d23d547 Moved _close_fp into ImageFile 2025-01-18 21:22:44 +11:00
Andrew Murray
4ff18e03b8 Moved file pointer handling into ImageFile close 2025-01-18 20:57:04 +11:00
Hugo van Kemenade
cf7dd2f0e9
Merge pull request #8700 from radarhere/ubuntu 2025-01-18 11:10:40 +02:00
Andrew Murray
ba606622b4 Updated Ubuntu arm to 24.04 with arm64 runner 2025-01-18 13:53:39 +11:00
Hugo van Kemenade
a92a664ee5
Merge pull request #8699 from radarhere/mozjpeg 2025-01-17 23:53:04 +02:00
Andrew Murray
284297755a Updated capitalization 2025-01-18 07:55:49 +11:00
Andrew Murray
e79b298443 Merge branch 'main' into mozjpeg 2025-01-18 07:54:07 +11:00
Andrew Murray
30c4ad484c
Updated capitalization
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-01-18 07:48:15 +11:00
Hugo van Kemenade
4f7510b77b
Merge pull request #8689 from radarhere/get_child_images 2025-01-17 22:29:50 +02:00
Hugo van Kemenade
85a6df534c
Merge pull request #8698 from radarhere/arm64 2025-01-17 21:50:35 +02:00
Hugo van Kemenade
7446348b73
Merge pull request #8525 from hugovk/gha-windows-32-bit 2025-01-17 20:46:08 +02:00
Andrew Murray
6a0ac411e2 Added mozjpeg documentation 2025-01-17 18:57:12 +11:00
Andrew Murray
be8e55d28d Added deprecation warning 2025-01-17 18:34:23 +11:00
Andrew Murray
176c5b3749 Added pypy to CIBW_ENABLE 2025-01-17 11:51:42 +11:00
Andrew Murray
a04e76a84f Use arm64 Linux runners 2025-01-17 11:51:21 +11:00
Andrew Murray
d2122ab17f
Merge pull request #8696 from radarhere/numpy
Test Windows amd64 wheels with NumPy
2025-01-17 08:45:08 +11:00
Hugo van Kemenade
ade99aaa90
Merge branch 'main' into gha-windows-32-bit 2025-01-16 17:01:59 +02:00
Hugo van Kemenade
bff83cff59
Merge pull request #8568 from radarhere/fixifd 2025-01-16 16:33:42 +02:00
Andrew Murray
c67ed4678b
Moved strings inside debug statement
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-01-16 23:48:44 +11:00
Hugo van Kemenade
e59549f4e5
Merge pull request #8695 from radarhere/miniconda 2025-01-16 14:12:20 +02:00
Hugo van Kemenade
df7e42eef1
Merge pull request #8681 from radarhere/types 2025-01-16 14:00:25 +02:00
Andrew Murray
536aee5bbd Test Numpy on amd64 2025-01-16 22:12:53 +11:00
Andrew Murray
e70c821436 Removed miniconda CPPFLAGS 2025-01-16 20:57:49 +11:00
Hugo van Kemenade
84d58a0282
Merge pull request #8694 from radarhere/exceptions 2025-01-14 17:04:39 +02:00
Hugo van Kemenade
bdfd881c6d
Merge pull request #8690 from radarhere/314 2025-01-14 16:24:41 +02:00
Andrew Murray
cf438c53ee Removed UnidentifiedImageError, as it inherits from OSError 2025-01-14 21:04:08 +11:00
Andrew Murray
0f2c554c69 Improved comment 2025-01-14 21:03:20 +11:00
Hugo van Kemenade
f521a4be7d
Merge pull request #8686 from radarhere/test_embeddable_wheels 2025-01-13 21:21:06 +02:00
Andrew Murray
2ce2ff297c Test Python 3.14 pre-release 2025-01-14 05:54:19 +11:00
Hugo van Kemenade
513a72abb5
Merge pull request #8691 from radarhere/sphinx 2025-01-13 19:08:28 +02:00
Andrew Murray
a4018d192c Added Sphinx configuration key 2025-01-13 21:07:32 +11:00
Andrew Murray
a922126ed7 Assert fp is not None 2025-01-13 07:57:50 +11:00
Andrew Murray
34762ded75 Assert JpegIFByteCount is int 2025-01-13 07:57:28 +11:00
Andrew Murray
5ad98e7abb Moved get_child_images() 2025-01-13 07:54:43 +11:00
Andrew Murray
7166a09538 Skip test_embeddable if compiler cannot be initialized 2025-01-11 18:57:41 +11:00
Hugo van Kemenade
3111e37bf4
Merge pull request #8679 from radarhere/test 2025-01-10 21:13:33 +02:00
Hugo van Kemenade
bce6097a96
Merge pull request #8684 from radarhere/spider 2025-01-10 19:29:23 +02:00
Andrew Murray
64bfdff6c8 Only F mode starts with F 2025-01-10 21:51:33 +11:00
Hugo van Kemenade
8878511476
Merge pull request #8683 from radarhere/test_embeddable 2025-01-10 12:01:59 +02:00
Andrew Murray
0d93c030a5 Test passes in Python 3.13 2025-01-10 19:10:42 +11:00
Andrew Murray
8430193bed
Merge pull request #8682 from hugovk/mingw
Use python-numpy and python-olefile instead of virtual python3 packages
2025-01-10 07:53:52 +11:00
Andrew Murray
5ad7f70ade
Merge branch 'main' into types 2025-01-09 23:44:33 +11:00
Andrew Murray
15ade68f40
Merge branch 'main' into test 2025-01-09 23:44:29 +11:00
Hugo van Kemenade
8603d6512a Use python-numpy and python-olefile instead of python3-numpy and python3-olefile 2025-01-09 14:22:29 +02:00
Hugo van Kemenade
6fc496ee5b
Merge pull request #8678 from radarhere/mingw 2025-01-09 14:18:02 +02:00
Andrew Murray
4d14991604 Corrected argument types 2025-01-09 14:58:58 +11:00
Andrew Murray
a34a9cd6d1 Improved test coverage 2025-01-09 14:49:48 +11:00
Andrew Murray
f938af5c3c Do not catch exception only to assert it is None 2025-01-09 14:38:07 +11:00
Andrew Murray
aa686894a6 Removed unused assert_all_same 2025-01-09 14:32:46 +11:00
Andrew Murray
440b09e831 Removed unused mode argument from assert_image_similar_tofile 2025-01-09 14:32:17 +11:00
Andrew Murray
2eb112329e Use python-pip instead of python3-pip 2025-01-09 08:32:42 +11:00
Hugo van Kemenade
af3b904233
Merge pull request #8663 from radarhere/bigtiff 2025-01-08 19:15:31 +02:00
Hugo van Kemenade
93f45a3992
Merge pull request #8670 from radarhere/libpng 2025-01-08 19:12:20 +02:00
Hugo van Kemenade
e8040a7a0f
Merge pull request #8666 from radarhere/imagefile_tile 2025-01-08 19:09:33 +02:00
Hugo van Kemenade
bd4fd58ded
Merge pull request #8668 from radarhere/spider_test 2025-01-08 19:06:48 +02:00
Hugo van Kemenade
b69f2045d2
Merge pull request #8662 from radarhere/pyunicode 2025-01-08 19:05:49 +02:00
Hugo van Kemenade
01792cbff0
Merge pull request #8652 from radarhere/tile 2025-01-08 19:03:31 +02:00
Hugo van Kemenade
a9dcac0f31
Merge pull request #8660 from HarmvandenBrand/tiff_plugin_error_msg 2025-01-08 18:59:31 +02:00
Hugo van Kemenade
aaff3f1f3d
Merge pull request #8649 from radarhere/ico 2025-01-08 18:55:31 +02:00
Hugo van Kemenade
e9ab468277
Merge pull request #8648 from radarhere/png_text 2025-01-08 18:45:54 +02:00
Hugo van Kemenade
5654c863bf
Merge pull request #8639 from radarhere/jfif_dpi 2025-01-08 18:45:09 +02:00
Hugo van Kemenade
6bce9aa461
Merge pull request #8645 from radarhere/mozjpeg 2025-01-08 18:44:21 +02:00
Hugo van Kemenade
38a5f72d21
Merge pull request #8674 from radarhere/wheel_paths 2025-01-08 16:34:38 +02:00
Andrew Murray
fb7e2199e0
Merge pull request #8675 from python-pillow/renovate/github-actions
Update cygwin/cygwin-install-action action to v5
2025-01-08 20:29:01 +11:00
renovate[bot]
84c8e38b2d
Update cygwin/cygwin-install-action action to v5 2025-01-08 07:38:51 +00:00
Andrew Murray
f281eb9b46 Trigger from changes in pyproject.toml 2025-01-08 18:27:20 +11:00
Russell Keith-Magee
120ba1c13d
Rewrite the install_name of the ZLIB-NG library on macOS. 2025-01-08 14:01:06 +08:00
Andrew Murray
ee2b8c5256 Switch to .tar.gz for libpng 2025-01-08 10:26:21 +11:00
Andrew Murray
86b8e1e45f Updated libpng to 1.6.45 2025-01-08 10:19:09 +11:00
Andrew Murray
f36c667467 Improved test coverage 2025-01-07 22:24:08 +11:00
Andrew Murray
aef6df2d04 Use ImageFile._Tile 2025-01-07 21:51:23 +11:00
Andrew Murray
a8381c619d Allow upgrading LONG to LONG8 2025-01-07 21:51:00 +11:00
Andrew Murray
618339e2d2 Allow saving multiple frames as BigTIFF 2025-01-07 21:51:00 +11:00
Hugo van Kemenade
128f3f46d4
Merge pull request #8664 from radarhere/coverage 2025-01-07 12:49:04 +02:00
Andrew Murray
6e9592b504
Merge pull request #8665 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-01-07 09:03:05 +11:00
pre-commit-ci[bot]
b1749dff08
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.4...v0.8.6)
- [github.com/pre-commit/mirrors-clang-format: v19.1.5 → v19.1.6](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.5...v19.1.6)
- [github.com/woodruffw/zizmor-pre-commit: v0.10.0 → v1.0.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v0.10.0...v1.0.0)
2025-01-06 17:35:41 +00:00
Andrew Murray
7708e4b524 Improved Docker coverage reporting 2025-01-06 20:30:47 +11:00
Andrew Murray
4ecf8cbd75 Simplified code 2025-01-05 14:49:34 +11:00
Andrew Murray
73a383fa72 Use rawmode instead of splitting and merging 2025-01-05 06:11:54 +11:00
Andrew Murray
bd56a95659 Use namedtuple _replace 2025-01-05 05:30:14 +11:00
Hugo van Kemenade
2486361002
Merge pull request #8661 from radarhere/no_giflib
Removed giflib as webp dependency
2025-01-04 11:12:32 +02:00
Andrew Murray
66795e9c26
Merge branch 'main' into no_giflib 2025-01-04 17:26:10 +11:00
Hugo van Kemenade
ef223f52f7
Merge pull request #8658 from radarhere/giflib
Corrected installing ImageMagick on cifuzz
2025-01-04 08:24:39 +02:00
Andrew Murray
cce0f5b653 Removed giflib as webp dependency 2025-01-04 10:34:59 +11:00
Hugo van Kemenade
9ae8cb8e8e
Merge pull request #8657 from cdce8p/overload-exif_transpose 2025-01-03 15:00:22 +02:00
Harm.van.den.brand@alliander.com
036db2da87 OSError caused by decode error should use string argument to be in line with rest of module 2025-01-03 12:50:19 +01:00
Andrew Murray
d12e78badf
Removed exif_transpose return type checks 2025-01-03 01:00:19 +01:00
Andrew Murray
1d771ff4a4 Do not call yum on cifuzz 2025-01-03 10:26:47 +11:00
Andrew Murray
48712f29ce
Merge pull request #8655 from radarhere/giflib
Updated to giflib 5.2.2 on Linux
2025-01-03 08:15:48 +11:00
Marc Mueller
1678f7f215 Add overloads for exif_transpose 2025-01-02 17:38:21 +01:00
Hugo van Kemenade
261ed66c11
Merge branch 'main' into giflib 2025-01-02 18:09:21 +02:00
Hugo van Kemenade
66f5a3facc
Merge pull request #8653 from radarhere/freetype 2025-01-02 18:08:34 +02:00
Hugo van Kemenade
9f2c702b4f
Merge pull request #8656 from hugovk/zlib-2.2.3 2025-01-02 18:07:50 +02:00
Andrew Murray
2d7597ac6a Updated to giflib 5.2.2 on Linux 2025-01-02 22:50:25 +11:00
Hugo van Kemenade
22d50fd2c1
Merge pull request #8654 from radarhere/macos 2025-01-02 12:57:30 +02:00
Hugo van Kemenade
ade15fcdd3 Upgrade zlib-ng to 2.2.3 2025-01-02 12:46:24 +02:00
Andrew Murray
6b4619c4f5 Updated macOS tested Pillow versions 2025-01-02 20:46:58 +11:00
Andrew Murray
57786a252b 11.2.0.dev0 version bump 2025-01-02 19:04:18 +11:00
Andrew Murray
4c1aed801e 11.1.0 version bump 2025-01-02 16:00:59 +11:00
Andrew Murray
f636cb8c15 Updated freetype to 2.13.3 2025-01-02 10:28:51 +11:00
Hugo van Kemenade
dfb368a7e9
Merge pull request #8651 from radarhere/blp
Corrected BLP1 alpha depth handling
2025-01-01 17:27:28 +02:00
Andrew Murray
5d998d3fed Improved coverage 2025-01-01 23:38:24 +11:00
Andrew Murray
6b75e06875 Do not reread start of header in decoder 2025-01-01 22:58:04 +11:00
Andrew Murray
b89cc09944 Corrected BLP1 alpha depth handling 2025-01-01 12:22:55 +11:00
Andrew Murray
beda2b6e8d Removed unused image open 2025-01-01 10:49:24 +11:00
Andrew Murray
8d78cfcc5a Added return types 2025-01-01 09:10:16 +11:00
Andrew Murray
d626e6ab9f text is a property 2025-01-01 09:07:41 +11:00
Hugo van Kemenade
aa0f4127b8
Merge pull request #8646 from radarhere/centos 2024-12-31 17:04:35 +02:00
Andrew Murray
e34427167d Added CentOS Stream 10 2024-12-31 23:26:09 +11:00
Andrew Murray
17f09f3993
Merge pull request #8644 from radarhere/c99
Remove pre-C99 definitions
2024-12-31 22:57:57 +11:00
Andrew Murray
ae59b03956 Do not use MozJPEG progressive default 2024-12-31 21:44:57 +11:00
Andrew Murray
06e02cc1d9 Added compile-time mozjpeg feature flag 2024-12-31 21:44:57 +11:00
Andrew Murray
d42f22baaf Added release notes 2024-12-31 21:38:05 +11:00
Hugo van Kemenade
c7026d9bc8
Merge pull request #8642 from radarhere/bigtiff 2024-12-31 12:31:40 +02:00
Andrew Murray
f91b111fac Removed pre-C99 definitions 2024-12-31 20:42:49 +11:00
Andrew Murray
c3fac1d78f
Merge pull request #8643 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.14.1
2024-12-31 11:25:01 +11:00
Andrew Murray
1de617fbe7 Added release notes 2024-12-31 11:13:14 +11:00
renovate[bot]
e27115ee8d
Update dependency mypy to v1.14.1 2024-12-30 23:31:05 +00:00
Andrew Murray
8bdcadcbe9 Renamed argument to big_tiff 2024-12-31 10:16:00 +11:00
Andrew Murray
2ac383028a Allow saving as BigTIFF 2024-12-31 01:26:13 +11:00
Andrew Murray
7d5ccffae3
Merge pull request #8629 from radarhere/makernote
Restored Makernote as a deprecated enum
2024-12-30 21:52:04 +11:00
Andrew Murray
050caa9cae Restored Makernote as a deprecated enum 2024-12-30 21:14:23 +11:00
Hugo van Kemenade
8c3fbd5055
Merge pull request #8641 from radarhere/rawmode 2024-12-30 12:04:10 +02:00
Andrew Murray
7cee64ad1b Use endswith 2024-12-30 19:45:46 +11:00
Andrew Murray
167ed55d8b Use elif 2024-12-30 19:37:38 +11:00
Andrew Murray
a4f976ca27
Merge pull request #8638 from hugovk/pre-commit-zizmor
Add zizmor to pre-commit and fix potential cache-poisoning in wheels workflow
2024-12-30 09:44:40 +11:00
Hugo van Kemenade
171531cb67
Merge pull request #8635 from radarhere/exif_ifd 2024-12-29 21:36:15 +02:00
Hugo van Kemenade
ec49b98bbb
Merge pull request #8637 from radarhere/rgbx_16n 2024-12-29 21:35:37 +02:00
Hugo van Kemenade
8d28514e40 Add zizmor to pre-commit and fix potential cache-poisoning in wheels workflow 2024-12-29 21:16:42 +02:00
Hugo van Kemenade
743256f80b
Merge pull request #8633 from radarhere/jfif_unit 2024-12-29 20:45:20 +02:00
Hugo van Kemenade
76df02d28b
Merge pull request #8627 from radarhere/xmp
Added release notes for writing XMP bytes to JPEG and MPO
2024-12-29 11:07:53 +02:00
Andrew Murray
ea962bf1d8 Added RGBX;16N to RGB unpacker 2024-12-29 16:59:32 +11:00
Andrew Murray
9368a86397 Keep new IFDs when converting EXIF to bytes 2024-12-29 07:43:47 +11:00
Andrew Murray
1a79d1025c
Merge pull request #8592 from radarhere/jpeg2000_cmyk_save
Support saving CMYK JP2 images
2024-12-29 06:25:37 +11:00
Andrew Murray
9bebecf36d Use versionadded 2024-12-28 22:18:02 +11:00
Andrew Murray
973cd6481a Merge branch 'main' into jpeg2000_cmyk_save 2024-12-28 22:08:08 +11:00
Hugo van Kemenade
41a89ea2dd
Merge pull request #8622 from radarhere/jpeg2000_comment 2024-12-28 13:05:26 +02:00
Hugo van Kemenade
1cf1932d33
Merge pull request #8631 from radarhere/buffer_size 2024-12-28 12:47:05 +02:00
Andrew Murray
8945875c6c Populate DPI from JFIF cm density 2024-12-28 21:28:44 +11:00
Hugo van Kemenade
e8dad19409
Merge pull request #8628 from radarhere/monkeypatch
Use monkeypatch
2024-12-28 11:32:35 +02:00
Andrew Murray
05c981ffd7 Removed buffer_size variable 2024-12-28 15:41:19 +11:00
Andrew Murray
4e82f2bec0
Merge pull request #8630 from radarhere/imagegrab_macos
Do not use temporary file in ImageGrab.grabclipboard() on macOS
2024-12-28 15:15:51 +11:00
Andrew Murray
f10e9f42d3 Do not use temporary file in grabclipboard() on macOS 2024-12-28 14:29:29 +11:00
Andrew Murray
23083f28ab Use monkeypatch 2024-12-28 14:02:19 +11:00
Andrew Murray
cfe8379d90 Added release notes for #8483 2024-12-28 13:02:23 +11:00
Andrew Murray
ad747f3fd8 Added release notes 2024-12-28 12:38:50 +11:00
Andrew Murray
0220b025c5 Updated documentation for #7947 and #8592 2024-12-28 12:33:59 +11:00
Andrew Murray
439d5cf2a0
Merge branch 'main' into jpeg2000_cmyk_save 2024-12-28 07:42:56 +11:00
Hugo van Kemenade
d008d12ba3
Merge pull request #8625 from radarhere/containerio 2024-12-27 21:51:08 +02:00
Hugo van Kemenade
cf09e8ea50
Merge pull request #8620 from radarhere/polygon 2024-12-27 21:47:49 +02:00
Hugo van Kemenade
86d396a124
Merge pull request #8555 from radarhere/exif 2024-12-27 21:45:00 +02:00
Hugo van Kemenade
2c3395f262
Merge pull request #8553 from radarhere/tile 2024-12-27 21:43:38 +02:00
Hugo van Kemenade
dc84811cae
Merge pull request #8551 from radarhere/guessing 2024-12-27 21:41:47 +02:00
Hugo van Kemenade
4df23c0f26
Merge pull request #8535 from radarhere/tiff 2024-12-27 21:40:12 +02:00
Hugo van Kemenade
99ee337e07
Merge pull request #8529 from radarhere/tiff_tags 2024-12-27 21:35:02 +02:00
Hugo van Kemenade
dcd0479772
Merge pull request #8499 from radarhere/stub 2024-12-27 21:31:11 +02:00
Hugo van Kemenade
f42d1c1b04
Merge pull request #8483 from radarhere/xmp 2024-12-27 21:30:54 +02:00
Hugo van Kemenade
510c84ad03
Merge pull request #8476 from radarhere/jpeg_state 2024-12-27 21:29:17 +02:00
Hugo van Kemenade
4db5be1182
Merge pull request #8626 from radarhere/monkeypatch 2024-12-27 16:39:10 +02:00
Andrew Murray
89f1498796 Updated argument types to match Image draft 2024-12-27 11:38:47 +11:00
Andrew Murray
0148684c24 Use monkeypatch 2024-12-27 11:29:47 +11:00
Andrew Murray
aef3aa2ab3 Pass file handle to ContainerIO 2024-12-27 11:26:07 +11:00
Andrew Murray
e16e334013
Merge pull request #28 from nulano/emf_records
Skip failing WMF records on 32-bit Windows
2024-12-27 11:09:42 +11:00
Nulano
2ea3ea94a1 Skip failing WMF records on 32-bit Windows 2024-12-26 22:06:07 +01:00
Hugo van Kemenade
f9767fb00f
Merge pull request #8624 from radarhere/type_hint_spider 2024-12-26 22:20:50 +02:00
Hugo van Kemenade
6e66166234
Merge pull request #8623 from radarhere/threads 2024-12-26 22:17:44 +02:00
Andrew Murray
622722f295 Corrected loadImageSeries type hint 2024-12-26 20:04:27 +11:00
Andrew Murray
62b7cb62f4 Fixed indentation 2024-12-26 19:06:23 +11:00
Andrew Murray
dd410e4b32 Added reading of J2K comments 2024-12-26 10:51:45 +11:00
Andrew Murray
fb3d80e390 Fixed connecting discontiguous corners 2024-12-24 00:41:27 +11:00
Andrew Murray
601a56def1 Assert palette is not None 2024-12-23 12:03:13 +11:00
Andrew Murray
5d5543b35c Assert that load() does not return None 2024-12-23 11:57:27 +11:00
Andrew Murray
0074c3bf34 Assert that a tuple is returned by getpixel() 2024-12-23 11:45:36 +11:00
Andrew Murray
0e3f51dec6
Merge pull request #8613 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.14.0
2024-12-22 15:11:09 +11:00
Hugo van Kemenade
1146190d75
Merge pull request #8615 from radarhere/exiftags 2024-12-22 00:34:42 +02:00
Andrew Murray
5fe80e1c48 Use hex values more consistently 2024-12-22 07:30:59 +11:00
Andrew Murray
b99a00f44f Updated MakerNote IFD capitalization 2024-12-22 07:24:08 +11:00
Andrew Murray
08e1f9ebc1 Lint fixes 2024-12-21 13:06:09 +11:00
renovate[bot]
3d0f438949
Update dependency mypy to v1.14.0 2024-12-21 01:38:05 +00:00
Andrew Murray
cf4110ff06
Replace constants with enums (#8611)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-20 15:55:44 +02:00
Andrew Murray
e7e5420e0a
Merge pull request #8612 from radarhere/webp
Updated libwebp to 1.5.0
2024-12-20 23:42:02 +11:00
Andrew Murray
0e80a5a88f
Merge branch 'main' into webp 2024-12-20 20:33:18 +11:00
Andrew Murray
5bd2f489fa
Install libjpeg-turbo8-dev (#8610)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-20 09:44:50 +02:00
Andrew Murray
c6f42cb6a5 Updated libwebp to 1.5.0 2024-12-20 14:46:01 +11:00
Andrew Murray
413cae5a03
Merge branch 'main' into emf_records 2024-12-18 19:01:56 +11:00
Andrew Murray
cbc55c4621
Raise ValueError when WMF inch is zero (#8600)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-12-18 08:08:51 +02:00
Andrew Murray
de8335ba8f
Extract tar files with "data" filter in Windows build scripts (#8606)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-12-18 08:07:34 +02:00
Hugo van Kemenade
feeacf46ad
Merge pull request #8608 from radarhere/libjpeg-turbo
Updated libjpeg-turbo URL
2024-12-18 08:05:13 +02:00
Andrew Murray
962bfc6fd5 Updated libjpeg-turbo URL 2024-12-18 10:39:52 +11:00
Hugo van Kemenade
76919ad962
Merge pull request #8567 from radarhere/winbuild
Derive dir from filename if root is the same in winbuild
2024-12-17 16:11:14 +02:00
Andrew Murray
0ca832cfa5
Merge branch 'main' into xmp 2024-12-17 18:43:00 +11:00
Andrew Murray
88f6be3f19
Merge pull request #8604 from radarhere/libjpeg-turbo
Updated libjpeg-turbo and harfbuzz URLs
2024-12-17 08:24:27 +11:00
Hugo van Kemenade
2c120b53f6
Merge pull request #8579 from radarhere/tiff_debug
Do not describe raw data as a table
2024-12-16 15:16:41 +02:00
Hugo van Kemenade
e40033dfc4
Merge pull request #8494 from radarhere/gif_palette
Improved handling of RGBA palettes when saving GIF images
2024-12-16 15:10:17 +02:00
Andrew Murray
0958114521 Corrected harfbuzz URL 2024-12-16 21:03:33 +11:00
Andrew Murray
5e35ca359c Updated libjpeg-turbo URL 2024-12-16 20:17:36 +11:00
Andrew Murray
935c34a157
Merge branch 'main' into winbuild 2024-12-16 09:55:29 +11:00
Hugo van Kemenade
6e45e71052
Merge pull request #8601 from radarhere/zlib 2024-12-15 23:17:17 +02:00
Hugo van Kemenade
c2f21a233f
Merge pull request #8599 from radarhere/releasenotes 2024-12-15 17:07:13 +02:00
Andrew Murray
7f6ebfb8c5 Added release notes for #8500 2024-12-15 23:40:38 +11:00
Andrew Murray
6373e8bcc4 Use .tar.gz zlib to match macOS and Linux 2024-12-15 22:58:35 +11:00
Andrew Murray
62d8ccc015 Derive dir from filename if root is the same 2024-12-15 12:11:41 +11:00
Andrew Murray
a7338f8ce7
Merge pull request #8500 from nulano/zlib-ng
Use zlib-ng instead of zlib
2024-12-15 07:01:42 +11:00
Hugo van Kemenade
c79aab7cc9
Merge pull request #8598 from radarhere/libxau
Updated libXau to 1.0.12
2024-12-14 11:50:32 +02:00
Andrew Murray
01bc487ff4
Merge branch 'main' into zlib-ng 2024-12-14 19:06:00 +11:00
Andrew Murray
0e5f5fcb29 Updated libXau to 1.0.12 2024-12-14 16:33:20 +11:00
Hugo van Kemenade
bce51744f6
Merge pull request #8596 from radarhere/macos
Test libjpeg-turbo on macOS
2024-12-13 17:18:47 +02:00
Andrew Murray
642b44c315 Test libjpeg-turbo on macOS 2024-12-14 01:25:28 +11:00
Hugo van Kemenade
bc8e581efd
Merge pull request #8593 from radarhere/brew
Do not attempt to install cmake if it is already present
2024-12-13 13:37:56 +02:00
Hugo van Kemenade
0a513879d1
Merge pull request #8595 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 3.1.0
2024-12-13 13:37:05 +02:00
Andrew Murray
e361930936 Updated libjpeg-turbo to 3.1.0 2024-12-13 18:56:59 +11:00
Andrew Murray
9ed96704d3 Do not attempt to install cmake if it is already present 2024-12-13 07:28:48 +11:00
Andrew Murray
522505b714 Support saving CMYK JPEG2000 images 2024-12-10 18:33:12 +11:00
Hugo van Kemenade
d66c51a356
Merge pull request #8533 from radarhere/harfbuzz_10_1_0
Updated harfbuzz to 10.1.0
2024-12-10 09:29:30 +02:00
Hugo van Kemenade
335dd2aa7c
Merge pull request #8591 from radarhere/openjpeg_253
Updated openjpeg to 2.5.3
2024-12-10 09:29:16 +02:00
Andrew Murray
2215eaf21d Updated openjpeg to 2.5.3 2024-12-10 06:25:48 +11:00
Jeffrey A. Clark
90591d75db
Merge pull request #8586 from python-pillow/pre-commit-ci-update-config
Replace python-pillow.org with python-pillow.github.io
2024-12-07 09:02:47 -05:00
Hugo van Kemenade
c5474ed433 Replace python-pillow.org with python-pillow.github.io 2024-12-06 20:26:07 +02:00
Hugo van Kemenade
76356c5fe4
Merge pull request #8582 from radarhere/imagefile_tile
ImageFile tile is never None
2024-12-03 13:11:43 +02:00
Andrew Murray
3ce33a253a self.tile is not None 2024-12-03 20:14:03 +11:00
Hugo van Kemenade
78504658b1
Merge pull request #8580 from python-pillow/renovate/cibuildwheel-2.x 2024-12-03 09:06:43 +02:00
Andrew Murray
f4a9304bb3 Use CIBW_ENABLE 2024-12-03 13:35:00 +11:00
renovate[bot]
80c562573a
Update dependency cibuildwheel to v2.22.0 2024-12-03 02:28:52 +00:00
Andrew Murray
c16ae6fefa Do not describe raw data as a table 2024-12-03 09:19:26 +11:00
Andrew Murray
595bdf2057
Merge pull request #8578 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-12-03 09:07:41 +11:00
Hugo van Kemenade
0ab21dff1e Fix new Ruff errors 2024-12-02 20:29:38 +02:00
pre-commit-ci[bot]
0000729f2a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.8.1)
- [github.com/PyCQA/bandit: 1.7.10 → 1.8.0](https://github.com/PyCQA/bandit/compare/1.7.10...1.8.0)
- [github.com/pre-commit/mirrors-clang-format: v19.1.3 → v19.1.4](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.3...v19.1.4)
- [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.30.0)
- [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.22...v0.23)
2024-12-02 17:34:54 +00:00
Hugo van Kemenade
d4383f923d
Merge pull request #8577 from hugovk/copyright-years 2024-12-02 09:05:43 +02:00
Hugo van Kemenade
513fe2ca2d Only use start year in copyright, remove end years 2024-12-01 23:15:54 +02:00
Hugo van Kemenade
32ee1060d1
Merge pull request #8576 from radarhere/config 2024-11-30 19:02:54 +02:00
Andrew Murray
c61e5502da
Merge pull request #8575 from radarhere/mingw
Python 3.12 is tested on MinGW
2024-11-30 23:18:34 +11:00
Andrew Murray
1d15ce8c49 Updated build option error messages 2024-11-30 23:17:42 +11:00
Andrew Murray
1fab591f42 Python 3.12 is tested on MinGW 2024-11-30 21:17:31 +11:00
Hugo van Kemenade
c388ad06a4
Merge pull request #8574 from radarhere/raqm
Use brew formula to install libraqm
2024-11-30 10:29:20 +02:00
Andrew Murray
10527918e3 Use brew formula to install libraqm 2024-11-29 17:13:07 +11:00
Andrew Murray
1c152258c3
Merge pull request #8560 from Knio/tom/bufferedio
Fix file position desync when calling into libtiff
2024-11-29 13:37:33 +11:00
Andrew Murray
b1a9199e44
Merge pull request #8571 from radarhere/changes
Added link to GitHub releases in CHANGES
2024-11-29 08:42:21 +11:00
Andrew Murray
4986609938 Use zlib-ng on macOS 2024-11-28 21:31:54 +11:00
Andrew Murray
7ff4bcb39d
Merge pull request #27 from hugovk/radarhere-changes
Update/remove references to CHANGES.rst
2024-11-28 19:35:41 +11:00
Hugo van Kemenade
c36a5b669b Update/remove references to CHANGES.rst 2024-11-28 10:29:05 +02:00
Andrew Murray
02250e81b7 Added link to GitHub releases 2024-11-28 07:58:10 +11:00
Andrew Murray
b25a5a4072
Merge pull request #8570 from hugovk/release-drafter-uncategorised-last
Release drafter: move removals, deprecations, documentation up, and uncategorised changes last
2024-11-27 09:11:00 +11:00
Hugo van Kemenade
5174c596ca Release drafter: move removals, deprecations, documentation up, and uncategorised changes last 2024-11-26 22:06:47 +02:00
Andrew Murray
7dcf4d8ab3 Added logging to fixIFD() 2024-11-25 19:41:41 +11:00
Hugo van Kemenade
4304414473
Merge pull request #8566 from radarhere/cmake_wheel
Do not attempt to install cmake a second time when building macOS or Linux wheels
2024-11-25 09:11:07 +02:00
Andrew Murray
540a0b73a7 Use installed cmake 2024-11-25 12:15:25 +11:00
Hugo van Kemenade
d7ffb39731
Merge pull request #8565 from hugovk/Quansight-Labs/setup-python 2024-11-24 15:02:24 +02:00
Hugo van Kemenade
16e409a8d2 Test 3.13t (free-threaded) from Quansight-Labs/setup-python on Linux/macOS 2024-11-24 13:46:28 +02:00
Hugo van Kemenade
e4b07cce98
Merge pull request #8557 from python-pillow/renovate/github-actions 2024-11-23 18:46:55 +02:00
Andrew Murray
dab795c808
Merge branch 'main' into zlib-ng 2024-11-22 18:27:44 +11:00
Andrew Murray
8a82e0c66b
Merge branch 'main' into renovate/github-actions 2024-11-22 18:26:28 +11:00
Hugo van Kemenade
09d75436f3
Merge pull request #8562 from radarhere/mingw_packages 2024-11-22 08:40:05 +02:00
Andrew Murray
30f03b2bff Removed SETUPTOOLS_USE_DISTUTILS="stdlib" 2024-11-22 11:05:33 +11:00
Andrew Murray
9c3d8fb581 Do not install Pyroma, to use only system packages 2024-11-22 11:02:50 +11:00
Andrew Murray
69c9a7ffcf Use zlib-ng on Linux 2024-11-21 20:39:08 +01:00
Andrew Murray
bfe40b5129 Prevent Cygwin bash from being used by codecov-action 2024-11-21 19:24:08 +11:00
Tom Flanagan
9fd4450281
Merge pull request #1 from radarhere/tom/bufferedio
Moved test
2024-11-20 05:22:49 -08:00
Tom Flanagan
82dfbc35b1
Update src/PIL/TiffImagePlugin.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-20 05:21:14 -08:00
Andrew Murray
925db45526 Moved test 2024-11-20 22:40:29 +11:00
Andrew Murray
cb1653f627 Updated comment 2024-11-20 22:33:23 +11:00
pre-commit-ci[bot]
44cc0bebb8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-11-20 05:52:53 +00:00
Tom Flanagan
c7a9582eab Fix file position desync when calling into libtiff 2024-11-19 21:49:33 -08:00
Andrew Murray
e02e4aaf1d Updated harfbuzz to 10.1.0 2024-11-19 07:12:54 +11:00
Andrew Murray
3f5f3bb07b
Merge branch 'main' into zlib-ng 2024-11-18 22:25:19 +11:00
Hugo van Kemenade
0995305eb4
Merge pull request #8497 from freakboy3742/homebrew-isolation 2024-11-18 12:17:40 +02:00
Russell Keith-Magee
96b898c826
A couple more cleanups from code review. 2024-11-18 09:56:45 +08:00
Andrew Murray
c70dacff62 Updated from deprecated "file" to "files" 2024-11-16 21:44:00 +11:00
renovate[bot]
6136a92d06
Update codecov/codecov-action action to v5 2024-11-16 09:48:28 +00:00
Russell Keith-Magee
54f23345d2
More tweaks from code review. 2024-11-16 09:58:29 +08:00
Andrew Murray
185a03f1a2 Do not create new image when exif_transpose() is used in place 2024-11-16 12:05:06 +11:00
Andrew Murray
84f5c7e5ba Added default value for _Tile offset 2024-11-13 22:53:29 +11:00
Andrew Murray
871963b8dd Replaced tuple args with mode string where equivalent 2024-11-13 22:53:18 +11:00
Andrew Murray
48c7eb22c0 Added default value for _Tile args 2024-11-13 22:45:52 +11:00
Russell Keith-Magee
0e3eb70ea0
Merge pull request #1 from radarhere/homebrew-isolation
Disable platform guessing instead of adding dependencies-prefix
2024-11-13 11:49:37 +08:00
Russell Keith-Magee
9dc690427f
Correct the lookup of libfribidi on x86 macOS installs. 2024-11-13 11:03:26 +08:00
Andrew Murray
6fa775e324 Platform guessing affects more than just Linux 2024-11-12 22:46:24 +11:00
Andrew Murray
378df7a5b2 Disable platform guessing instead of adding dependencies-prefix 2024-11-12 22:41:57 +11:00
Andrew Murray
5bff2f3b28 Update CHANGES.rst [ci skip] 2024-11-10 21:32:54 +11:00
Hugo van Kemenade
b7bbcfbffb
Merge pull request #8545 from radarhere/realpath 2024-11-10 11:51:57 +02:00
Andrew Murray
2303018ebf Removed use of os.path.realpath 2024-11-09 20:06:33 +11:00
mergify[bot]
ab496d04ce
Merge pull request #8544 from radarhere/type_hints_quotes
Removed quotes after dropping support for Python 3.8
2024-11-09 08:20:12 +00:00
Andrew Murray
7674b1a07a Removed quotes after dropping support for Python 3.8 2024-11-09 18:43:12 +11:00
Andrew Murray
9f09d48f37 Update CHANGES.rst [ci skip] 2024-11-09 18:20:52 +11:00
Andrew Murray
a01c31a1a3
Merge pull request #8519 from cubanpit/patch-1
Allow linking to zlib import library on Windows
2024-11-09 14:08:44 +11:00
Russell Keith-Magee
681a03b1c3
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-09 10:29:29 +08:00
Hugo van Kemenade
d642d2c36f
Merge pull request #8541 from radarhere/gcc 2024-11-08 16:23:15 +02:00
Andrew Murray
0a5b0f29e5 Run gcc problem matcher on Python 3.13 2024-11-09 00:18:59 +11:00
Andrew Murray
c5e89ee914
Merge pull request #26 from nulano/imagegrab-dynamic-link
Fix GetWindowDpiAwarenessContext NULL check
2024-11-08 11:01:39 +11:00
Russell Keith-Magee
4e35852ccc
Correct typo in comment.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-08 05:34:35 +08:00
Andrew Murray
acba5c47f8 Lint fix 2024-11-08 08:26:16 +11:00
Ondrej Baranovič
a6c941ac2c
Do not load GetWindowDpiAwarenessContext until its needed
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-07 22:22:02 +01:00
Nulano
4b8867069b Fix GetWindowDpiAwarenessContext NULL check 2024-11-07 22:06:28 +01:00
pre-commit-ci[bot]
288d77efd6 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-11-07 20:46:01 +00:00
Andrew Murray
a44b3067b0
Fallback to PER_MONITOR_AWARE if GetWindowDpiAwarenessContext is not available
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-11-08 07:45:29 +11:00
Andrew Murray
7763350f07 Fallback to PER_MONITOR_AWARE 2024-11-08 07:30:09 +11:00
Hugo van Kemenade
09bf28e9d7
Update platform support
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-07 15:46:08 +02:00
Hugo van Kemenade
a262b1991b
Update winbuild/README.md
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-11-07 12:54:28 +02:00
Andrew Murray
48f183802a
Merge branch 'main' into gha-windows-32-bit 2024-11-07 10:14:04 +11:00
Andrew Murray
2e7da079cd
Merge pull request #8514 from hugovk/tests-trove-extra
Add trove-classifiers>=2024.10.12 to 'tests' extra and use for Windows CI
2024-11-07 10:11:13 +11:00
Hugo van Kemenade
e5f2874e26
Require coverage>=7.4.2 (#129) 2024-11-06 23:51:30 +02:00
Andrew Murray
042f3ff083 Require coverage>=7.4.2 2024-11-07 07:52:18 +11:00
Andrew Murray
b11aec3963
Merge branch 'main' into tests-trove-extra 2024-11-07 07:50:51 +11:00
Hugo van Kemenade
2e09d7a910
Merge pull request #8538 from radarhere/macos 2024-11-06 13:43:37 +02:00
Andrew Murray
b0345c1c7b Updated macOS tested Pillow versions 2024-11-06 22:08:22 +11:00
Russell Keith-Magee
904416bda1
Merge branch 'main' into homebrew-isolation 2024-11-06 14:33:25 +08:00
Russell Keith-Magee
e82b5398e7
Correct handling of vendored fribidi. 2024-11-06 14:12:51 +08:00
Pietro F. Fontana
a1d862f1d6
Be more specific in comment
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-11-05 15:39:03 +01:00
Andrew Murray
3cdaee45f5 Raise UnidentifiedImageError when opening TIFF without dimensions 2024-11-05 21:20:20 +11:00
Hugo van Kemenade
7fe56d62c6
Merge pull request #8534 from radarhere/parse 2024-11-05 12:15:38 +02:00
Andrew Murray
f68219713c
Merge branch 'main' into imagegrab 2024-11-05 21:15:08 +11:00
Hugo van Kemenade
8561875b2d
Merge pull request #8532 from radarhere/type_hint 2024-11-05 12:12:43 +02:00
Andrew Murray
48db4a1d4d Use test image filename 2024-11-05 19:40:03 +11:00
Andrew Murray
9622266c2a Use DPI awareness from window 2024-11-05 18:33:25 +11:00
Andrew Murray
2d23a84049 Fixed type hint 2024-11-05 17:18:46 +11:00
Andrew Murray
28e5b929f8 Test 0 2024-11-05 08:40:09 +11:00
Andrew Murray
b6413cd588 Cast to uint64_t 2024-11-05 07:16:49 +11:00
Andrew Murray
607acbf95e Allow window to be supplied for ImageGrab.grab() on Windows 2024-11-05 07:05:39 +11:00
Hugo van Kemenade
5628213ab0 Upgrade pip for all 2024-11-04 21:17:47 +02:00
mergify[bot]
82199efbf7
Merge pull request #8531 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-11-04 18:26:52 +00:00
pre-commit-ci[bot]
4b7f6a6eb0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.7.2)
- [github.com/psf/black-pre-commit-mirror: 24.8.0 → 24.10.0](https://github.com/psf/black-pre-commit-mirror/compare/24.8.0...24.10.0)
- [github.com/pre-commit/mirrors-clang-format: v19.1.1 → v19.1.3](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.1...v19.1.3)
- [github.com/python-jsonschema/check-jsonschema: 0.29.3 → 0.29.4](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.3...0.29.4)
- [github.com/tox-dev/pyproject-fmt: 2.2.4 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/2.2.4...v2.5.0)
- [github.com/abravalheri/validate-pyproject: v0.20.2 → v0.22](https://github.com/abravalheri/validate-pyproject/compare/v0.20.2...v0.22)
2024-11-04 17:35:35 +00:00
Andrew Murray
37679c8673 Pass IFDs to libtiff as TIFF_LONG8 2024-11-04 20:55:00 +11:00
Hugo van Kemenade
a60981650b
Merge pull request #8527 from python-pillow/renovate/migrate-config 2024-11-04 08:45:59 +02:00
Andrew Murray
89735266ad
Merge pull request #8526 from hugovk/zizmor
Apply security fixes to GitHub Actions
2024-11-04 16:34:23 +11:00
renovate[bot]
924df0ac5c
Migrate config .github/renovate.json 2024-11-03 23:22:57 +00:00
Hugo van Kemenade
d3db931f21 Fix error[excessive-permissions]: overly broad workflow or job-level permissions 2024-11-02 23:31:21 +02:00
Hugo van Kemenade
9faf598c89 Fix warning[artipacked]: credential persistence through GitHub Actions artifacts 2024-11-02 23:29:56 +02:00
Hugo van Kemenade
1c4f29f2ce Test the oldest Python on 32-bit Windows 2019 2024-11-02 16:28:07 +02:00
Hugo van Kemenade
327e13ffd0 Stop testing on AppVeyor 2024-11-02 15:41:57 +02:00
Hugo van Kemenade
5771f0ec37
Merge pull request #8523 from nulano/winarm64 2024-11-02 15:36:05 +02:00
Ondrej Baranovič
6fe7160cb9
Update Windows 11 Arm64 tested versions 2024-11-02 14:03:53 +01:00
Hugo van Kemenade
48a4ee9904
Merge pull request #8521 from hugovk/gcov 2024-11-02 12:55:48 +02:00
Hugo van Kemenade
141e8d2546 Remove unused 'gcov: true' for codecov-action@v4 2024-11-02 12:08:23 +02:00
Andrew Murray
a9e110e64a
Merge pull request #8520 from radarhere/fedora
Added Fedora 41
2024-11-02 19:45:55 +11:00
Andrew Murray
71016f23b4 Added Fedora 41 2024-11-02 17:51:01 +11:00
Pietro F. Fontana
aae90c3c01
Allow linking to shared zlib
If compiled as shared library zlib produces `zlib1.dll` and `zdll.lib`.
2024-11-01 15:42:08 +01:00
Russell Keith-Magee
51e3623066
Revert x86_64 homebrew location change (with explanation). 2024-10-31 09:54:02 +08:00
Russell Keith-Magee
01270b5859
Use the intended entry point for the x86_64 brew binary.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-31 06:27:54 +08:00
Hugo van Kemenade
0bf15f0f2a Upgrade pip 2024-10-30 22:24:37 +02:00
Hugo van Kemenade
67c2e04f70 Add trove-classifiers>=2024.10.12 to 'tests' extra and use for Windows CI 2024-10-30 08:37:19 +02:00
Russell Keith-Magee
96ae15c5cd
Merge branch 'main' into homebrew-isolation 2024-10-30 06:25:08 +08:00
Russell Keith-Magee
c6912f81ff
Corrected typo in code comment.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-30 05:43:23 +08:00
Hugo van Kemenade
16372dd951
Merge pull request #8512 from radarhere/qtables 2024-10-29 17:50:25 +02:00
Andrew Murray
80cf74030d
Removed fixture
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-10-29 23:13:01 +11:00
Andrew Murray
467f12022e
Merge branch 'main' into homebrew-isolation 2024-10-29 22:38:27 +11:00
Andrew Murray
624848ff97 Do not repeatedly save to the same path 2024-10-29 22:21:53 +11:00
Andrew Murray
2d1d801ec0 Update CHANGES.rst [ci skip] 2024-10-29 22:15:56 +11:00
Hugo van Kemenade
e214dbf75c
Merge pull request #8509 from radarhere/toqpixmap
Detach PyQt6 QPixmap instance before returning
2024-10-29 13:06:37 +02:00
Hugo van Kemenade
0fd608626a
Merge pull request #8511 from radarhere/multibuild_lib64
Upgraded multibuild to remove openjpeg lib64 copy
2024-10-29 13:04:24 +02:00
Russell Keith-Magee
6d137043f7
Remove stray debug. 2024-10-29 10:01:46 +08:00
Russell Keith-Magee
d1a4f8029b
Don't use multibuild variables before invoking multibuild. 2024-10-29 09:54:15 +08:00
Russell Keith-Magee
ec214e4d7c
Can't check IS_MACOS until common_utils is invoked. 2024-10-29 09:39:58 +08:00
Russell Keith-Magee
72d81e24a8
Simplify Linux config by correcting a logic error in macOS config. 2024-10-29 09:25:47 +08:00
Russell Keith-Magee
c74a5bdd85
Correct paths used for Linux build. 2024-10-29 09:02:05 +08:00
Russell Keith-Magee
8308bf361e
Bump multibuild to include more cmake changes. 2024-10-29 07:48:07 +08:00
Russell Keith-Magee
08554684b3
Revert fribidi/raqm changes for macOS builds. 2024-10-29 07:48:07 +08:00
Andrew Murray
5ab79bcc1f
Merge branch 'main' into zlib-ng 2024-10-29 09:53:02 +11:00
Andrew Murray
3e4be4b235
Merge branch 'main' into homebrew-isolation 2024-10-29 09:52:29 +11:00
Andrew Murray
e5706a590b Upgraded multibuild to remove openjpeg lib64 copy 2024-10-29 09:04:06 +11:00
Hugo van Kemenade
bdd0b8630c
Merge pull request #8502 from radarhere/libdeflate 2024-10-28 16:43:09 +02:00
Andrew Murray
73600eea94 Detach PyQt6 QPixmap instance before returning 2024-10-29 00:34:24 +11:00
Andrew Murray
9a4b3e05d6
Merge pull request #8496 from lysnikolaou/fix-font-face-threading-crash
Fix SEGFAULT from calling FT_New_Face/FT_Done_Face in multiple threads
2024-10-27 08:38:53 +11:00
Andrew Murray
b4ba466541 Do not skip failing records on 32-bit 2024-10-27 07:03:35 +11:00
Andrew Murray
8c1dc0de3c
Merge branch 'main' into emf_records 2024-10-26 22:01:47 +11:00
Andrew Murray
29cdbce39e Update CHANGES.rst [ci skip] 2024-10-26 21:13:01 +11:00
Hugo van Kemenade
23023dee8d
Merge pull request #8485 from radarhere/emf 2024-10-26 12:45:52 +03:00
Andrew Murray
ed910a68d6 Only replace version suffix if zlib-ng is present 2024-10-26 11:23:49 +02:00
Andrew Murray
1654eeacba
Merge pull request #8484 from radarhere/fixture
Use fixture to re-open image for each JPEG2000 test
2024-10-26 19:42:59 +11:00
Andrew Murray
f92599aa93 Renamed fixture 2024-10-26 19:05:16 +11:00
Andrew Murray
ce4059171c Skip failing records when rendering 2024-10-26 18:41:05 +11:00
Hugo van Kemenade
81a3bf5f58
Merge pull request #8504 from radarhere/mpo
Move MPO into "Fully supported formats"
2024-10-26 09:43:02 +03:00
Hugo van Kemenade
35ddbb48c3
Merge pull request #8505 from radarhere/warnings
Fixed catching warnings
2024-10-26 09:41:09 +03:00
Andrew Murray
413bbb31c9 Fixed catching warnings 2024-10-26 16:15:46 +11:00
Andrew Murray
e1f4b5a68f Move MPO into "Fully supported formats" 2024-10-26 15:10:41 +11:00
Andrew Murray
a43e5bb735 brew remove libdeflate 2024-10-26 14:26:47 +11:00
Andrew Murray
c07e089fd1
Merge branch 'main' into zlib-ng 2024-10-26 11:53:47 +11:00
Andrew Murray
64eed14867
Merge pull request #8498 from radarhere/winbuild
Added filename placeholder in winbuild URL
2024-10-26 11:52:33 +11:00
Nulano
7885066e5f PIL.features: Add a compile-time zlib-ng feature flag and version number 2024-10-25 21:30:22 +02:00
Nulano
3e0849bfb5 winbuild: Replace zlib with zlib-ng built with CMake 2024-10-25 20:35:17 +02:00
Lysandros Nikolaou
bb3515d649
Make PyMutex static and get rid of initialization 2024-10-25 17:32:29 +02:00
Andrew Murray
4b9399f8bf Use register_handler 2024-10-25 22:00:45 +11:00
Russell Keith-Magee
43c34fc0a5
Copy manylinux lib64 files from the correct built prefix. 2024-10-25 17:20:34 +08:00
Andrew Murray
fa7678987e Simplified code 2024-10-25 19:56:36 +11:00
Andrew Murray
c46946f3a4 Added filename placeholder in URL 2024-10-25 19:13:39 +11:00
Russell Keith-Magee
0961d3d22b
Possible fix for linux build failures. 2024-10-25 16:10:29 +08:00
Russell Keith-Magee
140a06e0fd
Explicitly disable libdeflate on libtiff. 2024-10-25 16:04:56 +08:00
Russell Keith-Magee
5a8373e527
Correct a dumb pip invocation error. 2024-10-25 14:47:51 +08:00
Russell Keith-Magee
06dbfedb0f
Bump the multibuild version to fix jpeg-turbo issue. 2024-10-25 13:51:37 +08:00
Russell Keith-Magee
00809a2551
Tweaks to ensure isolation from Homebrew on x86_64. 2024-10-25 13:42:46 +08:00
Russell Keith-Magee
fc35fcc5ea
Cleanups and typos identified by code review. 2024-10-25 10:55:30 +08:00
Russell Keith-Magee
0fe55d6115
Isolate macOS build from Homebrew. 2024-10-25 09:53:06 +08:00
pre-commit-ci[bot]
7999da38a7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-24 14:07:46 +00:00
Lysandros Nikolaou
c8e301c474
Fix SEGFAULT from calling FT_New_Face/FT_Done_Face in multiple threads 2024-10-24 16:01:28 +02:00
Andrew Murray
8af2d7640e Pass palette mode to putpalette 2024-10-24 23:26:13 +11:00
Hugo van Kemenade
822ec3d05d
Merge pull request #8491 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.13.0
2024-10-23 07:30:34 +03:00
renovate[bot]
6a55f2df03
Update dependency mypy to v1.13.0 2024-10-23 02:36:15 +00:00
Hugo van Kemenade
31b82ee297
Merge pull request #8490 from radarhere/license 2024-10-22 13:05:06 +03:00
Andrew Murray
22c05e232c Update license to MIT-CMU 2024-10-22 17:56:02 +11:00
Andrew Murray
ccd4683f45
Merge pull request #8487 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.12.1
2024-10-21 12:11:35 +11:00
renovate[bot]
beb32bbb1f
Update dependency mypy to v1.12.1 2024-10-21 00:18:00 +00:00
Andrew Murray
55579084cd Corrected EMF DPI 2024-10-19 20:40:13 +11:00
Hugo van Kemenade
331e4e7517
Merge pull request #8482 from radarhere/imagefile 2024-10-18 14:33:26 +03:00
Andrew Murray
5b06597075 Use fixture to re-open image for each test 2024-10-18 19:29:22 +11:00
Andrew Murray
203ca12626 Allow encoderinfo to be set for appended images 2024-10-18 19:09:22 +11:00
Andrew Murray
98f975dbbe Do not save XMP from info 2024-10-18 18:56:23 +11:00
Andrew Murray
a337138f92 Updated type hint 2024-10-18 08:32:14 +11:00
Andrew Murray
d59b169ed2 Update CHANGES.rst [ci skip] 2024-10-17 23:10:48 +11:00
Hugo van Kemenade
6e2ebaae2d
Merge pull request #8474 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.12.0
2024-10-17 08:16:14 +03:00
Andrew Murray
0beb2228f9 Include JpegImageFile layers in state 2024-10-17 12:44:25 +11:00
Andrew Murray
4611a24661 Fix IFDRational with a zero denominator 2024-10-17 10:58:48 +11:00
Andrew Murray
5ff20273d9 Updated type hints 2024-10-17 10:46:26 +11:00
renovate[bot]
c252b708ee
Update dependency mypy to v1.12.0 2024-10-16 21:41:38 +00:00
Andrew Murray
11c654c187 Update CHANGES.rst [ci skip] 2024-10-16 23:07:35 +11:00
mergify[bot]
1c11d4581c
Merge pull request #8469 from radarhere/disable
Fixed disabling a feature during install
2024-10-16 11:38:07 +00:00
Andrew Murray
7c194b54ef Fixed disabling a feature 2024-10-16 21:37:14 +11:00
Hugo van Kemenade
96fb0e63ea
Merge pull request #8467 from radarhere/pypy
Skip PyPy3.9 wheels
2024-10-16 08:27:11 +03:00
Andrew Murray
8393972c35 Skip PyPy3.9 wheels 2024-10-16 09:56:33 +11:00
Andrew Murray
37e56350a3
Merge pull request #8466 from radarhere/fedora
Removed Fedora 39
2024-10-16 09:14:28 +11:00
Hugo van Kemenade
304732f75e
Merge pull request #8465 from radarhere/tile 2024-10-15 18:05:37 +03:00
Hugo van Kemenade
455e6da119 11.1.0.dev0 version bump 2024-10-15 17:30:25 +03:00
Andrew Murray
a433f24f0b tile is already an empty list 2024-10-15 22:14:26 +11:00
Hugo van Kemenade
204aae6682 11.0.0 version bump 2024-10-15 08:55:00 +03:00
Andrew Murray
3911afbc97 Removed Fedora 39 2024-10-14 16:56:48 +11:00
Andrew Murray
f2cc87b1f0 Update CHANGES.rst [ci skip] 2024-10-13 11:19:41 +11:00
Andrew Murray
c855e8e5f9
Merge pull request #8464 from radarhere/imagemath_type_hint
Added type hints to remaining ImageMath methods
2024-10-13 11:00:15 +11:00
Andrew Murray
dc3751599f
Merge pull request #8463 from hugovk/update-3.13-date
Update Python 3.13 release date
2024-10-13 09:32:26 +11:00
Hugo van Kemenade
c3d81d6375 Update Python 3.13 release date 2024-10-12 23:52:57 +03:00
Andrew Murray
a60610c93f Added type hints 2024-10-13 07:42:17 +11:00
Andrew Murray
a5c58f2182
Merge pull request #8460 from hugovk/mit-cmu
Update licence to MIT-CMU
2024-10-13 07:10:09 +11:00
Hugo van Kemenade
e74994ed37 Update licence to MIT-CMU 2024-10-12 16:50:36 +03:00
Andrew Murray
b5e1115bf2 Update CHANGES.rst [ci skip] 2024-10-12 21:10:47 +11:00
Hugo van Kemenade
686b5e2cb4
Merge pull request #8392 from radarhere/tiff_seek
Do not create core image in TIFF seek()
2024-10-12 11:46:36 +03:00
Hugo van Kemenade
914f7e1c58
Merge pull request #8365 from radarhere/openjpeg
Removed custom build_openjpeg
2024-10-12 11:46:01 +03:00
Hugo van Kemenade
b0d79c87f1
Merge pull request #8197 from radarhere/imagecms_core
Conditionally define ImageCms type hint to avoid requiring core
2024-10-12 11:30:17 +03:00
Hugo van Kemenade
fd74857bcf
Merge pull request #8417 from radarhere/appendingTiffWriter
Support writing LONG8 offsets in AppendingTiffWriter
2024-10-12 11:29:09 +03:00
Hugo van Kemenade
3dded83076
Merge pull request #8461 from radarhere/undone
Use ImageFile.MAXBLOCK when saving TIFF images
2024-10-12 11:25:55 +03:00
Andrew Murray
00c5989d4e Use MAXBLOCK 2024-10-12 13:44:48 +11:00
Hugo van Kemenade
08b561e25d
Merge pull request #8459 from radarhere/webp 2024-10-11 14:59:26 +03:00
Andrew Murray
e93dcc1578 Update CHANGES.rst [ci skip] 2024-10-11 21:09:52 +11:00
Hugo van Kemenade
ecdd519a0e
Merge pull request #8458 from radarhere/dup 2024-10-11 13:07:44 +03:00
Andrew Murray
afbf45055a Always raise warnings for deprecated feature checks 2024-10-11 20:59:15 +11:00
Andrew Murray
7edf952832 Do not close provided file handles with libtiff 2024-10-11 19:37:56 +11:00
Hugo van Kemenade
3d9c05c224
Merge pull request #8457 from hugovk/sphinx-8.1 2024-10-11 10:58:08 +03:00
Hugo van Kemenade
fdd5d0c0fb Use CVE and CWE roles from Sphinx 8.1 2024-10-10 21:35:48 +03:00
Andrew Murray
97438cb8fd Update CHANGES.rst [ci skip] 2024-10-10 22:50:26 +11:00
Andrew Murray
d99229e4d1
Merge pull request #8455 from radarhere/wheels 2024-10-10 22:18:49 +11:00
Andrew Murray
7777260b6b
Merge pull request #8438 from radarhere/filter 2024-10-10 21:50:51 +11:00
Andrew Murray
ff245fcb40 Revert "Skip QEMU-emulated wheels on workflow dispatch event"
This reverts commit f39ca5db5a.
2024-10-10 19:43:11 +11:00
mergify[bot]
dab9559c04
Merge pull request #8453 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.21.3
2024-10-09 10:07:27 +00:00
renovate[bot]
e37209ace5
Update dependency cibuildwheel to v2.21.3 2024-10-09 09:11:46 +00:00
Andrew Murray
a9b9a63614 Do not create core image in seek(), when load() might not run 2024-10-08 20:48:32 +11:00
Andrew Murray
949079bf36
Merge pull request #8448 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-10-08 08:28:53 +11:00
pre-commit-ci[bot]
a609d65b33 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-10-07 17:56:23 +00:00
pre-commit-ci[bot]
ef47d6e5e5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.9)
- [github.com/PyCQA/bandit: 1.7.9 → 1.7.10](https://github.com/PyCQA/bandit/compare/1.7.9...1.7.10)
- [github.com/pre-commit/mirrors-clang-format: v18.1.8 → v19.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.8...v19.1.1)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
- [github.com/python-jsonschema/check-jsonschema: 0.29.2 → 0.29.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.2...0.29.3)
- [github.com/sphinx-contrib/sphinx-lint: v0.9.1 → v1.0.0](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.9.1...v1.0.0)
- [github.com/tox-dev/pyproject-fmt: 2.2.1 → 2.2.4](https://github.com/tox-dev/pyproject-fmt/compare/2.2.1...2.2.4)
- [github.com/abravalheri/validate-pyproject: v0.19 → v0.20.2](https://github.com/abravalheri/validate-pyproject/compare/v0.19...v0.20.2)
- [github.com/tox-dev/tox-ini-fmt: 1.3.1 → 1.4.1](https://github.com/tox-dev/tox-ini-fmt/compare/1.3.1...1.4.1)
2024-10-07 17:55:54 +00:00
Andrew Murray
7097a9a3b8 Update CHANGES.rst [ci skip] 2024-10-07 22:12:41 +11:00
Hugo van Kemenade
535bf234c3
Merge pull request #8341 from uploadcare/use-ptr
Use ImagingCore.ptr instead of ImagingCore.id
2024-10-07 13:37:44 +03:00
Alexander Karpinsky
a227f22fd9
Apply suggestions from code review [ci skip]
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-10-07 14:35:25 +04:00
Hugo van Kemenade
029ec8559b
Merge pull request #8445 from radarhere/apply 2024-10-07 12:51:43 +03:00
Hugo van Kemenade
026181ed25
Merge pull request #8447 from radarhere/imagingft_unused 2024-10-07 12:51:25 +03:00
Hugo van Kemenade
f5ce8a9d61
Merge pull request #8446 from radarhere/close 2024-10-07 12:16:17 +03:00
Alexander Karpinsky
8e332eb3b0 Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-07 13:05:13 +04:00
Andrew Murray
8de66597f9 Removed unused code 2024-10-07 19:17:59 +11:00
Andrew Murray
76dd669e6b Fixed unclosed file warning 2024-10-07 16:50:05 +11:00
Andrew Murray
feeceb9ae6 Simplified code 2024-10-07 15:34:28 +11:00
Andrew Murray
27c1bb2654 Update CHANGES.rst [ci skip] 2024-10-07 07:48:32 +11:00
Hugo van Kemenade
96f1a6e8b1
Merge pull request #8281 from Yay295/eps_test 2024-10-06 15:58:57 +03:00
Hugo van Kemenade
838e0fb1a5
Merge pull request #8443 from radarhere/apng_p_transparency 2024-10-06 15:58:07 +03:00
Andrew Murray
b77cd009e2 Use transparency when combining P frames 2024-10-06 11:30:27 +11:00
Andrew Murray
01bb78a8e7
Merge pull request #8441 from hugovk/attest
Generate and upload attestations to PyPI
2024-10-06 11:11:57 +11:00
Andrew Murray
f3deba0ab6
Merge pull request #8442 from hugovk/appveyor-3.13
Test Python 3.13 on AppVeyor
2024-10-06 10:55:40 +11:00
Hugo van Kemenade
d2dfd126b3
Updated CI target (#128) 2024-10-06 01:04:57 +03:00
Andrew Murray
e2f996e2bd Updated CI target 2024-10-06 08:55:15 +11:00
Andrew Murray
1b57b32caf Test ignoring second ImageData 2024-10-05 16:28:03 -05:00
Hugo van Kemenade
a9cbf6d5a7 Test Python 3.13 on AppVeyor 2024-10-06 00:22:46 +03:00
Andrew Murray
d4fedc852c Rename test image 2024-10-05 08:06:44 -05:00
Yay295
8e6d518ea8
change parameter type from list to tuple
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-05 08:05:00 -05:00
Andrew Murray
418ae7caa2 Support BuiltinFilter for I;16* images 2024-10-05 01:12:51 +10:00
Andrew Murray
07be6fca17 Corrected check for BuiltinFilter 2024-10-04 23:26:54 +10:00
Andrew Murray
51c577df82
Merge pull request #8436 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.21.2
2024-10-03 13:55:35 +10:00
renovate[bot]
33f065eb5e
Update dependency cibuildwheel to v2.21.2 2024-10-03 00:41:31 +00:00
Andrew Murray
c27de88ea6
Merge pull request #8435 from radarhere/cifuzz
Test cifuzz when wheel dependencies change
2024-10-02 20:02:28 +10:00
Andrew Murray
547e7dcc5d Test cifuzz when wheel dependencies change 2024-10-02 19:17:13 +10:00
Hugo van Kemenade
79f95c98d3
Merge pull request #8434 from radarhere/xz
Updated xz to 5.6.3
2024-10-02 09:15:33 +03:00
Andrew Murray
baf2d8160a Updated xz to 5.6.3 2024-10-02 09:48:09 +10:00
Yay295
f9c69deaae
simplify setting self._size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-01 09:35:22 -05:00
Yay295
c0d04e8b34
use .size instead of ._size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-10-01 09:33:33 -05:00
Andrew Murray
84b167dfd5 Update CHANGES.rst [ci skip] 2024-10-01 21:11:56 +10:00
Hugo van Kemenade
0e0cb06a8d
Merge pull request #8431 from radarhere/imageenhance 2024-10-01 13:58:11 +03:00
Hugo van Kemenade
07389b2f18
Merge pull request #8416 from radarhere/compact_within_map 2024-10-01 13:55:50 +03:00
Hugo van Kemenade
c9c8d45898
Merge pull request #8422 from radarhere/resize_i16 2024-10-01 13:55:13 +03:00
Hugo van Kemenade
ea15e0e622
Merge pull request #8413 from radarhere/sgirle_memory 2024-10-01 13:52:22 +03:00
Hugo van Kemenade
747fdf5069
Merge pull request #8402 from radarhere/sgirle 2024-10-01 13:52:08 +03:00
Andrew Murray
f614580a2d
Merge pull request #8430 from python-pillow/renovate/github-actions
Update scientific-python/upload-nightly-action action to v0.6.1
2024-10-01 08:46:37 +10:00
Andrew Murray
749bec097c Do not convert image unnecessarily 2024-10-01 07:11:24 +10:00
renovate[bot]
4bfc77a1b1
Update scientific-python/upload-nightly-action action to v0.6.1 2024-09-30 20:19:02 +00:00
Yay295
782f0e8a5a change "Read" to "Parse" in comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-30 08:23:28 -05:00
Yay295
75286a4e40 add some comments 2024-09-30 08:23:28 -05:00
Andrew Murray
f3fe22d2f2 Break if the bit depth or mode id are unknown 2024-09-30 08:23:28 -05:00
Yay295
56e4ad0dea don't name positional arguments 2024-09-30 08:23:28 -05:00
Yay295
6b168a3e2b add EPS test for image with ImageData and BoundingBox (atend) 2024-09-30 08:23:27 -05:00
Yay295
00bbd4a5b9 use "with Image" instead of closing manually 2024-09-30 08:23:27 -05:00
Yay295
3ccecd91ce convert eps using pnmraw instead of ppmraw
This lets Ghostscript choose the best device to use (pbmraw, pgmraw, ppmraw) based on the image data.
2024-09-30 08:23:27 -05:00
Yay295
283b41afa0 test 1.eps size and data 2024-09-30 08:23:26 -05:00
Yay295
6fe4375f28 move eps test images to their own folder
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-09-30 08:23:26 -05:00
Andrew Murray
c6b08ef32c Update CHANGES.rst [ci skip] 2024-09-30 22:13:24 +10:00
Hugo van Kemenade
c5835fe86b
Merge pull request #8427 from radarhere/appveyor 2024-09-30 14:53:20 +03:00
Hugo van Kemenade
4f965289e1
Merge pull request #8429 from radarhere/macos 2024-09-30 14:52:12 +03:00
Hugo van Kemenade
0314bb3331
Merge pull request #8408 from radarhere/fli 2024-09-30 14:50:54 +03:00
Andrew Murray
42ad42c174
Merge branch 'main' into resize_i16 2024-09-30 19:50:26 +10:00
Andrew Murray
a99361a38f Raise an error if path is compacted during mapping 2024-09-30 19:50:08 +10:00
Andrew Murray
851449edfc Free memory on early return 2024-09-30 19:49:13 +10:00
Andrew Murray
fc65e437cf Prevent division by zero 2024-09-30 19:48:53 +10:00
Andrew Murray
cc0b6b9de9 Cast int before potentially exceeding INT_MAX 2024-09-30 19:47:52 +10:00
Hugo van Kemenade
7e6e08ea6a
Merge pull request #8428 from radarhere/cifuzz 2024-09-30 12:37:12 +03:00
Andrew Murray
b94c5c5e34 Updated macOS tested Pillow versions 2024-09-30 19:32:21 +10:00
Andrew Murray
7a62c788ed Updated tested Python versions 2024-09-30 19:15:40 +10:00
Andrew Murray
21ab53e0c0 Updated test environment documentation 2024-09-30 12:38:13 +10:00
Hugo van Kemenade
3beac54715
Merge pull request #8425 from python-pillow/renovate/github-actions
Update scientific-python/upload-nightly-action action to v0.6.0
2024-09-29 11:28:16 +00:00
renovate[bot]
3a734b5d4b
Update scientific-python/upload-nightly-action action to v0.6.0 2024-09-29 05:19:39 +00:00
mergify[bot]
c6e07d0272
Merge pull request #8400 from radarhere/geometry
Check image value before use
2024-09-28 23:07:00 +00:00
Hugo van Kemenade
e9f831d3db
Merge branch 'main' into geometry 2024-09-28 15:45:39 -07:00
Andrew Murray
ed143f5fec Update CHANGES.rst [ci skip] 2024-09-29 06:40:50 +10:00
Hugo van Kemenade
a89b3d53ff
Merge pull request #8424 from radarhere/harfbuzz 2024-09-28 09:06:25 -07:00
Hugo van Kemenade
58ef920771
Merge pull request #8420 from radarhere/libimagequant_lib64 2024-09-28 09:05:51 -07:00
Andrew Murray
e976096c2e Allow libimagequant shared library path to change 2024-09-28 20:39:04 +10:00
Andrew Murray
30fca7a1d6 Install meson through pip 2024-09-28 18:38:45 +10:00
Hugo van Kemenade
25592b634e
Merge pull request #8423 from radarhere/lint 2024-09-27 23:50:06 -07:00
Andrew Murray
d33270ab51 Set default resize sampling for I;16* images to BICUBIC 2024-09-28 15:35:42 +10:00
Andrew Murray
2e73ffe703 Exclude multibuild from black and ruff 2024-09-28 15:29:09 +10:00
Andrew Murray
e306546bf1 Use ruff check 2024-09-28 15:16:33 +10:00
Andrew Murray
04a00d273c Support all resampling filters when resizing I;16* images 2024-09-28 14:27:40 +10:00
Andrew Murray
bda62c1ac5 Revert "Temporarily disable cifuzz"
This reverts commit 3146940716.
2024-09-28 12:32:44 +10:00
Hugo van Kemenade
86b42a95d8
Merge pull request #8421 from radarhere/harfbuzz 2024-09-27 16:02:50 -07:00
Andrew Murray
485a062010 Update CHANGES.rst [ci skip] 2024-09-27 23:13:03 +10:00
Andrew Murray
fb8db83122 Updated harfbuzz to 10.0.1 on macOS 2024-09-27 17:35:06 +10:00
Andrew Murray
71da6d8952 Downgrade harfbuzz on OSS Fuzz 2024-09-27 16:37:10 +10:00
Andrew Murray
4ca2b92503 Use $IS_ALPINE instead of $MB_ML_LIBC 2024-09-27 14:59:27 +10:00
Alexander Karpinsky
b9d1768561
Catch AttributeError for BitmapImage.__photo
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-26 16:27:55 +04:00
Alexander Karpinsky
d133199391
Merge pull request #8386 from uploadcare/webp-capsule
Use Capsule for WEBP saving
2024-09-26 14:20:50 +04:00
Hugo van Kemenade
23070b721f
Merge pull request #8419 from radarhere/fribidi 2024-09-25 23:52:45 -07:00
Andrew Murray
d8e3572caa Updated fribidi to 1.0.16 2024-09-26 08:52:29 +10:00
Andrew Murray
7cf351cfc5 Added additional test 2024-09-25 20:37:41 +10:00
Andrew Murray
5d16eb73eb Update CHANGES.rst [ci skip] 2024-09-25 19:07:32 +10:00
Andrew Murray
24e9961c4f Support writing LONG8 offsets 2024-09-25 18:45:16 +10:00
Andrew Murray
0a99d63028 Use field size in AppendingTiffWriter 2024-09-25 18:39:39 +10:00
Andrew Murray
3f24276bf2
Merge pull request #8317 from Yay295/tiff_exif_multistrip
Fixed writing multiple StripOffsets to TIFF
2024-09-25 18:38:19 +10:00
Hugo van Kemenade
c1ba2d9eac
Merge pull request #8414 from radarhere/pypy 2024-09-24 18:07:11 -07:00
Hugo van Kemenade
9e48c271c7
Merge pull request #8415 from radarhere/harfbuzz 2024-09-24 18:06:43 -07:00
Andrew Murray
72144ec530 Updated harfbuzz to 10.0.1 2024-09-25 08:33:18 +10:00
Hugo van Kemenade
55a25aa4b1
Merge pull request #8411 from radarhere/harfbuzz 2024-09-24 14:27:33 -07:00
Andrew Murray
61c83a882c Updated macOS version to 10.15 for PyPy x86-64 2024-09-25 00:00:22 +10:00
Andrew Murray
3f8b496431 Updated harfbuzz to 10.0.0 2024-09-24 09:54:26 +10:00
Hugo van Kemenade
8d0a6d0bbf
Merge pull request #8407 from radarhere/libimagequant_lib64 2024-09-23 16:37:20 -07:00
Andrew Murray
9fe014876a Shared libraries may be located within usr/lib64 2024-09-23 16:56:49 +10:00
Hugo van Kemenade
731bcda904
Merge pull request #8396 from Yay295/common_test_script 2024-09-22 22:58:06 -07:00
Andrew Murray
fcae2f4bdf
Merge branch 'main' into common_test_script 2024-09-23 12:40:52 +10:00
Andrew Murray
e179d04a99
Merge pull request #8403 from nulano/freetype-fix
winbuild: Build freetype.vcxproj to fix passing in custom parameters
2024-09-23 12:39:53 +10:00
Hugo van Kemenade
efd6b84271
Merge pull request #8404 from radarhere/raqm
Updated raqm to 0.10.2
2024-09-22 17:44:00 -07:00
Andrew Murray
8adf15a6ee Updated raqm to 0.10.2 2024-09-23 09:29:16 +10:00
Nulano
6081640aa5 winbuild: Build freetype.vcxproj to fix passing in custom parameters. 2024-09-22 22:46:35 +02:00
Yay295
be3192ecd4 use .ci/test.sh in test-mingw.yml 2024-09-22 11:52:14 -05:00
Yay295
8fa5ba8443 add common windows ci test script 2024-09-22 11:52:11 -05:00
Aleksandr Karpinskii
11bcd5aaa9 Fix hasattr for ImageTk.PhotoImage.__del__ 2024-09-22 13:39:22 +04:00
Alexander Karpinsky
e86e5d7274
Merge pull request #146 from radarhere/webp-capsule
Added WebP saving test
2024-09-22 13:22:30 +04:00
Alexander Karpinsky
87414b3f59
Merge pull request #147 from radarhere/use-ptr
Use getim()
2024-09-22 13:18:59 +04:00
Andrew Murray
9f409e823b Use getim() 2024-09-21 17:09:23 +10:00
Andrew Murray
5d430eab25 Added release notes 2024-09-21 16:24:54 +10:00
Andrew Murray
aa22b24169 Load before trying to catch exceptions 2024-09-21 16:22:50 +10:00
Andrew Murray
75cb1c1b87 Test unsupported image mode 2024-09-21 16:02:23 +10:00
Andrew Murray
83c7043471 Rename variable, since alpha channel is not dropped 2024-09-21 15:54:27 +10:00
Yay295
8b6fa92cc8
rewrite some comments
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-20 08:39:11 -05:00
Andrew Murray
e57da68190 Check image value before use 2024-09-20 19:20:53 +10:00
Hugo van Kemenade
b557876ec3
Merge pull request #8398 from PavlNekrasov/fix/null-check-before-dereference-imIn 2024-09-20 12:19:36 +03:00
Hugo van Kemenade
59a155b12e
Merge pull request #8399 from radarhere/oss_fuzz 2024-09-20 12:19:10 +03:00
Andrew Murray
693a68b2bb Updated link to OSS Fuzz issues 2024-09-20 18:46:47 +10:00
pre-commit-ci[bot]
9424b1a892 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-09-19 19:59:15 +00:00
PavlNekrasov
46f2fa17be
fix dereference before checking for NULL in the ImagingTransformAffine function
The `imIn` pointer is checked for `NULL`, but it seems to be dereferenced before this check. You must first make sure that the pointer is not `NULL` before using it.
2024-09-19 22:53:45 +03:00
Andrew Murray
0f47ecd432 Update CHANGES.rst [ci skip] 2024-09-19 15:07:06 +10:00
Hugo van Kemenade
7ecb5bd8bb
Merge pull request #8395 from radarhere/ghostscript
Updated Ghostscript to 10.4.0
2024-09-19 07:14:38 +03:00
Andrew Murray
1392eab89b Updated Ghostscript to 10.4.0 2024-09-19 09:21:23 +10:00
Alexander Karpinsky
af521a1ce1
Merge branch 'main' into use-ptr 2024-09-18 22:24:46 +02:00
Yay295
362ffaf9b7 implement tiff exif multistrip support 2024-09-18 14:50:11 -05:00
Hugo van Kemenade
1ee3bd1d9e
Merge pull request #8390 from radarhere/tiff_exif_transpose
Use transposed size after opening for TIFF images
2024-09-18 22:35:01 +03:00
Hugo van Kemenade
743ddc7a58
Merge pull request #8338 from yngvem/improve-error-messages 2024-09-18 18:22:04 +03:00
Hugo van Kemenade
e33d8bb32b Generate and upload attestations to PyPI 2024-09-18 18:19:53 +03:00
Andrew Murray
9adb476f37
Rearranged text 2024-09-18 23:58:23 +10:00
Andrew Murray
629f5be52e In seek(), create core image at size needed for loading 2024-09-18 22:56:29 +10:00
Hugo van Kemenade
e80cada0f6
Merge pull request #8391 from radarhere/png_decompress 2024-09-18 15:31:18 +03:00
Andrew Murray
a92dca66bd Use raw size for striped tiles 2024-09-18 21:22:59 +10:00
Andrew Murray
a859695d9a
Rearranged code
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2024-09-18 21:17:49 +10:00
Andrew Murray
9135fd0fb2 Mention limit in error message 2024-09-18 20:56:55 +10:00
Andrew Murray
84e275d906 Loading does not change mode 2024-09-18 20:27:35 +10:00
Andrew Murray
f1e86965f6 Use transposed size after opening for TIFF images 2024-09-18 20:26:06 +10:00
Andrew Murray
08d9c89d8a
Merge pull request #8388 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.21.1
2024-09-17 18:49:59 +10:00
renovate[bot]
75e4d5a10d
Update dependency cibuildwheel to v2.21.1 2024-09-17 06:12:03 +00:00
Hugo van Kemenade
f85c8dc345
Merge pull request #8385 from radarhere/dib_hwnd
Cast Dib handle to int
2024-09-16 19:29:12 +03:00
Aleksandr Karpinskii
a988750595 Try fix bigendian 2024-09-16 16:37:39 +02:00
Aleksandr Karpinskii
1d5b330758 Move common conversion in _convert_frame 2024-09-16 15:57:35 +02:00
Aleksandr Karpinskii
bc97369039 Increase reference to the image while capsule is alive 2024-09-16 15:45:34 +02:00
Aleksandr Karpinskii
31d36e6b70 Use current frame for transparency detection 2024-09-16 11:04:00 +02:00
Aleksandr Karpinskii
d1f40a94ff Use Image.getim() instead of ImagingCore.ptr 2024-09-16 10:52:06 +02:00
Aleksandr Karpinskii
d8ef314205 Remove extra load() calls 2024-09-16 10:39:14 +02:00
Alexander Karpinsky
3b09f436bd
Merge pull request #145 from radarhere/use-ptr
Use getim()
2024-09-16 10:26:49 +02:00
Andrew Murray
1f3fe6f733 Use getim() 2024-09-16 10:21:17 +10:00
Andrew Murray
8a086edbe9 Cast handle to int 2024-09-16 08:23:26 +10:00
Andrew Murray
a60736381e
Merge pull request #8384 from radarhere/libjpeg_turbo
Updated libjpeg-turbo to 3.0.4
2024-09-16 07:32:26 +10:00
Andrew Murray
c01d2d0577 Updated libjpeg-turbo to 3.0.4 2024-09-15 21:57:45 +10:00
Hugo van Kemenade
b67f018c00
Merge pull request #8382 from radarhere/lint 2024-09-14 15:05:38 +03:00
Hugo van Kemenade
dacfbbdc3e
Merge pull request #8381 from radarhere/macos_python 2024-09-14 13:59:40 +03:00
Andrew Murray
88b3265a9c Lint: Run PT016 2024-09-14 20:59:02 +10:00
Andrew Murray
ad0091096f
Describe supported OS versions instead of unsupported
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-14 20:52:49 +10:00
Andrew Murray
10c118bb5c Added release notes for #8379 2024-09-14 19:58:57 +10:00
Hugo van Kemenade
586e6f86d7
Merge pull request #8379 from radarhere/macos_python 2024-09-14 11:01:05 +03:00
Andrew Murray
38e05731f5
Merge pull request #8378 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.21.0
2024-09-14 13:37:53 +10:00
Andrew Murray
a3d9529f04 Updated macOS deployment target for Python >= 3.12 on Intel to 10.13 2024-09-14 11:23:09 +10:00
renovate[bot]
5713159968
Update dependency cibuildwheel to v2.21.0 2024-09-13 23:52:11 +00:00
Alexander Karpinsky
6921f83629
Update docs/deprecations.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-13 22:54:16 +02:00
mergify[bot]
8d2bffee11
Merge pull request #8377 from radarhere/path_unused
Removed unused ImagePath variable
2024-09-13 14:33:05 +00:00
Andrew Murray
1557f7e36f Removed unused variable 2024-09-13 23:41:47 +10:00
Hugo van Kemenade
c9eb14e104
Merge pull request #7916 from radarhere/xz 2024-09-13 16:40:41 +03:00
Hugo van Kemenade
d6199a3352
Merge pull request #8376 from radarhere/macos 2024-09-13 11:10:56 +03:00
Andrew Murray
0f67dfc380 Change macos-14 to macos-latest 2024-09-13 15:31:37 +10:00
Hugo van Kemenade
e6cf27c5a8
Merge pull request #8375 from radarhere/libpng
Updated libpng to 1.6.44
2024-09-13 07:23:07 +03:00
Hugo van Kemenade
cb2b56f337
Merge pull request #8374 from radarhere/numpy
Test NumPy with musllinux wheels
2024-09-13 07:22:32 +03:00
Andrew Murray
5d8e891387 Updated libpng to 1.6.44 2024-09-13 10:52:36 +10:00
Andrew Murray
fea929bf10 Test NumPy with musllinux wheels 2024-09-13 07:34:56 +10:00
Andrew Murray
f6d5b48662
Merge pull request #8373 from lysnikolaou/install-numpy-pypi-wheels-test
Install numpy from PyPI when testing wheels
2024-09-13 06:23:29 +10:00
Lysandros Nikolaou
1ead7791c6
Remove comment 2024-09-12 16:34:29 +03:00
Lysandros Nikolaou
c9f88890a5
Install numpy from PyPI when testing wheels 2024-09-12 14:52:24 +03:00
Hugo van Kemenade
3fd6b7c072
Merge pull request #8372 from radarhere/numpy 2024-09-12 14:47:49 +03:00
Hugo van Kemenade
b19a51b63e
Merge pull request #8371 from radarhere/wheels 2024-09-12 12:59:55 +03:00
Andrew Murray
8336852b61 Install NumPy from PyPI for free threaded job 2024-09-12 18:52:07 +10:00
Andrew Murray
fab19b0af8 Windows wheels are now grouped with the others 2024-09-12 16:57:28 +10:00
Andrew Murray
aa7dfe3a56 Update CHANGES.rst [ci skip] 2024-09-12 16:16:21 +10:00
Hugo van Kemenade
575f574f5c
Merge pull request #8369 from radarhere/stroke_width_float 2024-09-12 08:53:41 +03:00
Hugo van Kemenade
3023cf968d
Merge pull request #8370 from radarhere/comments 2024-09-11 22:54:41 +03:00
Alexander Karpinsky
a2988da0d2
ImageCore → ImagingCore
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-11 19:55:07 +04:00
Yngve Mardal Moe
9ba4e10a16
Merge branch 'main' into improve-error-messages 2024-09-11 17:11:52 +02:00
Yngve Mardal Moe
32c514d24c
Update src/PIL/ImageFont.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-11 14:54:53 +02:00
Yngve Mardal Moe
77503156b1
Update src/PIL/ImageFont.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-09-11 14:22:45 +02:00
Aleksandr Karpinskii
4a284a78c5 Remove weird comments 2024-09-11 20:40:46 +10:00
Andrew Murray
01ba1e2252 Accept float stroke widths 2024-09-11 19:53:52 +10:00
pre-commit-ci[bot]
e4f13020e1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-09-11 08:33:12 +00:00
Yngve Mardal Moe
d2efd7dd5f
Update src/PIL/ImageFont.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-11 10:32:42 +02:00
Hugo van Kemenade
cb2a0c40f3
Merge pull request #8368 from radarhere/libffi
Removed libffi-dev
2024-09-11 08:00:18 +03:00
Andrew Murray
6ade6873de Removed libffi-dev 2024-09-11 08:13:41 +10:00
Yngve Mardal Moe
7d223fbcaa
Merge pull request #2 from radarhere/improve-error-messages
Sort extensions alphabetically in error message
2024-09-10 20:45:53 +02:00
Andrew Murray
bc4c57e9ea Update CHANGES.rst [ci skip] 2024-09-10 22:39:47 +10:00
Hugo van Kemenade
44b2f5ef32
Merge pull request #8367 from radarhere/releasenotes 2024-09-10 15:31:07 +03:00
Hugo van Kemenade
e91aedb65d
Merge pull request #8352 from radarhere/scale 2024-09-10 14:38:33 +03:00
Hugo van Kemenade
302b63f1c3
Merge pull request #8366 from radarhere/gif_rgba 2024-09-10 14:37:03 +03:00
Andrew Murray
5c67178c95 Added release notes for #8199 2024-09-10 21:32:35 +10:00
Andrew Murray
fea3e0dd5f Added release notes for #8213 2024-09-10 21:32:35 +10:00
Andrew Murray
54c5b532c5 Added release notes for #8286 2024-09-10 21:32:20 +10:00
Andrew Murray
8d508406ad Update CHANGES.rst [ci skip] 2024-09-10 20:55:34 +10:00
Andrew Murray
5cb736d953
Merge branch 'main' into scale 2024-09-10 20:39:04 +10:00
Hugo van Kemenade
4e5fd27dbe
Merge pull request #8364 from radarhere/isimagetype 2024-09-10 13:35:20 +03:00
Andrew Murray
d522e0a5c0 Improved handling of RGBA palettes when saving GIF images 2024-09-10 18:50:06 +10:00
Andrew Murray
adb6918214 Use isinstance to detect Image instances 2024-09-10 16:20:58 +10:00
Andrew Murray
e0845f06d8 Deprecate isImageType 2024-09-10 16:20:52 +10:00
Andrew Murray
9a42099dc3
Merge branch 'main' into openjpeg 2024-09-10 16:01:54 +10:00
Hugo van Kemenade
22c333289e
Merge pull request #8361 from radarhere/harfbuzz 2024-09-10 09:00:18 +03:00
Andrew Murray
d25d12f792 Removed custom build_openjpeg 2024-09-10 11:29:52 +10:00
Andrew Murray
be01d536c6 Update CHANGES.rst [ci skip] 2024-09-09 15:22:27 +10:00
Hugo van Kemenade
452b445d4f
Merge pull request #8358 from radarhere/lab 2024-09-09 08:20:29 +03:00
Andrew Murray
63f398bc12
Merge pull request #8194 from uploadcare/optimize-getbbox
Optimize getbbox() and getextrema() routines
2024-09-09 15:08:11 +10:00
Andrew Murray
a3c7912b98
Merge branch 'main' into scale 2024-09-09 13:22:10 +10:00
Andrew Murray
c9dc34ae8d Update CHANGES.rst [ci skip] 2024-09-09 13:19:37 +10:00
Andrew Murray
906f93275e
Merge pull request #8356 from hugovk/deprecate-freetype-2.9.0
Deprecate support for FreeType 2.9.0
2024-09-09 13:18:13 +10:00
Andrew Murray
608a5e83c0 Updated harfbuzz to 9.0.0, except on manylinux2014 2024-09-09 12:56:28 +10:00
Hugo van Kemenade
012270d1c9
Merge pull request #8360 from python-pillow/renovate/github-actions 2024-09-08 22:53:58 +03:00
Aleksandr Karpinskii
4d271c8ec8 import_frame for anim_encoder_add 2024-09-08 18:29:38 +04:00
Aleksandr Karpinskii
0962b468b7 ImagingSectionEnter for WebPAnimEncoder 2024-09-08 18:29:38 +04:00
Aleksandr Karpinskii
8bb3134b1d call _webp.WebPEncode with ptr 2024-09-08 18:29:38 +04:00
Aleksandr Karpinskii
0a8e6dbedb Use im.has_transparency_data for webp._save_all
Also:
remove _VALID_WEBP_MODES and _VALID_WEBP_LEGACY_MODES consts
RGBX is not faster RGB since demands more bandwidth
Do not convert to str paths in tests
2024-09-08 18:29:38 +04:00
Alexander Karpinsky
bd14915364
Merge pull request #144 from radarhere/use-ptr
Use CapsuleType hint in Python >= 3.13
2024-09-08 18:03:26 +04:00
Alexander Karpinsky
4318834775
Merge branch 'use-ptr' into use-ptr 2024-09-08 17:59:35 +04:00
Aleksandr Karpinskii
d29fa73ea6 Move new_block to module 2024-09-08 17:30:24 +04:00
Aleksandr Karpinskii
934ae12ed5 rename PyCapsule -> Capsule 2024-09-08 17:30:24 +04:00
Aleksandr Karpinskii
882ac783eb Use PyCapsule in _imagingft 2024-09-08 17:30:24 +04:00
Aleksandr Karpinskii
ee65b305b1 Use PyCapsule in _imagingtk 2024-09-08 17:30:24 +04:00
Aleksandr Karpinskii
cb3a4e6a00 Remove legacy 1-bit api, fix AttributeError
PytestUnraisableExceptionWarning: Exception ignored in: <function PhotoImage.__del__>
AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'
2024-09-08 17:30:24 +04:00
Aleksandr Karpinskii
5428e3568e Deprecate ImageCore.id and ImageCore.unsafe_ptrs 2024-09-08 17:30:23 +04:00
Aleksandr Karpinskii
7f48567002 Use s# in PyArg_ParseTuple 2024-09-08 17:30:23 +04:00
Aleksandr Karpinskii
f916b5dc87 Use PyCapsule in _imagingmorph 2024-09-08 17:30:23 +04:00
Aleksandr Karpinskii
56bc6a1a71 Use PyCapsule in _imagingcms 2024-09-08 17:30:23 +04:00
Aleksandr Karpinskii
fe002a7260 Use PyCapsule in _imagingmath 2024-09-08 17:30:23 +04:00
Andrew Murray
72bc56b319
Merge branch 'main' into imagecms_core 2024-09-08 23:21:25 +10:00
Hugo van Kemenade
f30eefaae2
Merge pull request #8354 from radarhere/type_hint 2024-09-08 16:19:08 +03:00
Hugo van Kemenade
2f13c4588d
Fix underline
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-08 16:17:13 +03:00
renovate[bot]
8c738f6427
Update deadsnakes/action action to v3.2.0 2024-09-08 13:00:15 +00:00
Hugo van Kemenade
1f2de52a6c
Group 11.0.0 deprecations (#127) 2024-09-08 15:07:22 +03:00
Andrew Murray
6231453895 Group 11.0.0 deprecations 2024-09-08 21:53:08 +10:00
Andrew Murray
89c790f2b0 Update CHANGES.rst [ci skip] 2024-09-08 21:38:21 +10:00
Andrew Murray
579a5a2ed1
Merge pull request #8355 from radarhere/unused_tiff
Removed unused TiffImagePlugin IFD_LEGACY_API
2024-09-08 21:36:44 +10:00
Andrew Murray
8b3ef3784b Moved Buffer into _typing 2024-09-08 08:30:30 +10:00
Andrew Murray
547832fd59 Use tempfile.NamedTemporaryFile 2024-09-07 19:49:21 +10:00
Andrew Murray
a3d23165b9 Update CHANGES.rst [ci skip] 2024-09-07 19:40:29 +10:00
Hugo van Kemenade
2c02146cf4
Use type hints and fix CVE role
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-09-07 12:32:30 +03:00
Hugo van Kemenade
f06b851616
Merge pull request #8350 from zakajd/jamil/doubleexif 2024-09-07 12:31:19 +03:00
Andrew Murray
dbe979d032 Sort extensions alphabetically in error message 2024-09-07 19:09:01 +10:00
Andrew Murray
e14072e973 Added further detail 2024-09-07 19:08:07 +10:00
Andrew Murray
1105256f2b Added type hints to setup.py 2024-09-07 18:25:44 +10:00
Hugo van Kemenade
a838da7406
Merge pull request #8002 from Yay295/patch-1
Use (void) for empty function parameters
2024-09-07 08:37:50 +03:00
Andrew Murray
a6ca45aea6 Use (void) to indicate no parameters 2024-09-07 00:01:25 -05:00
Andrew Murray
6f9128bfaf Updated type hint 2024-09-07 14:32:46 +10:00
Andrew Murray
8dcf229ea1 Merge branch 'main' into use-ptr 2024-09-07 14:24:18 +10:00
Andrew Murray
de3c6fa295 Support converting more modes to LAB by converting to RGBA first 2024-09-07 12:14:30 +10:00
Jamil Zakirov
2f25dbce06
Merge branch 'main' into jamil/doubleexif 2024-09-06 20:12:33 +03:00
Hugo van Kemenade
d3c1d99d00 Deprecate support for FreeType 2.9.0 2024-09-06 14:51:30 +03:00
Andrew Murray
93a0bf0276 Added type hints to TiffImagePlugin _save 2024-09-06 21:33:30 +10:00
Andrew Murray
94315f87c3 Removed unused IFD_LEGACY_API 2024-09-06 19:13:35 +10:00
Andrew Murray
06c331af5d Added type hints to frombuffer 2024-09-06 15:16:59 +10:00
Andrew Murray
23c461e431 Handle duplicate exif header
Co-authored-by: Jamil Zakirov <djamilzak@gmail.com>
2024-09-06 11:56:06 +10:00
Andrew Murray
a6f5f4dd43 Deprecate setting size to (width, height, scale) 2024-09-06 11:42:56 +10:00
Andrew Murray
e625f73119 Added scale argument to IcnsImageFile load() 2024-09-06 11:40:45 +10:00
Hugo van Kemenade
6377321625
Merge pull request #8351 from radarhere/type_hint 2024-09-05 17:35:55 +03:00
Hugo van Kemenade
a2be72d8dd
Merge pull request #8349 from AryazE/type_comparison 2024-09-05 17:34:49 +03:00
Andrew Murray
31638ee29a Added type hints 2024-09-05 23:14:17 +10:00
Andrew Murray
f7f3af799b Update CHANGES.rst [ci skip] 2024-09-05 22:53:48 +10:00
Aryaz Eghbali
282f740141
Merge branch 'python-pillow:main' into type_comparison 2024-09-05 13:31:36 +02:00
Aryaz Eghbali
a56ac4faa8 Canonical type checking 2024-09-05 13:29:19 +02:00
Hugo van Kemenade
965cb518a2
Merge pull request #8347 from radarhere/boxblur 2024-09-05 11:23:26 +03:00
Andrew Murray
1270043682 Return early if either width or height is zero 2024-09-05 15:46:54 +10:00
Aleksandr Karpinskii
8833548e55 Move new_block to module 2024-09-05 01:04:35 +04:00
Hugo van Kemenade
eaeda4a6be
Merge pull request #8339 from radarhere/type_hint 2024-09-04 14:57:01 +03:00
Hugo van Kemenade
8aa1e9209b
Merge pull request #8336 from radarhere/type_hint_imagefile 2024-09-04 14:56:23 +03:00
Hugo van Kemenade
06a9fcbff4
Merge pull request #8308 from radarhere/bytes 2024-09-04 14:52:57 +03:00
Hugo van Kemenade
a6cf6333a7
Merge pull request #8297 from radarhere/fuzz 2024-09-04 14:52:07 +03:00
Hugo van Kemenade
95c867dabf
Merge pull request #8286 from radarhere/xmp 2024-09-04 14:50:15 +03:00
Hugo van Kemenade
1dffc09c28
Merge pull request #8261 from radarhere/imagefont 2024-09-04 14:49:23 +03:00
Hugo van Kemenade
7e838bf409
Merge pull request #8256 from radarhere/jpeg2000_rgba 2024-09-04 14:48:01 +03:00
Hugo van Kemenade
64d96614a9
Merge pull request #8237 from radarhere/gif_expand 2024-09-04 14:47:25 +03:00
Hugo van Kemenade
9308f11ebe
Merge pull request #8231 from radarhere/ppm_i16 2024-09-04 14:46:31 +03:00
Hugo van Kemenade
e2c13571c3
Merge pull request #8230 from radarhere/exif_get_ifd 2024-09-04 14:46:18 +03:00
Hugo van Kemenade
eb1dbbf787
Merge pull request #8180 from radarhere/skip_truncated_mask 2024-09-04 14:36:46 +03:00
Hugo van Kemenade
a4c4b11a44
Merge pull request #8344 from radarhere/harfbuzz 2024-09-04 12:22:58 +03:00
Andrew Murray
be34a7da4b Save xmp from info 2024-09-04 19:20:56 +10:00
Hugo van Kemenade
7afa789c5d
Merge pull request #8284 from radarhere/libimagequant 2024-09-04 10:48:13 +03:00
Hugo van Kemenade
9e2ed5886b
Merge pull request #8302 from radarhere/freetype 2024-09-04 10:47:43 +03:00
Andrew Murray
63b1196622 Updated harfbuzz to 9.0.0 2024-09-04 16:13:19 +10:00
Aleksandr Karpinskii
bf11639626 rename PyCapsule -> Capsule 2024-09-03 11:55:18 +04:00
Andrew Murray
61dade88e8 Update CHANGES.rst [ci skip] 2024-09-03 17:00:59 +10:00
Hugo van Kemenade
d636b804d7
Merge pull request #8343 from radarhere/jpeg2000_colorspace 2024-09-03 09:49:13 +03:00
Andrew Murray
55f49393af Treat unknown colorspace as unspecified 2024-09-03 09:55:06 +10:00
Yngve Mardal Moe
822f525e82
Merge branch 'main' into improve-error-messages 2024-09-02 21:04:41 +02:00
Hugo van Kemenade
59f37db65f
Merge pull request #8342 from python-pillow/pre-commit-ci-update-config 2024-09-02 21:25:54 +03:00
pre-commit-ci[bot]
6b59e3822f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.0 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.0...v0.6.3)
- [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.1...0.29.2)
2024-09-02 17:26:20 +00:00
Aleksandr Karpinskii
147f75ee93 Use PyCapsule in _imagingft 2024-09-02 15:09:25 +04:00
Aleksandr Karpinskii
920c4ac447 Use PyCapsule in _imagingtk 2024-09-02 15:09:25 +04:00
Aleksandr Karpinskii
c69ad03af0 Remove legacy 1-bit api, fix AttributeError
PytestUnraisableExceptionWarning: Exception ignored in: <function PhotoImage.__del__>
AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'
2024-09-02 05:14:03 +04:00
Aleksandr Karpinskii
7435a06cbb Deprecate ImageCore.id and ImageCore.unsafe_ptrs 2024-09-02 05:14:03 +04:00
Aleksandr Karpinskii
f246be7b13 Use s# in PyArg_ParseTuple 2024-09-02 02:00:07 +04:00
Aleksandr Karpinskii
2fcab263d3 Use PyCapsule in _imagingmorph 2024-09-02 01:43:38 +04:00
Aleksandr Karpinskii
a9798e78af Use PyCapsule in _imagingcms 2024-09-02 01:36:38 +04:00
Aleksandr Karpinskii
2303c063cb Use PyCapsule in _imagingmath 2024-09-02 01:24:51 +04:00
Yngve Mardal Moe
ef51e7a1c7 Fix wrong indentation for assert 2024-09-01 19:49:44 +00:00
Yngve Mardal Moe
3bb180a254
Merge pull request #1 from radarhere/improve-error-messages
Renamed variable for first part of splitext to root
2024-09-01 21:47:08 +02:00
Andrew Murray
dbe78a0d21
Merge branch 'improve-error-messages' into improve-error-messages 2024-09-01 16:19:11 +10:00
Yngve Mardal Moe
fcca8a3059 Fix accidental indent 2024-08-31 19:03:11 +00:00
Andrew Murray
e0a75b6d69 Renamed variable for first part of splitext to root 2024-08-31 20:51:37 +10:00
Andrew Murray
95194a2050 Use tempfile.NamedTemporaryFile 2024-08-31 20:51:26 +10:00
Andrew Murray
e47b181084 Added type hints 2024-08-31 18:48:16 +10:00
Yngve Mardal Moe
cdadf931e3 Improve error messages 2024-08-30 20:50:56 +00:00
Andrew Murray
8699f13a74 Require fp parameter 2024-08-30 22:28:13 +10:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Hugo van Kemenade
44c2ff3f0b
Merge pull request #8335 from hugovk/rm-pypy3.9 2024-08-29 14:44:26 +03:00
Hugo van Kemenade
d92603a0c6 Drop support for EOL PyPy3.9 2024-08-29 10:58:53 +03:00
Yay295
0c335d239b use (void) for empty function parameters 2024-08-28 08:08:08 -05:00
Andrew Murray
bdc53f6c4d Expand C image to match GIF frame image size 2024-08-28 18:33:43 +10:00
Hugo van Kemenade
1bf9fb4e40
Merge pull request #8279 from radarhere/type_hint_init 2024-08-28 10:07:27 +03:00
Andrew Murray
3c3b6ea28a
Merge pull request #8334 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.11.2
2024-08-28 11:41:20 +10:00
renovate[bot]
ae59ea4899
Update dependency mypy to v1.11.2 2024-08-28 00:52:05 +00:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Hugo van Kemenade
56e3147403
Merge pull request #8331 from radarhere/imageqt 2024-08-27 22:25:39 +03:00
Andrew Murray
7171e1c21e
Merge pull request #8332 from radarhere/ghostscript
Corrected GitHub Actions Windows Ghostscript path
2024-08-27 19:36:56 +10:00
Andrew Murray
65172db28d Corrected Ghostscript path 2024-08-27 19:04:46 +10:00
Andrew Murray
53bbfea763 Added type hints 2024-08-26 23:49:03 +10:00
Andrew Murray
e3ffa380ab
Merge branch 'main' into exif_get_ifd 2024-08-25 00:05:02 +10:00
Andrew Murray
4721c31b19
Merge pull request #8319 from radarhere/type_hint
Added type hints
2024-08-24 23:54:19 +10:00
Andrew Murray
cfb093af39 Update CHANGES.rst [ci skip] 2024-08-24 23:15:35 +10:00
Andrew Murray
dcd77b57d8
Merge pull request #8322 from radarhere/webp
Updated error message when saving WebP with invalid width or height
2024-08-24 23:12:07 +10:00
pre-commit-ci[bot]
a3e3639a59 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-24 11:27:43 +00:00
Andrew Murray
658b60e3a3
Include units
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-08-24 21:26:56 +10:00
Hugo van Kemenade
f15034c3b1
Merge pull request #8326 from radarhere/numpy 2024-08-24 14:26:52 +03:00
Andrew Murray
8aa58e320f Rename _E to ImagePointTransform 2024-08-24 21:25:41 +10:00
Andrew Murray
6e9518b88d Added type hint to example code 2024-08-24 19:18:25 +10:00
Hugo van Kemenade
b6f90c4732
Merge pull request #8325 from radarhere/defusedxml
Catch defusedxml warnings
2024-08-24 08:35:38 +03:00
Andrew Murray
e382ebed3a Remove warning if NumPy failed to raise an error during conversion 2024-08-23 19:38:07 +10:00
Andrew Murray
fed9168252 Catch defusedxml warnings 2024-08-23 18:48:28 +10:00
Andrew Murray
d49ea37811 Include limit in error message 2024-08-22 17:50:42 +10:00
Andrew Murray
f368ccc06e
Merge branch 'main' into webp 2024-08-22 12:36:17 +10:00
Jeffrey 'Alex' Clark
d6cfebd016 Revert "Add/update project-makefile files"
This reverts commit 388fc78e36.

Sorry for the noise (4/4)!
2024-08-21 21:17:29 -04:00
Jeffrey 'Alex' Clark
1143bffe1a Revert "Add/update project-makefile files"
This reverts commit 776eb9e9b7.

Sorry for the noise (3/4)!
2024-08-21 21:17:06 -04:00
Jeffrey 'Alex' Clark
e19841afa4 Revert "Add/update project-makefile files"
This reverts commit 837af6420d.

Sorry for the noise (2/4)!
2024-08-21 21:16:35 -04:00
Jeffrey 'Alex' Clark
0f64d08e64 Revert "Add/update project-makefile files"
This reverts commit 575fad2472.

Sorry for the noise (1/4)!
2024-08-21 21:16:02 -04:00
Andrew Murray
132663a881 Updated error message for invalid width or height 2024-08-22 07:36:52 +10:00
Jeffrey 'Alex' Clark
575fad2472 Add/update project-makefile files 2024-08-21 17:02:53 -04:00
Jeffrey 'Alex' Clark
837af6420d Add/update project-makefile files 2024-08-21 16:43:28 -04:00
Jeffrey 'Alex' Clark
776eb9e9b7 Add/update project-makefile files 2024-08-21 16:08:26 -04:00
Jeffrey 'Alex' Clark
388fc78e36 Add/update project-makefile files 2024-08-21 15:32:06 -04:00
Andrew Murray
f0d8fd3059
Merge pull request #8310 from Yay295/tiff_cleanup
Move repeated code to private helper function
2024-08-21 13:48:18 +10:00
Andrew Murray
e6e5ef5c5f Added type hints 2024-08-21 08:05:02 +10:00
Andrew Murray
2ed8502d12 Use ipython PrettyPrinter, rather than custom class 2024-08-20 22:13:52 +10:00
Andrew Murray
d1d567bb59 Do not use sys.stdout in PSDraw 2024-08-20 22:13:52 +10:00
Hugo van Kemenade
f8d3e36176
Merge pull request #8315 from radarhere/iptc
Get IPTC info from tag_v2
2024-08-20 13:52:55 +03:00
Hugo van Kemenade
0ec1153a62
Merge pull request #8318 from radarhere/brew
Uninstall gradle and maven on macOS 13
2024-08-19 14:41:21 +03:00
Andrew Murray
27ca30d50e
Merge pull request #8309 from hugovk/flake8-pytest-style
Lint: run more flake8-pytest-style
2024-08-19 21:16:21 +10:00
Andrew Murray
2467369c13 Uninstall gradle and maven on macOS 13 2024-08-19 20:50:45 +10:00
Yay295
cd76b48533 move repeated code to private helper function 2024-08-18 17:02:45 -05:00
Andrew Murray
f26b47595b Get IPTC info from tag_v2 2024-08-19 06:56:31 +10:00
Hugo van Kemenade
5747267eb3 Fix PT018: Assert only one thing 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
5c282d0299 Fix PT014: duplicate test cases in pytest.mark.parametrize 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
6f506d2ae3 Run all flake8-pytest-style except rules some that fail 2024-08-17 11:46:15 +03:00
Hugo van Kemenade
eeb3d04843
Merge pull request #8306 from radarhere/tag_v2 2024-08-16 12:56:16 +03:00
Andrew Murray
5cb79c6a69 Check object is bytes 2024-08-16 18:31:07 +10:00
Andrew Murray
617699ffc7 Log value from tag_v2 2024-08-16 12:03:02 +10:00
Andrew Murray
0a03b77daf Update CHANGES.rst [ci skip] 2024-08-16 06:36:31 +10:00
Hugo van Kemenade
0633257be3
Merge pull request #8285 from radarhere/type_hint 2024-08-15 23:25:50 +03:00
Hugo van Kemenade
394e850db8
Merge pull request #8304 from radarhere/rounded_rectangle 2024-08-15 16:06:42 +03:00
Andrew Murray
d5e3f6b516 If left and right sides meet, do not draw rectangle to fill gap 2024-08-15 14:46:23 +10:00
Andrew Murray
d4c72da6b2 Added type hints to example code 2024-08-15 14:10:31 +10:00
Andrew Murray
8afb7ddb4e Added type hints 2024-08-15 08:08:43 +10:00
Andrew Murray
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
8737709781 Added return type to ImageFile.load() 2024-08-15 07:30:00 +10:00
Andrew Murray
b14142462e Update CHANGES.rst [ci skip] 2024-08-15 05:11:00 +10:00
Andrew Murray
e4e2cd6564 Updated comments 2024-08-14 15:28:34 +04:00
Andrew Murray
2b6c5a27a1 Added braces 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
8256b9bb7f Correct left boundary on the second stage 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
5fb44ab694 This check is useless, since moved after the first stage 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
6a87df2c1f clang-format 2024-08-14 15:28:34 +04:00
Aleksandr Karpinskii
4cf5688cfd Optimize getbbox() and getextrema() 2024-08-14 15:28:34 +04:00
Alexander Karpinsky
35a70e4b97
Merge pull request #8213 from uploadcare/webp-require-anim
Remove WebP support without anim, mux/demux, and with buggy alpha
2024-08-14 15:27:23 +04:00
Alexander Karpinsky
4d544da5c6
Merge pull request #142 from radarhere/webp-require-anim
Suggestions for deprecating older WebP versions
2024-08-14 12:47:17 +04:00
Andrew Murray
359d7592c7 Test deprecation warnings 2024-08-14 18:41:39 +10:00
Andrew Murray
45552b5b4f Updated documentation 2024-08-14 18:36:06 +10:00
Andrew Murray
66319fcce7 Animation support is no longer conditionally enabled 2024-08-14 18:35:59 +10:00
Andrew Murray
ba82dff7bc Updated test name 2024-08-14 18:35:53 +10:00
Andrew Murray
c7e6289b36 Use relative import 2024-08-13 19:07:01 +10:00
Andrew Murray
f3aec6dd38 Simplified code 2024-08-13 19:05:32 +10:00
Andrew Murray
5546994828 Removed unnecessary variable 2024-08-13 19:03:14 +10:00
Alexander Karpinsky
93ce9ce004
Update features type
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-08-13 09:52:07 +04:00
Andrew Murray
924df9e60b Moved line after early return
Improve compiler advice

Update src/PIL/features.py
2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
6180abc75c Remove WebP versions notes from docs 2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
56ca359c65 Bring back removed features, add deprecations and Release notes 2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
a3468996c0 Remove webp animations flags and conditions
Removed:
_webp.WebPDecode
_webp.HAVE_WEBPANIM
features.webp_anim
2024-08-13 09:33:20 +04:00
Aleksandr Karpinskii
9bed5b4264 Remove _webp.WebPDecoderBuggyAlpha and _webp.HAVE_TRANSPARENCY 2024-08-13 09:26:04 +04:00
Aleksandr Karpinskii
c1e8375af8 Require webpmux and webpdemux 2024-08-13 09:24:52 +04:00
Andrew Murray
f801649513 Updated freetype to 2.13.3 2024-08-13 06:11:32 +10:00
Alexander Karpinsky
a5b415bef5
Merge pull request #8298 from uploadcare/missing-CMYK;16B
Add missing TIFF CMYK;16B reader
2024-08-11 16:09:14 +04:00
Aleksandr Karpinskii
0d79a38e77 Add missing TIFF CMYK;16B reader 2024-08-11 15:14:29 +04:00
Andrew Murray
de441ee091 Updated to Python 3.10 2024-08-10 21:05:14 +10:00
Andrew Murray
4d0e8e74b4 Use im property 2024-08-10 10:20:08 +10:00
Hugo van Kemenade
c8b5f0b9ea
Merge pull request #8293 from radarhere/quant
Fix undefined variable
2024-08-10 01:05:05 +03:00
Andrew Murray
e938283eb9 Allow docs to build without lcms2 2024-08-09 20:56:14 +10:00
Andrew Murray
8da4883234 Merge branch 'main' into type_hint_init 2024-08-09 14:21:46 +10:00
Hugo van Kemenade
082e3234a1
Merge pull request #8295 from akx/ruff-enforce-parametrize-style 2024-08-08 15:12:43 +03:00
Aarni Koskela
1c998d7f7c
Update pyproject.toml
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-08-08 14:10:18 +03:00
Hugo van Kemenade
c6867187bd
Merge pull request #8290 from akx/parametrize-lut-tests 2024-08-07 15:12:56 +03:00
Hugo van Kemenade
2e23dc5c03
Merge pull request #8294 from radarhere/warning 2024-08-07 14:19:09 +03:00
Aarni Koskela
8ca53b312d Enforce CSV parametrize names style 2024-08-07 12:27:20 +03:00
Andrew Murray
a06529a3a8 Added channels parameter 2024-08-07 12:13:05 +03:00
Andrew Murray
5c4aeaa329 Concatenate parameters into single string 2024-08-07 12:13:05 +03:00
Andrew Murray
4fddc625f1 Corrected lut mode 2024-08-07 12:13:05 +03:00
Andrew Murray
7581b48706 Fixed sign comparison warning 2024-08-07 18:44:43 +10:00
Andrew Murray
11b4df3ff9
Merge pull request #8289 from akx/mypy-fixes
Move auxiliary mypy requirements to a requirements file
2024-08-07 18:05:06 +10:00
Aarni Koskela
59c69f8d71 Move auxiliary mypy requirements to a requirements file
For easier installation outside tox
2024-08-07 09:37:21 +03:00
Andrew Murray
70298d3be9 Fix undefined variable 2024-08-07 06:38:46 +10:00
Aarni Koskela
9d6d16d5cc Parametrize some color_lut tests for DRYness 2024-08-06 15:25:23 +03:00
Hugo van Kemenade
f2469cb1bf
Merge pull request #8288 from radarhere/quant
Removed unused variable
2024-08-06 08:21:00 +03:00
Andrew Murray
5e8dbbbf9e Removed unused variable 2024-08-06 13:32:46 +10:00
Andrew Murray
13c00bab86 Updated libimagequant to 4.3.3 2024-08-06 11:16:57 +10:00
Andrew Murray
1fd4d14782 Update CHANGES.rst [ci skip] 2024-08-06 06:31:47 +10:00
Andrew Murray
c056406f21 Added comments to explain overhead_len 2024-08-06 06:19:15 +10:00
Hugo van Kemenade
8696974cef
Merge pull request #8287 from python-pillow/pre-commit-ci-update-config 2024-08-05 21:43:02 +03:00
pre-commit-ci[bot]
554f8bb23a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.0...v0.5.6)
- [github.com/python-jsonschema/check-jsonschema: 0.28.6 → 0.29.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.6...0.29.1)
- [github.com/tox-dev/pyproject-fmt: 2.1.3 → 2.2.1](https://github.com/tox-dev/pyproject-fmt/compare/2.1.3...2.2.1)
2024-08-05 17:37:42 +00:00
Andrew Murray
d49884e40c Raise ValueError is XMP data is too long 2024-08-05 21:48:36 +10:00
Andrew Murray
2722cfd72b Added writing XMP bytes to JPEG 2024-08-05 20:20:24 +10:00
Andrew Murray
71876cfd2a
Merge pull request #8282 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.20.0
2024-08-04 19:51:10 +10:00
renovate[bot]
69076fa3d9
Update dependency cibuildwheel to v2.20.0 2024-08-04 06:21:13 +00:00
Andrew Murray
6897566701
Merge pull request #8280 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.11.1
2024-08-03 13:40:35 +10:00
renovate[bot]
3e93b806cc
Update dependency mypy to v1.11.1 2024-08-03 02:29:19 +00:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Alexander Karpinsky
d8447de24d
Merge pull request #8211 from uploadcare/remove-c-flags
Remove all WITH_* flags from _imaging.c and other flags
2024-08-02 16:10:10 +04:00
Hugo van Kemenade
126af363af
Merge pull request #8265 from radarhere/imagedraw2 2024-08-01 14:50:43 +03:00
Hugo van Kemenade
5517232205
Merge pull request #8238 from lysnikolaou/arena-thread-safe 2024-08-01 12:31:56 +03:00
Andrew Murray
95cc0b1109
Merge pull request #8274 from radarhere/unused_jpeg
Deprecate JpegImageFile huffman_ac and huffman_dc
2024-08-01 17:43:01 +10:00
Andrew Murray
488e1982bd Added removal version and date 2024-08-01 16:29:46 +10:00
Andrew Murray
e6fd8359d3 Deprecate huffman_ac and huffman_dc 2024-08-01 12:27:45 +10:00
Hugo van Kemenade
4df4df2a18
Merge pull request #8270 from radarhere/type_hint 2024-07-30 14:42:41 +03:00
Andrew Murray
accfaf1c09 Added type hints 2024-07-30 20:20:09 +10:00
Andrew Murray
955854728a Pass start and end to arc, chord and pieslice 2024-07-30 09:10:11 +10:00
Andrew Murray
b84e2a9935 Do not pass outline to arc 2024-07-30 09:10:11 +10:00
Andrew Murray
db5c4fbb2c Include required arguments 2024-07-30 09:10:09 +10:00
Hugo van Kemenade
5833a8b18e
Merge pull request #8268 from radarhere/type_hint 2024-07-29 18:44:47 +03:00
Andrew Murray
6420f73613 Added type hints 2024-07-29 23:46:07 +10:00
Aleksandr Karpinskii
302962dae1 Updated comments
by @radarhere, lost during rebase
2024-07-28 17:20:14 +04:00
Aleksandr Karpinskii
a6d83ec9cc Add relesenotes 2024-07-28 17:09:31 +04:00
Aleksandr Karpinskii
d00fb87fa3 Rename Not NO_OUTPUT to DEBUG, remove TEST_MERGESORT and TEST_SPLIT* flags 2024-07-28 16:46:28 +04:00
Aleksandr Karpinskii
dc53356c1a Not needed since memcpy is used here 2024-07-28 16:24:51 +04:00
Aleksandr Karpinskii
cfce566d17 codestyle 2024-07-28 16:24:51 +04:00
Aleksandr Karpinskii
a03033e7f3 Remove all WITH_* flags from _imaging.c 2024-07-28 16:24:51 +04:00
Hugo van Kemenade
7b8a031ec1
Merge pull request #8267 from radarhere/type_hint 2024-07-28 11:22:14 +03:00
Andrew Murray
c85eb0cae5 Added type hints 2024-07-28 12:53:02 +10:00
Hugo van Kemenade
8f62fbdf44
Merge pull request #8263 from radarhere/type_hint 2024-07-26 11:06:38 +03:00
Andrew Murray
046285ac5d Added type hints 2024-07-26 16:42:28 +10:00
Hugo van Kemenade
7bd28952f1
Merge pull request #8262 from radarhere/type_hint 2024-07-25 22:10:38 +03:00
Andrew Murray
726cdf5eed Added type hints 2024-07-25 22:55:49 +10:00
Andrew Murray
68328ccc6a Require font parameter for truetype() 2024-07-25 18:52:04 +10:00
Andrew Murray
d0d4227515 Require font parameter in FreeTypeFont 2024-07-25 18:45:38 +10:00
Andrew Murray
6dd4b3c826
Merge pull request #8259 from hugovk/rm-is_directory
Remove unused _util.is_directory
2024-07-25 09:47:30 +10:00
Andrew Murray
61001dab14
Merge pull request #8260 from python-pillow/revert-7856-docs
Restore exiv2.org links
2024-07-25 08:41:59 +10:00
Hugo van Kemenade
72a243c498
Revert "Corrected exiv2.org links" 2024-07-24 11:44:44 -06:00
Hugo van Kemenade
7a570d67bf Remove unused _util.is_directory 2024-07-24 20:32:20 +03:00
Hugo van Kemenade
a103c4a044
Merge pull request #8257 from radarhere/imagedraw_unused 2024-07-24 20:24:14 +03:00
Andrew Murray
ab635be11b Removed unused argument 2024-07-24 22:08:15 +10:00
Andrew Murray
77df988d06 Support RGBA palettes 2024-07-24 19:51:19 +10:00
Hugo van Kemenade
fddc902c35
Merge pull request #8246 from python-pillow/tutorial-images 2024-07-24 10:48:25 +03:00
Andrew Murray
8f4dbfe6a6 Simplified code 2024-07-24 06:56:59 +10:00
Andrew Murray
888b2f716e Improved consistency of example paths 2024-07-24 06:56:42 +10:00
Andrew Murray
cf6ec5e065 Converted images to WebP 2024-07-24 06:44:06 +10:00
Jeffrey A. Clark (Alex)
96fa1f5dbf multiply each pixel by 20 2024-07-23 14:55:04 -04:00
Yay295
22ef8df59a
Do not run scheduled wheel jobs on forks 2024-07-22 08:29:55 +03:00
mergify[bot]
8405412b76
Merge pull request #8250 from radarhere/type_hint
Added type hints
2024-07-20 19:48:05 +00:00
Andrew Murray
1cf887dbec Rearranged code 2024-07-21 05:22:13 +10:00
Jeffrey A. Clark (Alex)
ddc02bb78c Update and add image to PostScript printing example 2024-07-20 14:41:47 -04:00
Andrew Murray
906b8afe85
Merge pull request #8252 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.11.0
2024-07-20 19:57:16 +10:00
Andrew Murray
38458a204c Corrected type hints 2024-07-20 19:07:42 +10:00
Andrew Murray
882a196a8f Removed unused ignores 2024-07-20 18:59:27 +10:00
renovate[bot]
b976a8496d
Update dependency mypy to v1.11.0 2024-07-20 08:07:12 +00:00
Andrew Murray
f624460321 Added type hints 2024-07-20 13:14:18 +10:00
Andrew Murray
f8a9a18e7d
Merge pull request #8248 from Yay295/patch-2
Use local variable instead of casting every line
2024-07-20 10:49:37 +10:00
Yay295
204ec11f64 use local variable instead of casting every line 2024-07-19 08:46:25 -05:00
Jeffrey A. Clark
eff22bc34e
Update docs/handbook/tutorial.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-19 09:00:26 -04:00
pre-commit-ci[bot]
aa8d87696b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-19 12:14:54 +00:00
Lysandros Nikolaou
8a54f58ac6
Merge branch 'main' into arena-thread-safe 2024-07-19 14:14:23 +02:00
Andrew Murray
011da4b646
Merge pull request #8067 from Yay295/patch-2
Change AlignAfterOpenBracket in .clang-format to BlockIndent
2024-07-19 20:26:36 +10:00
Andrew Murray
4db8140426 Removed unused image 2024-07-19 18:49:04 +10:00
Andrew Murray
54055c76c4 Converted images to WebP 2024-07-19 18:45:00 +10:00
Andrew Murray
1daaef02cd Updated code to match image 2024-07-19 18:27:00 +10:00
Andrew Murray
c337dfe98a Correct reference 2024-07-19 14:41:51 +10:00
Jeffrey A. Clark (Alex)
96a1af9fa8 Add tutorial images
Animated gif example
2024-07-18 18:33:14 -04:00
Jeffrey A. Clark (Alex)
18d8020cab Add tutorial images 2024-07-18 15:17:32 -04:00
Andrew Murray
73dfe67736 Update CHANGES.rst [ci skip] 2024-07-18 22:46:02 +10:00
Hugo van Kemenade
97e5381dbb
Merge pull request #8242 from radarhere/imagemath_options 2024-07-18 14:49:29 +03:00
Hugo van Kemenade
205695dedf
Merge pull request #8244 from lysnikolaou/upload-nightly-wheels-different-job 2024-07-18 14:06:20 +03:00
Lysandros Nikolaou
a6e9393956
Update .github/workflows/wheels.yml
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-18 10:35:09 +02:00
Andrew Murray
7248cde50b Documented keyword arguments 2024-07-18 11:00:27 +10:00
Lysandros Nikolaou
09c817a2ec
Move uploading nightly wheels to different job
This is needed cause the job does not support running on OS's other
than Ubuntu.
2024-07-17 23:05:48 +02:00
Hugo van Kemenade
b6868f3095
Merge pull request #8243 from lysnikolaou/skip-qemu-wheels-workflow-dispatch 2024-07-17 20:44:08 +03:00
Lysandros Nikolaou
f39ca5db5a
Skip QEMU-emulated wheels on workflow dispatch event 2024-07-17 16:21:16 +02:00
Hugo van Kemenade
024fa51294
Merge pull request #8236 from lysnikolaou/upload-nightly-wheels 2024-07-17 17:17:54 +03:00
Andrew Murray
47fc36a323 Update CHANGES.rst [ci skip] 2024-07-17 22:28:56 +10:00
Andrew Murray
10faa5df39 Deprecate lambda_eval and unsafe_eval options argument 2024-07-17 22:08:53 +10:00
Hugo van Kemenade
d05262105a
Merge pull request #8240 from radarhere/containerio
Changed ContainerIO to subclass IO
2024-07-17 14:23:55 +03:00
Andrew Murray
a3f93b3f68 Changed ContainerIO to subclass IO 2024-07-17 16:23:29 +10:00
Hugo van Kemenade
86f4cfbbf1
Merge pull request #8239 from radarhere/cifuzz
Temporarily disable cifuzz
2024-07-17 07:33:38 +03:00
Andrew Murray
3146940716 Temporarily disable cifuzz 2024-07-17 08:26:05 +10:00
pre-commit-ci[bot]
e144707520 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-16 19:32:02 +00:00
Lysandros Nikolaou
98b173928a
Address more feedback; don't unlock around sizeof 2024-07-16 21:31:29 +02:00
Lysandros Nikolaou
06767fc325
Address feedback; do not lock in a loop 2024-07-16 17:00:14 +02:00
Lysandros Nikolaou
5999b9b0cc
Initialize PyMutex only under the free-threaded build 2024-07-16 16:56:15 +02:00
pre-commit-ci[bot]
9f110aa702 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-16 14:47:15 +00:00
Lysandros Nikolaou
ea7b5c5b66
Lock around usages of imaging memory arenas 2024-07-16 16:43:49 +02:00
pre-commit-ci[bot]
2973b041c7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-16 12:58:04 +00:00
Yay295
87b23d0207 change AlignAfterOpenBracket in .clang-format to BlockIndent
to match the Python code
2024-07-16 07:57:24 -05:00
Andrew Murray
d83c7b38c4
Skip other jobs on schedule (#1)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-16 12:18:25 +02:00
Lysandros Nikolaou
68c3542d09
Rename secret 2024-07-16 10:42:18 +02:00
Andrew Murray
784a874490 Trim whitespace 2024-07-16 18:38:50 +10:00
Lysandros Nikolaou
e89be77145
Upload wheels to scientific-python-nightly-wheels index 2024-07-16 10:21:24 +02:00
Andrew Murray
f19e07b58c
Merge pull request #8234 from radarhere/type_hint
Added type hints
2024-07-16 18:05:02 +10:00
Andrew Murray
3eeef83517
Updated condition
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-07-16 16:40:17 +10:00
Hugo van Kemenade
2152a1736c
Merge pull request #8235 from radarhere/axis_name
Simplified code
2024-07-15 15:42:10 +03:00
Andrew Murray
76e5e12f98 Simplified code 2024-07-15 20:48:39 +10:00
Andrew Murray
01529d8b09 Added type hints 2024-07-15 19:23:36 +10:00
Hugo van Kemenade
6944e9e183
Merge pull request #8216 from hugovk/free-threading 2024-07-13 16:09:34 +02:00
Hugo van Kemenade
851868c775
Fix refcounts after porting to GetItemRef & better error checking (#126) 2024-07-13 12:41:39 +02:00
Lysandros Nikolaou
8854e4677e
Add include 2024-07-13 12:34:17 +02:00
Lysandros Nikolaou
9c576d63c3
Fix refcounts after porting to GetItemRef & better error checking 2024-07-13 12:24:02 +02:00
Hugo van Kemenade
c21a403879
Add necessary PyMem_Free and fix PyDict_GetItemRef call (#125) 2024-07-13 11:18:47 +02:00
Hugo van Kemenade
8c9eea9d07
Merge pull request #8228 from radarhere/type_hint 2024-07-13 11:09:48 +02:00
Lysandros Nikolaou
f5313db9ce
Add necessary PyMem_Free and fix PyDict_GetItemRef call 2024-07-13 11:00:57 +02:00
Hugo van Kemenade
8d88619bde
Merge pull request #8219 from radarhere/free_threaded 2024-07-13 10:59:28 +02:00
Andrew Murray
8e730e17ae Allow saving I;16 images as PPM 2024-07-13 13:00:58 +10:00
Andrew Murray
42bfcaa2d4 When IFD is missing, connect get_ifd() dictionary to Exif 2024-07-13 12:46:15 +10:00
Andrew Murray
5bae934317 Added type hints 2024-07-12 21:16:56 +10:00
Andrew Murray
c416f0ea1d Build wheels with free threading 2024-07-10 06:11:11 +10:00
Hugo van Kemenade
6a9acfa5ca
Merge pull request #8214 from radarhere/type_hint 2024-07-08 09:01:47 -06:00
Lysandros Nikolaou
40e7f511b3 Don't use PyList_GetItemRef immediately after PyList_New 2024-07-08 15:42:26 +03:00
Hugo van Kemenade
87596bd747 imagingft: Replace PyDict_GetItem with PyDict_GetItemRef 2024-07-08 15:42:26 +03:00
Hugo van Kemenade
7c64ae0c73 encode: Replace PyDict_GetItem with PyDict_GetItemRef 2024-07-08 15:42:26 +03:00
Hugo van Kemenade
377bdc0db1 encode: Replace PyList_GetItem with PyList_GetItemRef 2024-07-08 15:42:26 +03:00
Hugo van Kemenade
69f967301d Call PyUnstable_Module_SetGIL() to indicate support of running with GIL disabled 2024-07-08 14:40:35 +03:00
Andrew Murray
613fced92c
Merge pull request #8200 from hugovk/ci-free-threading
Test 3.13 free-threaded build on CI
2024-07-08 21:24:07 +10:00
Andrew Murray
8a05e32336 Added type hints 2024-07-08 20:09:45 +10:00
Hugo van Kemenade
77e752f35f
Check GIL, rather than Python version (#124) 2024-07-07 07:09:26 -06:00
Andrew Murray
41eb218a68 Check GIL, rather than Python version 2024-07-07 22:04:50 +10:00
mergify[bot]
94a8fccfa7
Merge pull request #8210 from radarhere/type_hint
Added type hint
2024-07-06 13:08:17 +00:00
Andrew Murray
6883018725 Added type hint 2024-07-06 22:06:47 +10:00
Hugo van Kemenade
ae25d23c34
Merge pull request #8207 from radarhere/type_hints_pdfparser
Added type hints to PdfParser
2024-07-06 05:54:16 -06:00
Hugo van Kemenade
d2c3365b40
Merge pull request #8208 from radarhere/type_hint_tests
Check test type hints
2024-07-06 05:28:42 -06:00
Andrew Murray
486dac7efc Added type hints 2024-07-06 19:17:23 +10:00
Andrew Murray
69cca2a103 Added type hints 2024-07-06 15:08:35 +10:00
Hugo van Kemenade
a528cd8bd3
Merge pull request #8206 from radarhere/aarch64_wheels 2024-07-05 13:10:10 -06:00
Hugo van Kemenade
6cef133554
Merge pull request #8201 from radarhere/resize 2024-07-05 12:15:03 -06:00
Andrew Murray
4aa24f88d9
Added type hints to tests (#8203)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:56:24 -06:00
Andrew Murray
f3c3e52797
Added type hints (#8204)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:55:23 -06:00
Hugo van Kemenade
dcd8332805 Include 'free-threading' in job name 2024-07-05 19:40:43 +03:00
Andrew Murray
bcecaf6add Group aarch64 jobs 2024-07-06 02:08:37 +10:00
Andrew Murray
7e1a6be767
Updated macOS tested Pillow versions (#8202)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 13:05:59 +03:00
Hugo van Kemenade
2d2889e617 Install nightly NumPy for free-threaded 2024-07-05 01:52:06 +03:00
Hugo van Kemenade
701539d017 Add PYTHON_GIL=0 env var to keep GIL disabled 2024-07-05 00:38:50 +03:00
Hugo van Kemenade
e76c31b67d Refactor to single line for readability 2024-07-04 15:54:21 +03:00
Hugo van Kemenade
d4f1d252ef Test 3.13 free-threaded build on CI 2024-07-04 15:54:21 +03:00
Andrew Murray
6990fc4a09 Allow size argument to resize() to be a NumPy array 2024-07-04 15:25:35 +10:00
Andrew Murray
936012e861 Allow size argument to resize() to be a list 2024-07-04 15:13:03 +10:00
Andrew Murray
776dd63f33 Update CHANGES.rst [ci skip] 2024-07-04 11:20:00 +10:00
Andrew Murray
a34ac045c3 Conditionally define type hint to avoid requiring core 2024-07-03 21:05:48 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 (#8183)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
7537ce8a60
Merge pull request #8181 from hugovk/add-3.13
Add support for Python 3.13
2024-07-03 13:22:47 +10:00
Andrew Murray
674e8e0b1b
Merge pull request #8189 from hugovk/numpy-3.13
Test NumPy on Python 3.13
2024-07-03 13:18:08 +10:00
Hugo van Kemenade
c8df36f650
Merge pull request #8191 from radarhere/type_hint 2024-07-02 14:31:04 -06:00
Hugo van Kemenade
ececa9df4e
Merge pull request #8187 from neutrinoceros/bug/compat/numpy1.20 2024-07-02 14:28:14 -06:00
Hugo van Kemenade
534d82119b Test NumPy on Python 3.13
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-02 21:57:13 +03:00
Hugo van Kemenade
40d3b2ce0c Fix version range
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-02 21:53:23 +03:00
Hugo van Kemenade
4eec24a380 Increment Python version check on Windows
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-02 21:52:43 +03:00
Hugo van Kemenade
e50df021e8 Add support for Python 3.13 2024-07-02 21:48:48 +03:00
Hugo van Kemenade
f3719a9bec
Merge pull request #8192 from python-pillow/renovate/cibuildwheel-2.x 2024-07-02 12:45:56 -06:00
renovate[bot]
0a19410ee2
Update dependency cibuildwheel to v2.19.2 2024-07-02 12:15:04 +00:00
Andrew Murray
267c0b37b1 Added type hints 2024-07-02 20:10:47 +10:00
Clément Robert
ce6fb1279f
Merge pull request #1 from radarhere/bug/compat/numpy1.20
Do not import numpy.typing unless TYPE_CHECKING
2024-07-02 12:00:01 +02:00
Andrew Murray
8b8fc18998 Do not import numpy.typing unless TYPE_CHECKING 2024-07-02 19:05:59 +10:00
Andrew Murray
8c2a823e77
Merge pull request #8188 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-07-02 18:41:47 +10:00
Andrew Murray
06cad14767
Merge pull request #8185 from radarhere/debian
Removed Debian 11
2024-07-02 07:58:16 +10:00
pre-commit-ci[bot]
c359bd290b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-01 17:33:19 +00:00
Clément Robert
b4ee967372 BUG: fix an incompatibility with numpy 1.20 2024-07-01 19:33:14 +02:00
pre-commit-ci[bot]
d6d0a4d981
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.7...v0.5.0)
- [github.com/PyCQA/bandit: 1.7.8 → 1.7.9](https://github.com/PyCQA/bandit/compare/1.7.8...1.7.9)
- [github.com/pre-commit/mirrors-clang-format: v18.1.5 → v18.1.8](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.5...v18.1.8)
- [github.com/python-jsonschema/check-jsonschema: 0.28.4 → 0.28.6](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.4...0.28.6)
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.1.3)
2024-07-01 17:32:51 +00:00
Andrew Murray
8c26622ee7
Merge pull request #8186 from radarhere/cve
Updated CVE URL
2024-07-01 23:46:05 +10:00
Andrew Murray
31e64a0da8 Updated CVE URL 2024-07-01 23:06:57 +10:00
Andrew Murray
381c604b07 Removed Debian 11 2024-07-01 23:06:39 +10:00
Andrew Murray
d3f343bb9b Skip truncated mask if LOAD_TRUNCATED_IMAGES is enabled 2024-07-01 23:04:47 +10:00
Andrew Murray
585bd6ad48
Merge pull request #8182 from hugovk/rm-deprecated-psfile
Remove PSFile, PyAccess and USE_CFFI_ACCESS
2024-07-01 23:04:04 +10:00
Hugo van Kemenade
4ab4fa4cd7
Merge pull request #120 from radarhere/rm-deprecated-psfile 2024-07-01 06:33:19 -06:00
Andrew Murray
9bc1365ea0 Removed reference 2024-07-01 21:41:08 +10:00
Andrew Murray
5e163c0fed Updated deprecation timeline 2024-07-01 20:31:25 +10:00
Andrew Murray
43cc1e3659 Removed PyAccess and Image.USE_CFFI_ACCESS 2024-07-01 20:31:17 +10:00
Hugo van Kemenade
eb5bf18192 Bump deprecation tests to Pillow 12 2024-07-01 13:25:43 +03:00
Andrew Murray
a3a6198286 11.0.0.dev0 version bump 2024-07-01 19:53:27 +10:00
Hugo van Kemenade
2a660bbe9f Remove PSFile class, deprecated in Pillow 9.5.0 2024-07-01 10:58:27 +03:00
Andrew Murray
9b4fae7717 10.4.0 version bump 2024-07-01 15:42:12 +10:00
Andrew Murray
b55d74bcfe Update CHANGES.rst [ci skip] 2024-06-29 07:47:26 +10:00
Andrew Murray
8daf550b7d
Merge pull request #8178 from radarhere/imageshow
Raise FileNotFoundError if show_file() path does not exist
2024-06-29 06:17:44 +10:00
Hugo van Kemenade
c6d8c58b6d
Merge pull request #7965 from Yay295/patch-3 2024-06-28 07:34:46 -06:00
Andrew Murray
c9ec76aa0d Raise FileNotFoundError if show_file() path does not exist 2024-06-28 21:27:56 +10:00
Andrew Murray
b48d175656 Update CHANGES.rst [ci skip] 2024-06-28 21:13:41 +10:00
Hugo van Kemenade
4d6dff34db
Merge pull request #8031 from radarhere/imagingcms_modes 2024-06-28 04:05:40 -06:00
Andrew Murray
70b3815a37
Merge pull request #8127 from radarhere/multiple_exif_markers
Fixed processing multiple JPEG EXIF markers
2024-06-28 18:50:19 +10:00
Andrew Murray
88cd6d41ef
Rearranged comments
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-06-28 17:28:42 +10:00
Hugo van Kemenade
41426a6f74
Merge pull request #8110 from radarhere/exififd 2024-06-28 00:19:25 -06:00
Hugo van Kemenade
56521137be
Merge pull request #8086 from radarhere/load_default_imagefont 2024-06-28 00:18:55 -06:00
Hugo van Kemenade
3fdaecb025
Merge pull request #8063 from radarhere/possible_formats 2024-06-28 00:18:10 -06:00
Hugo van Kemenade
02133dc9ad
Merge pull request #8169 from radarhere/cast 2024-06-28 00:14:21 -06:00
Andrew Murray
7514c426b5
Merge pull request #8177 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.10.1
2024-06-28 15:03:00 +10:00
renovate[bot]
d18192cecf
Update dependency mypy to v1.10.1 2024-06-28 04:20:09 +00:00
Andrew Murray
7b636a8e6c Update CHANGES.rst [ci skip] 2024-06-27 20:28:36 +10:00
Hugo van Kemenade
6a2b8e7236
Merge pull request #8173 from radarhere/xmp_imageops 2024-06-27 12:40:07 +03:00
Hugo van Kemenade
6a44854e5b
Merge pull request #8171 from radarhere/xmp 2024-06-27 12:38:30 +03:00
Andrew Murray
304cf484aa Do not presume "xmp" info simply because "XML:com.adobe.xmp" info exists 2024-06-27 13:29:22 +10:00
Andrew Murray
6863c87c01 Added test for non-colormap 16-bit image 2024-06-26 08:32:57 -05:00
Andrew Murray
fd3f6c1a92 Remove zero-byte end padding when parsing any XMP data 2024-06-26 19:31:40 +10:00
Andrew Murray
a90a9d5ea5 Update CHANGES.rst [ci skip] 2024-06-26 19:14:58 +10:00
Hugo van Kemenade
6e1831cf99
Merge pull request #8056 from radarhere/hdr
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-06-26 11:33:50 +03:00
Hugo van Kemenade
2756cd5273
Merge pull request #8146 from Yay295/jp2_parsing 2024-06-26 11:32:57 +03:00
Andrew Murray
6ee41897e2 Added dedicated unpacker for inverted alpha 2024-06-25 17:29:06 -05:00
Andrew Murray
50d18bf547 Truncated image to reduce file size 2024-06-26 07:40:08 +10:00
Andrew Murray
d2d03a1da2 Update CHANGES.rst [ci skip] 2024-06-26 06:35:15 +10:00
Hugo van Kemenade
a4188bb75e
Merge pull request #8104 from radarhere/apng 2024-06-25 21:58:32 +03:00
Hugo van Kemenade
02e8bf95ae
Merge pull request #8168 from radarhere/jpeg2k_error 2024-06-25 21:55:19 +03:00
Andrew Murray
88b21e7254 Added test 2024-06-25 10:50:21 -05:00
Yay295
58d5a73fac raise SyntaxError when parsing codestream rather than returning an empty string
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-25 10:50:20 -05:00
Yay295
4cadf5c99f use bytes/bytearray int constructor instead of string multiplication 2024-06-25 10:48:35 -05:00
Andrew Murray
3840255486 Invert alpha bit for map depth 16 2024-06-25 10:48:34 -05:00
Yay295
e5c6d883d4 set palette mode for BGRA;15
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-25 10:48:34 -05:00
Yay295
872ff125fc "BGR;15" -> "BGRA;15" 2024-06-25 10:48:34 -05:00
Yay295
6f28a0c009 Fix TGA rawmode BGR;15 2024-06-25 10:48:34 -05:00
Hugo van Kemenade
a596a4063d
Merge pull request #8112 from radarhere/i16_mask 2024-06-25 06:50:47 -06:00
Andrew Murray
272d235ab4
Merge branch 'main' into apng 2024-06-25 22:42:47 +10:00
Hugo van Kemenade
48a921b31f
Merge pull request #8087 from radarhere/png_save_all 2024-06-25 06:21:44 -06:00
Hugo van Kemenade
563f45c355
Merge pull request #8141 from radarhere/freetypefont_bytes 2024-06-25 06:11:20 -06:00
Hugo van Kemenade
5b1a9e1956
Merge pull request #8114 from radarhere/fixme 2024-06-25 06:09:39 -06:00
Hugo van Kemenade
d9f97b0bbf
Merge pull request #8039 from radarhere/psd_layers 2024-06-25 06:07:09 -06:00
Andrew Murray
99666dac29 Simplified casts 2024-06-25 22:00:51 +10:00
Hugo van Kemenade
4d9fdac92f
Merge pull request #8065 from radarhere/threadstate 2024-06-25 05:56:51 -06:00
Andrew Murray
5ce3f55111 Merge branch 'main' into exififd 2024-06-25 21:53:17 +10:00
Andrew Murray
e7c1da3cc8 Update CHANGES.rst [ci skip] 2024-06-25 21:43:18 +10:00
Andrew Murray
44b82e4513 Use more specific error 2024-06-25 21:40:30 +10:00
Hugo van Kemenade
bbf879641d
Merge pull request #7997 from radarhere/rgbx 2024-06-25 05:28:50 -06:00
Hugo van Kemenade
29fa677276
Merge pull request #7963 from radarhere/example 2024-06-25 05:28:29 -06:00
Hugo van Kemenade
e62f47950e
Merge pull request #7948 from radarhere/iptc 2024-06-25 05:26:53 -06:00
Hugo van Kemenade
31681407da
Merge pull request #8167 from radarhere/type_hint 2024-06-25 05:25:57 -06:00
Hugo van Kemenade
1661343bc0
Merge pull request #8144 from Yay295/eps_plugin_return_break 2024-06-25 05:17:01 -06:00
Andrew Murray
d2b5e11d2b
Merge pull request #8032 from nulano/type_hints
Added type hints for PixelAccess related methods and others
2024-06-25 19:15:31 +10:00
Andrew Murray
ab18395818 Added comment
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-06-25 10:50:40 +02:00
Andrew Murray
d0d53d4bac Added type hints to tests 2024-06-25 10:50:40 +02:00
Andrew Murray
ded404507b Removed ignores 2024-06-25 10:50:40 +02:00
Andrew Murray
a941f096aa Update CHANGES.rst [ci skip] 2024-06-25 18:49:40 +10:00
Yay295
065aeaea47 improve check_required_header_comments() description
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-24 08:54:33 -05:00
Andrew Murray
f2302ab716 Added type hints 2024-06-24 21:04:33 +10:00
Hugo van Kemenade
ad4c23bddd
Merge pull request #8165 from radarhere/imagedraw2_error 2024-06-24 03:59:24 -06:00
Hugo van Kemenade
fb722a3ddd
Merge pull request #8163 from radarhere/type_hint_tests 2024-06-24 00:50:33 -06:00
Andrew Murray
e5c4d56a9e Clarify error message when size is missing 2024-06-24 15:08:36 +10:00
Andrew Murray
2f85bf178b Merge branch 'main' into load_default_imagefont 2024-06-24 08:04:53 +10:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Hugo van Kemenade
920698eea7
Merge pull request #8153 from radarhere/type_hint 2024-06-23 07:29:11 -06:00
Hugo van Kemenade
6879956d17
Merge pull request #8156 from radarhere/type_hint_imagefilter 2024-06-23 07:27:45 -06:00
Andrew Murray
00c9448cb0 Update CHANGES.rst [ci skip] 2024-06-23 21:37:41 +10:00
Hugo van Kemenade
9c7ba240e9
Merge pull request #7966 from radarhere/palette
Support unpacking more rawmodes to RGBA palettes
2024-06-23 01:43:41 -06:00
Hugo van Kemenade
0201707737
Merge pull request #8159 from radarhere/qt6
Removed support for Qt 5
2024-06-22 22:14:27 -06:00
Yay295
a2c0a90c44 check required EPS header comments at end of file, not always 2024-06-22 09:33:20 -05:00
Andrew Murray
1c8d270746
Merge pull request #8135 from mamg22/improved-xdg-dirs-support
Improve `ImageFont.freetype` support for XDG directories on Linux
2024-06-22 14:27:55 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
c155677c4f Removed support for Qt 5 2024-06-22 00:39:37 +10:00
Andrew Murray
324e548e52 Added type hints to ImageFilter 2024-06-21 20:41:22 +10:00
Nulano
b64847e07f Do not use a protocol for PixelAccess object 2024-06-19 21:48:48 +02:00
Hugo van Kemenade
4b258be3bb
Merge pull request #8151 from radarhere/type_hint_imagedraw 2024-06-19 07:54:55 -06:00
Hugo van Kemenade
96b1caba91
Merge pull request #8069 from radarhere/xmp 2024-06-19 07:53:07 -06:00
Andrew Murray
7ab3aee7bc
Merge branch 'main' into xmp 2024-06-19 09:06:10 +10:00
Andrew Murray
9f79e5d768 Added type hints to ImageDraw shape methods 2024-06-19 08:43:23 +10:00
Andrew Murray
b1d5d7f6f9
Merge pull request #8150 from radarhere/type_hint_image
Added type hints to Image
2024-06-19 08:37:25 +10:00
Andrew Murray
66ad49774d
Merge branch 'main' into type_hint_image 2024-06-19 08:06:38 +10:00
Hugo van Kemenade
5d3338f13e
Merge pull request #8134 from radarhere/type_hint 2024-06-18 11:39:18 -06:00
Hugo van Kemenade
cde052480e
Merge pull request #8118 from radarhere/type_hint_tests 2024-06-18 07:50:29 -06:00
Andrew Murray
291ee35204 Added type hints 2024-06-18 23:03:03 +10:00
Andrew Murray
8d8852d744 Merge branch 'main' into type_hint_tests 2024-06-18 23:01:12 +10:00
Andrew Murray
6b5b2f6e58 Added type hints to Image 2024-06-18 22:44:17 +10:00
Hugo van Kemenade
99dd55324d
Merge pull request #8142 from radarhere/setup 2024-06-17 06:39:54 -06:00
Andrew Murray
6a6ad65b47
Merge pull request #8143 from python-pillow/renovate/cibuildwheel-2.x 2024-06-16 13:02:07 +10:00
mamg22
b2c4539cd9 Remove releate note for truetype() changes
The proposed changes don't match match with previous release notes'
meaning of "API Changes".
2024-06-15 19:51:59 -04:00
mamg22
8d14a452df
Update test environment variable for ImageFont
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-15 19:50:10 -04:00
mamg22
d50c9cc700
Merge pull request #1 from radarhere/improved-xdg-dirs-support
Rearranged code
2024-06-15 19:48:26 -04:00
renovate[bot]
e4887610e9
Update dependency cibuildwheel to v2.19.1 2024-06-15 22:40:46 +00:00
Andrew Murray
f62796dadc Rearranged code 2024-06-15 19:37:16 +10:00
Andrew Murray
8e6426fc7f
Merge branch 'main' into improved-xdg-dirs-support 2024-06-15 19:36:11 +10:00
Andrew Murray
ed5e8f91c5 Use pkg-config to help find libwebp and raqm 2024-06-15 19:11:11 +10:00
Andrew Murray
81c1bf1f02
Merge branch 'main' into freetypefont_bytes 2024-06-15 17:28:35 +10:00
Andrew Murray
32264a1ccd
Merge branch 'main' into type_hints 2024-06-15 16:57:24 +10:00
Hugo van Kemenade
d87c1c1487
Merge pull request #8140 from radarhere/macos
Ignore brew dependencies for libraqm on macOS 13
2024-06-15 00:52:01 -06:00
Andrew Murray
b3e3784b8e Added byte support to FreeTypeFont 2024-06-15 16:06:45 +10:00
Andrew Murray
dfd53564ff Ignore brew dependencies for libraqm on macOS 13 2024-06-15 11:51:02 +10:00
Hugo van Kemenade
cdd2bbe95e
Merge pull request #8138 from radarhere/ghostscript 2024-06-14 06:06:15 -06:00
Andrew Murray
05a70e7861 Corrected Ghostscript path 2024-06-14 20:59:12 +10:00
Andrew Murray
20ce7ad9f8 Updated type hint 2024-06-13 17:14:21 +02:00
mamg22
d56ffebf2a
Fix typo in release notes
[ci skip]

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-13 09:43:40 -04:00
Hugo van Kemenade
b070d7c27c
Merge pull request #8136 from radarhere/readthedocs 2024-06-13 02:07:55 -06:00
mamg22
48606afeb6 Add missing wording for envvar in release notes
[ci skip]
2024-06-13 00:12:07 -04:00
mamg22
6cf08afb15
Fix broken reference in release notes
[ci skip]

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-13 00:03:03 -04:00
Andrew Murray
142cb11dcc Use GitHub URL for xz 2024-06-13 10:58:51 +10:00
pre-commit-ci[bot]
0a2baab6c1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-12 20:19:20 +00:00
Nulano
238110303c getpixel and putpixel also support a list argument 2024-06-12 22:17:10 +02:00
Nulano
2a2033eea1 mypy fixes after merge 2024-06-12 21:49:47 +02:00
Nulano
31a8da48ee Merge remote-tracking branch 'upstream/main' into type_hints
# Conflicts:
#	src/PIL/Image.py
2024-06-12 21:06:31 +02:00
Andrew Murray
eb56f3ed56 Removed ignores 2024-06-12 20:56:38 +02:00
Andrew Murray
7e14364cee putalpha does not allow other color values 2024-06-12 20:56:38 +02:00
mamg22
ed828d23df Update changes in release notes [ci skip] 2024-06-12 13:08:48 -04:00
mamg22
00161099c7 Update docs for ImageFont.truetype [ci skip] 2024-06-12 12:48:12 -04:00
Andrew Murray
c9a9e81749 Use latest Ubuntu 2024-06-13 00:03:16 +10:00
Andrew Murray
eea3ac765c Deprecate non-image and unsupported modes 2024-06-12 22:44:03 +10:00
Andrew Murray
be73b13ad3 Added type hints 2024-06-12 21:15:55 +10:00
mamg22
1175e53d53 Set XDG_DATA_HOME on font tests 2024-06-11 22:08:53 -04:00
mamg22
2e15dc9f53 Improve xdg directory support in Linux 2024-06-11 22:00:08 -04:00
Hugo van Kemenade
114e01701a
Merge pull request #8132 from radarhere/type_hint 2024-06-11 11:11:09 -06:00
Andrew Murray
1eb960f7e3 Added type hints 2024-06-11 23:26:00 +10:00
Andrew Murray
780d85b667 Update CHANGES.rst [ci skip] 2024-06-11 23:18:11 +10:00
Hugo van Kemenade
47750bf9c3
Merge pull request #8129 from radarhere/libtiff_version 2024-06-11 06:26:56 -06:00
Hugo van Kemenade
7928bebd65
Merge pull request #8124 from radarhere/imagedraw_getdraw 2024-06-11 06:26:27 -06:00
Hugo van Kemenade
ecf3a986ef
Merge pull request #8128 from radarhere/type_hint_gif 2024-06-11 06:18:46 -06:00
Andrew Murray
ba89023ace
Merge pull request #8131 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.19.0
2024-06-11 13:56:50 +10:00
renovate[bot]
474ef6ff8d
Update dependency cibuildwheel to v2.19.0 2024-06-11 00:01:02 +00:00
Andrew Murray
84b2847232 Accept 't' suffix for libtiff version 2024-06-11 07:15:47 +10:00
Andrew Murray
9afe9d2769 Added type hints 2024-06-11 06:52:14 +10:00
Andrew Murray
9a8759d91b
Merge pull request #8125 from radarhere/type_hint
Added type hints
2024-06-11 06:50:40 +10:00
Hugo van Kemenade
444faa28ee
Merge pull request #8126 from radarhere/libtiff_version 2024-06-10 07:10:42 -06:00
Andrew Murray
b84c970fbf Wait until all markers are read to process EXIF 2024-06-10 19:19:06 +10:00
Andrew Murray
8e8ee1e4c4 Accept 't' suffix for libtiff version 2024-06-10 17:38:17 +10:00
Andrew Murray
4679e4bf9e
Updated deprecation warning 2024-06-10 16:47:52 +10:00
Andrew Murray
9f831317fe
Updated text
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-06-10 16:47:18 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
e225f9f589 Deprecate ImageDraw.getdraw hints argument 2024-06-10 11:50:13 +10:00
Hugo van Kemenade
53e82e49c5
Merge pull request #8117 from radarhere/type_hint 2024-06-09 07:38:54 -06:00
Andrew Murray
56c79b6f52 Simplified code 2024-06-09 22:13:01 +10:00
Andrew Murray
de0779eee8
Removed return value assertion 2024-06-09 18:09:54 +10:00
Andrew Murray
1a14957c19 Added type hints 2024-06-09 15:16:17 +10:00
Andrew Murray
56fa3c658a Added type hints 2024-06-09 07:12:22 +10:00
Hugo van Kemenade
0a45381c2b
Merge pull request #8108 from radarhere/type_hint 2024-06-08 07:36:53 -06:00
Hugo van Kemenade
cd125c36ed
Merge pull request #8115 from radarhere/type_hints_imagecolor 2024-06-08 07:36:13 -06:00
Andrew Murray
14a32650dd Added type hints 2024-06-08 22:26:28 +10:00
Hugo van Kemenade
5e0fe8f1b8
Merge pull request #8113 from radarhere/transform
Renamed C transform2 to transform
2024-06-08 04:38:33 -06:00
Andrew Murray
0d73721c65 Allow float center for rotate operations 2024-06-08 19:11:51 +10:00
Andrew Murray
985e605381 Renamed transform2 to transform 2024-06-08 19:06:46 +10:00
Andrew Murray
5bacce9dc2
Merge pull request #8046 from srittau/type-annotations
Add various type annotations
2024-06-08 18:38:21 +10:00
Hugo van Kemenade
c9ac893032
Merge pull request #7990 from radarhere/nasm
Updated nasm to 2.16.03
2024-06-08 02:07:46 -06:00
Andrew Murray
45cdc53bbb Updated type hints 2024-06-08 18:03:06 +10:00
Andrew Murray
d2603b779a im color could be a tuple with a single float 2024-06-08 17:16:50 +10:00
Andrew Murray
08b5a2e9a7 Corrected using a 1 mode mask with I;16* images 2024-06-08 14:35:10 +10:00
Andrew Murray
b8eb519562
Merge branch 'main' into nasm 2024-06-08 11:05:27 +10:00
Andrew Murray
0fbc3db081
Merge pull request #8048 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 3.0.3
2024-06-07 23:53:36 +10:00
mergify[bot]
5d8e37270e
Merge pull request #8014 from radarhere/fribidi
Updated fribidi to 1.0.15
2024-06-07 13:51:36 +00:00
Hugo van Kemenade
d612201835
Merge branch 'main' into fribidi 2024-06-07 03:47:12 -06:00
Hugo van Kemenade
13a33dc3c3
Merge branch 'main' into libjpeg-turbo 2024-06-07 03:46:49 -06:00
Hugo van Kemenade
d25aaede2c
Merge pull request #7973 from radarhere/libwebp 2024-06-07 03:46:15 -06:00
Hugo van Kemenade
ccd2d5c892
Merge pull request #7982 from radarhere/xcb 2024-06-07 03:46:08 -06:00
Hugo van Kemenade
ddfdae1d4f
Merge pull request #8025 from radarhere/libimagequant 2024-06-07 03:46:00 -06:00
Hugo van Kemenade
33d7c9ddc7
Merge pull request #8059 from radarhere/harfbuzz 2024-06-07 03:45:48 -06:00
Hugo van Kemenade
0251ec45da
Merge pull request #8078 from radarhere/ghostscript 2024-06-07 03:45:41 -06:00
Andrew Murray
44805bcd1d Updated fribidi to 1.0.15 2024-06-07 16:49:03 +10:00
Andrew Murray
ac7967cfc0 Do not preserve EXIFIFD tag by default 2024-06-07 13:25:56 +10:00
Andrew Murray
2d0610888e
Merge pull request #8109 from hugovk/makefile-sphinx-long-options
Use Sphinx long options in `Makefile`
2024-06-06 19:14:08 +10:00
Hugo van Kemenade
148f0d345f Use Sphinx long options in Makefile 2024-06-06 09:38:38 +03:00
Andrew Murray
f3ec2770e6 Merge remote-tracking branch 'radarhere/type-annotations' into type-annotations 2024-06-06 12:11:53 +10:00
Andrew Murray
923d4e5e1a Added type hints 2024-06-05 22:27:23 +10:00
Hugo van Kemenade
6dbedc51ae
Merge pull request #8107 from radarhere/type_hint 2024-06-05 06:13:17 -06:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp 2024-06-05 15:53:46 +10:00
Andrew Murray
b3c534cc9a Added type hints 2024-06-05 08:29:28 +10:00
Hugo van Kemenade
ca1caadd06
Merge pull request #8105 from radarhere/type_hint 2024-06-04 05:33:14 -06:00
Andrew Murray
6e40601f69 Added type hints 2024-06-04 20:37:09 +10:00
Hugo van Kemenade
b8532e508b
Merge pull request #8066 from radarhere/type_hint 2024-06-04 03:43:10 -06:00
Andrew Murray
e9c9f19c26 Do not use first frame duration for other frames when saving 2024-06-04 18:46:35 +10:00
Andrew Murray
1794a946b7
Merge pull request #8100 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-06-04 18:41:21 +10:00
pre-commit-ci[bot]
322814d7ce [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.7)
- [github.com/pre-commit/mirrors-clang-format: v18.1.4 → v18.1.5](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.4...v18.1.5)
- [github.com/python-jsonschema/check-jsonschema: 0.28.2 → 0.28.4](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.2...0.28.4)
- [github.com/abravalheri/validate-pyproject: v0.16 → v0.18](https://github.com/abravalheri/validate-pyproject/compare/v0.16...v0.18)
2024-06-04 10:50:57 +03:00
Andrew Murray
c1f10c107a
Merge branch 'main' into type_hints 2024-06-04 08:29:05 +10:00
Andrew Murray
12559fffc5
Merge branch 'main' into type_hint 2024-06-04 08:18:14 +10:00
Andrew Murray
219add0239
Merge pull request #8099 from radarhere/types
Added type hints
2024-06-04 07:26:45 +10:00
Andrew Murray
f5da04adb0 Added type hints
Co-authored-by: Nulano <nulano@nulano.eu>
2024-06-03 21:58:02 +10:00
Hugo van Kemenade
95a69ec698
Merge pull request #8098 from radarhere/lcms_version 2024-06-03 00:40:32 -06:00
Andrew Murray
d566c04d5b Updated type hints 2024-06-03 14:20:01 +10:00
Andrew Murray
8dae9b618f Corrected type hint 2024-06-03 08:50:46 +10:00
Hugo van Kemenade
eeb1eeab20
Merge pull request #8096 from radarhere/createprofile 2024-06-02 08:14:59 -06:00
Andrew Murray
4aba0b8238 Changed default colorTemp 2024-06-02 16:27:05 +10:00
Andrew Murray
54150f2061 Corrected docstring 2024-06-02 16:26:35 +10:00
Hugo van Kemenade
4f4b0bc748
Merge pull request #8095 from radarhere/type_hints_tests 2024-06-01 14:45:08 -06:00
Andrew Murray
66ab7e0de2 Added type hints 2024-06-01 21:31:53 +10:00
Hugo van Kemenade
33c31cb942
Merge pull request #8093 from radarhere/type_hints_tests 2024-06-01 03:52:31 -06:00
Andrew Murray
6affb123c3
Merge branch 'main' into type_hints 2024-05-31 08:06:42 +10:00
Andrew Murray
afc7d8d0b0 Added type hints 2024-05-30 17:17:22 +10:00
Hugo van Kemenade
c7574392b0
Merge pull request #8091 from radarhere/type_hints_tests 2024-05-30 09:08:11 +03:00
Andrew Murray
e68cec640a Added type hints 2024-05-30 12:00:50 +10:00
Andrew Murray
7f977f6522 Updated xz to 5.6.2 2024-05-30 09:10:28 +10:00
Hugo van Kemenade
a49a42aeea
Merge pull request #8090 from radarhere/type_hints_tests 2024-05-29 17:55:18 +03:00
Andrew Murray
a6d1daeb4b Added type hints 2024-05-29 22:51:02 +10:00
Andrew Murray
759ab28757 Update CHANGES.rst [ci skip] 2024-05-28 22:16:04 +10:00
Hugo van Kemenade
fdf103c5ad
Merge pull request #8085 from void4/imagedraw_circle 2024-05-28 12:35:31 +03:00
void4
3a34f44bcf
Merge pull request #1 from radarhere/imagedraw_circle
Added test
2024-05-27 18:28:15 +02:00
Andrew Murray
cac1a04329 Added test 2024-05-27 21:59:32 +10:00
Andrew Murray
12cefd798e Added method links to release notes 2024-05-27 21:48:38 +10:00
void4
8db5fbead1
Update src/PIL/ImageDraw.py - set circle argument xy to type Sequence[float] instead of Coords, radius to float
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-27 13:27:56 +02:00
void4
9b7556228e
Update docs/reference/ImageDraw.rst - move versionadded
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-05-27 13:21:41 +02:00
pre-commit-ci[bot]
034f3cbed5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-27 11:19:12 +00:00
void4
773ff20b76
Update docs/reference/ImageDraw.rst - move circle method up to indicate it is new
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-05-27 13:18:47 +02:00
void4
35a700a1d4
Update 10.4.0.rst - Add PIL.ImageDraw.circle() API addition 2024-05-27 13:14:04 +02:00
void4
38e6913579
Simplify circle() by reusing ellipse() 2024-05-27 13:01:10 +02:00
void4
8d9a4dda98
Update docs/reference/ImageDraw.rst - Set versionadded
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-05-27 12:57:50 +02:00
Andrew Murray
f34360d1e3 When saving multiple frames, convert to mode rather than raw mode 2024-05-27 18:09:46 +10:00
Andrew Murray
930c423db1 Added ImageFont.load_default_imagefont() 2024-05-27 17:08:13 +10:00
Hugo van Kemenade
bbe1effd63
Merge pull request #8082 from Yay295/patch-4 2024-05-27 08:39:34 +03:00
pre-commit-ci[bot]
2ee3cef50e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-26 22:25:16 +00:00
void4
2c4a6e1179 Add function and documentation to draw circle 2024-05-27 00:23:16 +02:00
Andrew Murray
82d9926905 Split depth/type into bit depth and color type 2024-05-26 10:04:44 -05:00
Yay295
1b878189d8
don't reuse variable name 2024-05-26 02:25:45 -05:00
Hugo van Kemenade
8b14ed741a
Merge pull request #8079 from radarhere/imagefont 2024-05-25 16:16:07 +03:00
Andrew Murray
1a6b0bb6b5 Removed documentation of unused argument 2024-05-25 19:30:20 +10:00
Andrew Murray
2c9b5f0360 Updated Ghostscript to 10.3.1 2024-05-25 06:20:03 +10:00
Hugo van Kemenade
3c2d36e113
Merge pull request #8037 from radarhere/cached_property 2024-05-24 14:19:54 +03:00
Andrew Murray
16cd358454 Update CHANGES.rst [ci skip] 2024-05-24 20:32:52 +10:00
Andrew Murray
5baabb59bc
Merge pull request #8077 from Yay295/patch-4
Add mypy task to makefile
2024-05-24 20:27:47 +10:00
Yay295
92d1879a77
add mypy task to makefile 2024-05-23 13:27:53 -05:00
Hugo van Kemenade
4b68563e8a
Merge pull request #8071 from radarhere/wheels 2024-05-23 17:08:58 +03:00
Andrew Murray
804fe7bbf8 Do not read layers when opening 2024-05-23 17:50:50 +10:00
Andrew Murray
2dedeef832 Support unpacking more rawmodes to RGBA palette 2024-05-22 20:05:07 +10:00
Andrew Murray
33e304ed66 Use @cached_property 2024-05-22 19:43:00 +10:00
Andrew Murray
d461ff8cef Added release notes 2024-05-22 11:50:10 +10:00
Andrew Murray
fe00d12e0a
Merge branch 'main' into threadstate 2024-05-22 08:02:20 +10:00
Andrew Murray
05402f0e30
Merge branch 'main' into hdr 2024-05-22 07:42:23 +10:00
Andrew Murray
696d596aa5
Merge branch 'main' into xmp 2024-05-22 07:21:59 +10:00
Andrew Murray
4639a71fdd
Merge branch 'main' into type_hint 2024-05-22 07:21:09 +10:00
Andrew Murray
3308a056bf
Merge branch 'main' into possible_formats 2024-05-21 23:22:36 +10:00
Andrew Murray
676a0dd188
Merge branch 'main' into harfbuzz 2024-05-21 23:19:25 +10:00
Andrew Murray
c0ee645d0d
Merge branch 'main' into type-annotations 2024-05-21 22:44:03 +10:00
Andrew Murray
502d615c20
Merge branch 'main' into wheels 2024-05-21 22:12:27 +10:00
Hugo van Kemenade
d879f39711
Merge pull request #8050 from radarhere/exec 2024-05-21 07:33:30 -04:00
Andrew Murray
3cc26e9ea6 Added Python 3.13 wheels 2024-05-21 12:55:48 +10:00
Andrew Murray
df96e7ca5a
Merge pull request #8070 from python-pillow/renovate/cibuildwheel-2.x
chore(deps): update dependency cibuildwheel to v2.18.1
2024-05-21 10:44:03 +10:00
renovate[bot]
ea9dc1e4a5
chore(deps): update dependency cibuildwheel to v2.18.1 2024-05-20 21:30:03 +00:00
Andrew Murray
0f1a0fc501 Improved consistency of XMP handling 2024-05-20 23:11:50 +10:00
Andrew Murray
fb21c50fb6 Restore original thread state 2024-05-20 07:42:28 +10:00
Hugo van Kemenade
ca55eb50d9
Merge pull request #8068 from radarhere/lint 2024-05-19 10:23:11 -04:00
Andrew Murray
82910a5e4f Lint fixes 2024-05-19 22:00:45 +10:00
Andrew Murray
22b64ffcf2
Merge pull request #8015 from hugovk/pre-commit-clang
Add ClangFormat to pre-commit
2024-05-19 16:27:30 +10:00
Andrew Murray
f3b1f19fe1
Merge branch 'main' into possible_formats 2024-05-19 14:47:00 +10:00
Andrew Murray
de06d517e1
Merge branch 'main' into type_hint 2024-05-19 14:46:16 +10:00
Hugo van Kemenade
c6fb36ff36
Merge pull request #8064 from radarhere/mingw
Fix type errors
2024-05-18 07:18:39 -04:00
Sebastian Rittau
b2316f46cb
Use just str for _string_length_check
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-18 11:22:57 +02:00
Andrew Murray
8a3a72e51d Added type hints 2024-05-18 16:06:50 +10:00
Hugo van Kemenade
8c7be25ad0
Merge pull request #8061 from radarhere/type_hint 2024-05-17 00:35:21 -04:00
Andrew Murray
7554e2cfbf Use monkeypatch 2024-05-17 08:44:04 +10:00
Andrew Murray
2a703a2d4c Removed continue 2024-05-17 08:04:20 +10:00
Andrew Murray
3062ec4dd2 Fix type errors 2024-05-16 22:55:03 +10:00
Andrew Murray
1036aa74a7 Added Image.WARN_POSSIBLE_FORMATS 2024-05-16 17:47:35 +10:00
Andrew Murray
73a3e4938c
Merge branch 'main' into type-annotations 2024-05-15 21:48:41 +10:00
Andrew Murray
e419fd7ab4 Added type hints 2024-05-15 20:19:09 +10:00
Hugo van Kemenade
0da83a1164
Merge pull request #8053 from radarhere/helper_modes 2024-05-14 12:01:21 -04:00
Hugo van Kemenade
60c94e67f3
Merge pull request #8055 from radarhere/type_hint 2024-05-14 11:59:44 -04:00
Andrew Murray
e9b15f8091 Updated harfbuzz to 8.5.0 2024-05-14 10:09:44 +10:00
Andrew Murray
b15ce5a4bc Do not detect Ultra HDR images as MPO 2024-05-13 21:51:16 +10:00
Andrew Murray
a8d154877d Added type hints 2024-05-13 18:47:51 +10:00
Andrew Murray
82c87c4adf
Merge branch 'main' into pre-commit-clang 2024-05-13 12:39:47 +10:00
Andrew Murray
e39ee95f56
Merge pull request #8054 from python-pillow/renovate/cibuildwheel-2.x
chore(deps): update dependency cibuildwheel to v2.18.0
2024-05-13 06:50:27 +10:00
renovate[bot]
00e5e43da4
chore(deps): update dependency cibuildwheel to v2.18.0 2024-05-12 11:43:08 +00:00
Andrew Murray
db4714c280 Removed helper.py modes 2024-05-12 21:20:46 +10:00
Hugo van Kemenade
0c8be38878
Merge pull request #7999 from radarhere/accept
Added MPEG accept function
2024-05-11 23:02:51 +03:00
Hugo van Kemenade
5e48d54769
Merge pull request #7984 from radarhere/modes
Added more modes to Image.MODES
2024-05-11 23:01:42 +03:00
Hugo van Kemenade
1cdbb5f34f
Merge pull request #8051 from radarhere/type_hint 2024-05-11 17:56:41 +03:00
Sebastian Rittau
8b3fd8a585
Moved SupportsArrayInterface under Protocols heading 2024-05-11 10:47:32 +02:00
Sebastian Rittau
6d6dfd176c
Revert unnecessary formatting change 2024-05-11 10:46:20 +02:00
Sebastian Rittau
6310280428
Move an import behind the TYPE_CHECKING flag
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-11 10:44:52 +02:00
Andrew Murray
13cf2bc70f Moved SupportsArrayInterface under Protocols heading 2024-05-11 11:16:52 +10:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Andrew Murray
c9a56e6b0b
Merge pull request #8044 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-05-11 10:10:34 +10:00
Andrew Murray
3344f57206
Merge branch 'main' into pre-commit-ci-update-config 2024-05-11 09:12:54 +10:00
Hugo van Kemenade
bfbe339ae3
Merge pull request #8045 from radarhere/strings 2024-05-10 18:44:37 +03:00
Andrew Murray
57399ce204 Parse _version contents instead of using exec() 2024-05-10 22:43:56 +10:00
Sebastian Rittau
9b44abb6b7 Add SupportsGetData to documentation 2024-05-10 11:48:36 +02:00
Sebastian Rittau
431fe0dcc8 Rename protocol to SupportsGetData 2024-05-10 11:46:35 +02:00
Hugo van Kemenade
0cad346fc9
Merge pull request #8042 from radarhere/type_hint 2024-05-09 17:38:46 +03:00
Andrew Murray
b2ce2f6ec4
Merge branch 'main' into type_hints 2024-05-09 08:58:03 +10:00
Andrew Murray
47580f257b Updated libjpeg-turbo to 3.0.3 2024-05-09 08:51:12 +10:00
Andrew Murray
ce8dedadfd
Merge branch 'main' into modes 2024-05-08 22:11:50 +10:00
Sebastian Rittau
bb8718e581 Hopefully the last Python 3.8 instance :/ 2024-05-08 12:54:44 +02:00
Sebastian Rittau
296050f382 More Python 3.8 compatibility 2024-05-08 12:26:45 +02:00
Sebastian Rittau
7ae8d37138 Make GetDataTransform public 2024-05-08 12:14:59 +02:00
Sebastian Rittau
ef35d79264 Python 3.8 compatibility 2024-05-08 12:14:37 +02:00
Andrew Murray
c6a3f0fdd8
Merge branch 'main' into accept 2024-05-08 18:45:10 +10:00
Andrew Murray
58ee112a9a
Merge branch 'main' into type_hint 2024-05-08 18:04:02 +10:00
Andrew Murray
a3356879fd Use f-string 2024-05-08 17:57:36 +10:00
Hugo van Kemenade
8246673fe3
Merge pull request #8041 from radarhere/codecov 2024-05-08 09:57:32 +03:00
Andrew Murray
ed0867abec Set stream length for later use 2024-05-08 06:30:43 +10:00
Sebastian Rittau
d63caf266d Various fixes 2024-05-07 15:59:20 +02:00
Sebastian Rittau
d44e9fccb1 Various fixes 2024-05-07 14:53:26 +02:00
pre-commit-ci[bot]
1aa3886ed7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-07 12:34:02 +00:00
Sebastian Rittau
c92f59d758 Add various type annotations 2024-05-07 14:30:34 +02:00
Andrew Murray
7d81cbd0ed Do not use percent format 2024-05-07 14:01:27 +10:00
Andrew Murray
b17f1e507b Use f-strings 2024-05-07 14:01:08 +10:00
pre-commit-ci[bot]
b8e3e0a430
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.4.3)
- [github.com/psf/black-pre-commit-mirror: 24.3.0 → 24.4.2](https://github.com/psf/black-pre-commit-mirror/compare/24.3.0...24.4.2)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)
- [github.com/python-jsonschema/check-jsonschema: 0.28.1 → 0.28.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.28.1...0.28.2)
- [github.com/tox-dev/pyproject-fmt: 1.7.0 → 1.8.0](https://github.com/tox-dev/pyproject-fmt/compare/1.7.0...1.8.0)
2024-05-06 17:25:18 +00:00
Andrew Murray
93ca52fbe0
Merge pull request #8043 from mrKazzila/tmp/pr/move_to_f_str 2024-05-05 23:33:27 +10:00
pre-commit-ci[bot]
71b8d99b36 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-04 19:27:45 +00:00
mrKazzila
984c2e7f30 chore: update __repr__ for PdfName 2024-05-04 19:26:22 +03:00
mrKazzila
74063feadc chore: add f-string formatting 2024-05-04 19:21:49 +03:00
Andrew Murray
6036d81d97 Added type hints 2024-05-04 20:51:54 +10:00
Andrew Murray
ac1eb57c03 Install git 2024-05-03 09:43:50 +10:00
Andrew Murray
e8cddfbc6a Updated codecov/codecov-action to v4 2024-05-03 08:45:39 +10:00
Nulano
007caae02a Merge remote-tracking branch 'origin/type_hints' into type_hints 2024-04-30 16:33:02 +02:00
Nulano
c2cb944514 Ignore incorrect mypy warning 2024-04-30 16:32:44 +02:00
Nulano
74b87ae748 Move import to top of file 2024-04-30 16:32:29 +02:00
Andrew Murray
7d62c306cc
Merge branch 'main' into pre-commit-clang 2024-04-30 21:34:41 +10:00
Andrew Murray
a304fd5f41
Merge branch 'main' into type_hints 2024-04-30 19:41:34 +10:00
Hugo van Kemenade
58a47978af
Merge pull request #8030 from radarhere/type_hints 2024-04-30 12:37:37 +03:00
Andrew Murray
b60b6063dd
Merge branch 'main' into type_hints 2024-04-30 18:16:55 +10:00
Andrew Murray
8a56feea02
Merge branch 'main' into type_hints 2024-04-30 18:15:33 +10:00
Hugo van Kemenade
ddbf08fa78
Merge pull request #8023 from radarhere/ubuntu 2024-04-30 10:45:50 +03:00
Nulano
5f805c39cc Added type hints for PixelAccess methods and others 2024-04-29 23:52:51 +02:00
Andrew Murray
2250fbeb9a Added type hints 2024-04-29 20:25:11 +10:00
Hugo van Kemenade
9b1390792c
Merge pull request #8028 from radarhere/ci 2024-04-29 13:21:04 +03:00
Andrew Murray
65d73ea970 Python 3.8 and 3.9 are tested on macOS 13 2024-04-29 18:54:16 +10:00
Andrew Murray
36869833c7 Added Ubuntu 24.04 2024-04-29 15:05:22 +10:00
Hugo van Kemenade
e542c9f898
Merge pull request #8027 from radarhere/clean
Removed direct invocation of setup.py
2024-04-29 06:31:45 +03:00
Andrew Murray
d01e43e796 Removed direct invocation of setup.py 2024-04-29 09:11:33 +10:00
Hugo van Kemenade
d443d68822
Merge pull request #119 from radarhere/pre-commit-clang 2024-04-28 18:59:50 +03:00
Andrew Murray
996c053d89 Change comment style 2024-04-28 22:49:56 +10:00
Hugo van Kemenade
5597f618a3
Change comment style
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-28 02:49:42 -06:00
Hugo van Kemenade
aa34ca7573
Merge pull request #118 from radarhere/pre-commit-clang 2024-04-28 11:11:55 +03:00
Andrew Murray
fd8c6a6295 Do not indent goto labels 2024-04-28 13:51:32 +10:00
Andrew Murray
39da704c61 Updated libimagequant to 4.3.1 2024-04-28 07:10:15 +10:00
Hugo van Kemenade
c250a44177
Merge pull request #8022 from radarhere/big_endian 2024-04-27 11:57:16 +03:00
Andrew Murray
86fb383739 Corrected big-endian check 2024-04-27 14:08:36 +10:00
Andrew Murray
824db7152d
Merge pull request #8020 from CTimmerman/CTimmerman-patch-1
Corrected typo
2024-04-27 14:00:43 +10:00
Cees Timmerman
8cc48b24fe
Update ExifTags.py
Fixed typo. No other instances in this repo.
2024-04-26 17:17:44 +02:00
Hugo van Kemenade
a8f434f676
Merge pull request #7979 from radarhere/lab 2024-04-26 16:46:21 +03:00
Andrew Murray
c3ded3abda Update CHANGES.rst [ci skip] 2024-04-26 09:13:00 +10:00
Andrew Murray
e932d9e3d7
Merge branch 'main' into lab 2024-04-26 09:08:43 +10:00
Andrew Murray
5832288bbf
Merge pull request #7978 from radarhere/bgr
Deprecate BGR;15, BGR;16 and BGR;24 modes
2024-04-26 09:05:57 +10:00
Andrew Murray
5736da80f1
Merge pull request #24 from hugovk/bgr-helper
Add deprecation helper for Image.new with BGR; modes
2024-04-26 08:17:00 +10:00
Andrew Murray
f7c9327264
Merge branch 'bgr' into bgr-helper 2024-04-26 08:13:38 +10:00
Andrew Murray
f56a2c9b7e
Merge branch 'main' into bgr 2024-04-26 07:11:04 +10:00
Hugo van Kemenade
1138ea5370
Merge pull request #7921 from Yay295/testing
Fix ImagingAccess for I;16N on big-endian
2024-04-25 21:36:38 +03:00
pre-commit-ci[bot]
1420e72566 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-25 18:08:54 +00:00
Hugo van Kemenade
c0cb417a44
Add semicolons to fix indent 2024-04-25 21:08:24 +03:00
Yay295
a4080a7249 clean up comments in test_image_access.py 2024-04-25 08:51:33 -05:00
Hugo van Kemenade
0099de0ed9 Add deprecation helper for Image.new with BGR; modes 2024-04-25 16:00:14 +03:00
pre-commit-ci[bot]
617e7295a8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-25 12:51:24 +00:00
Hugo van Kemenade
1b1c825f7b Add ClangFormat to pre-commit 2024-04-25 15:17:25 +03:00
Hugo van Kemenade
3823675af0
Merge pull request #8011 from radarhere/imagingcms 2024-04-25 14:54:33 +03:00
Hugo van Kemenade
a1ff0da7e3
Merge pull request #8012 from radarhere/fedora 2024-04-25 09:36:49 +03:00
Andrew Murray
bbd5a87e60 Combined conditions 2024-04-25 16:16:33 +10:00
Andrew Murray
4241836012
Merge pull request #8001 from hugovk/dater
Automatically add dates to release notes
2024-04-25 15:05:20 +10:00
Hugo van Kemenade
9392906a3e
Merge pull request #117 from radarhere/dater
Use split instead of datetime
2024-04-25 07:10:11 +03:00
Andrew Murray
66ee1cb0c1
Merge pull request #8013 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.10.0
2024-04-25 13:36:39 +10:00
Andrew Murray
bc35bf0c9e Use split instead of datetime 2024-04-25 13:14:38 +10:00
Andrew Murray
5faebadd56 BGR;16 does not fail on big-endian 2024-04-24 21:05:59 -05:00
renovate[bot]
35ffbdc9cd
Update dependency mypy to v1.10.0 2024-04-25 01:38:43 +00:00
Andrew Murray
02db411190 Added release notes 2024-04-25 09:14:48 +10:00
Andrew Murray
49ce63d257
Merge branch 'main' into bgr 2024-04-25 09:13:20 +10:00
Andrew Murray
03bcf03567 Removed Fedora 38 and added Fedora 40 2024-04-25 08:41:15 +10:00
Hugo van Kemenade
1fc1179ed5
Merge pull request #8008 from radarhere/convert
Simplified RGB to I;16, I;16L and I;16B conversion
2024-04-25 00:00:15 +03:00
Hugo van Kemenade
48907a6741
Merge pull request #8009 from radarhere/zlib-ng 2024-04-24 18:34:45 +03:00
Andrew Murray
4af831e70c Accept '.zlib-ng' suffix to zlib version 2024-04-24 23:45:25 +10:00
Hugo van Kemenade
c0678eda62
Merge pull request #116 from radarhere/dater 2024-04-24 16:29:09 +03:00
Andrew Murray
ccf1efb3ef Use subprocess.DEVNULL 2024-04-24 23:06:06 +10:00
Andrew Murray
41270f300f
Merge pull request #8010 from hugovk/fix-ci-3.8-3.9
GitHub Actions: use `macos-13` or `macos-14` instead of `macos-latest`
2024-04-24 22:01:27 +10:00
Hugo van Kemenade
76c17a10f0 GitHub Actions: macos-13 is Intel but macos-latest will be M1 2024-04-24 11:24:23 +03:00
Hugo van Kemenade
03627d92a7 GitHub Actions: Python 3.8 and 3.9 are on macos-13 but not macos-14 2024-04-24 11:23:44 +03:00
Hugo van Kemenade
98e3f591d4
Merge pull request #8006 from Yay295/patch-4
Extract band count check
2024-04-24 07:25:37 +03:00
Andrew Murray
46b85e6ab4 Simplified code 2024-04-24 11:02:56 +10:00
Andrew Murray
2adeb7a6c5
Merge pull request #8005 from Yay295/patch-2
Remove unused variable
2024-04-24 10:18:06 +10:00
Yay295
eee53ba664
extract band count check 2024-04-23 13:06:22 -05:00
Yay295
b9307f08d1
remove unused variable 2024-04-23 12:02:25 -05:00
Hugo van Kemenade
e63ae380f1
Merge pull request #8004 from Yay295/patch-2 2024-04-23 17:11:38 +03:00
Yay295
4a4eb0f3ee
remove semicolon after function definition 2024-04-23 01:08:42 -05:00
Andrew Murray
7f6ad116d1 Update CHANGES.rst [ci skip] 2024-04-23 08:02:42 +10:00
Hugo van Kemenade
1c21cd41bd
Merge pull request #8000 from radarhere/libtiff 2024-04-22 22:56:30 +03:00
Hugo van Kemenade
02915c778e
Merge pull request #7996 from radarhere/tiff_px 2024-04-22 17:10:44 +03:00
Hugo van Kemenade
3500334338 Fetch tags on Read the Docs 2024-04-22 15:48:44 +03:00
Hugo van Kemenade
d4a4b59ee3 Sphinx extension to add dates to release notes
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2024-04-22 15:48:19 +03:00
Hugo van Kemenade
37a8364278
Merge pull request #7998 from radarhere/libtiff_v3 2024-04-22 15:45:32 +03:00
Andrew Murray
5a0a288dd0 Added release notes 2024-04-22 19:16:55 +10:00
Andrew Murray
2e1d2b2029 Updated deprecation message 2024-04-22 19:15:38 +10:00
Andrew Murray
e144e41879
Updated wording
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-22 19:14:23 +10:00
Andrew Murray
0df8796e19 Parametrized test 2024-04-22 18:45:41 +10:00
Andrew Murray
c7bb152ed9 support_custom_tags attribute is not present if libtiff is not supported 2024-04-22 18:30:00 +10:00
Andrew Murray
023d017da0 Deprecate libtiff < 4 2024-04-22 18:26:20 +10:00
Hugo van Kemenade
492c726350
Merge pull request #7989 from radarhere/typehints_imagecms
Removed type hint ignores
2024-04-22 07:42:21 +03:00
Andrew Murray
f690b7f691 Added MPEG accept function 2024-04-22 13:39:35 +10:00
Andrew Murray
745eb23a87 Use LAB hopper file if conversion is not supported 2024-04-22 09:23:59 +10:00
Andrew Murray
4171435db4 Added more modes 2024-04-22 09:23:41 +10:00
Andrew Murray
d5c1ff4b43 Removed type hint ignores 2024-04-22 09:23:10 +10:00
Andrew Murray
eee633cb21
Merge pull request #7975 from radarhere/libtiff
Corrected check for libtiff feature
2024-04-22 09:00:35 +10:00
Andrew Murray
bb2411dd01 Support reading P mode TIFF images with padding 2024-04-22 08:11:45 +10:00
Andrew Murray
98a0515494 Read images as RGB, rather than RGBX 2024-04-22 08:05:59 +10:00
Yay295
98510570e6 ignore BGR;15/16 test failure on big-endian 2024-04-20 10:13:38 -05:00
Andrew Murray
5c960d6abc rename "image_mode_names" to "modes" 2024-04-20 09:03:19 -05:00
Andrew Murray
5573ec7490 use hopper() for test_getdata_putdata() 2024-04-20 09:02:49 -05:00
Yay295
fe79ae5653 get pixel size by counting bytes in 1x1 image 2024-04-20 09:01:46 -05:00
Yay295
5dabc6cf14 fix I;16N lib pack test 2024-04-20 09:01:38 -05:00
Yay295
da7198c987 fix ImagingAccess for I;16N on big-endian 2024-04-20 09:01:38 -05:00
Yay295
0fed6a5fbc use common image mode list for TestImageGetPixel tests 2024-04-20 09:01:38 -05:00
Yay295
5a4b771fb0 move image mode info variables to helper.py 2024-04-20 09:01:38 -05:00
Yay295
139245a3db use namedtuple for image mode info 2024-04-20 09:01:37 -05:00
Andrew Murray
11ac0c1703 Combine tests through parametrization 2024-04-19 17:15:10 +10:00
Andrew Murray
533f78e0a2 Parametrize test 2024-04-19 07:47:14 +10:00
Andrew Murray
28f436c94d Use monkeypatch to set READ_LIBTIFF and WRITE_LIBTIFF 2024-04-18 17:57:40 +10:00
Andrew Murray
2c0b2dceba Updated nasm to 2.16.03 2024-04-18 08:33:37 +10:00
Hugo van Kemenade
f8160b858a
Merge pull request #7936 from adamjstewart/types/fromarray 2024-04-17 16:43:57 +03:00
Hugo van Kemenade
b3749e40c4
Merge pull request #7987 from radarhere/imageshow
Corrected ImageShow UnixViewer command
2024-04-17 11:31:22 +03:00
Andrew Murray
c20804df4c
Merge pull request #7988 from hugovk/rm-sphinx-removed-in
Remove sphinx-removed-in, now Sphinx 7.3 adds versionremoved
2024-04-17 17:52:41 +10:00
Hugo van Kemenade
a64f4cf685 Remove sphinx-removed-in, now Sphinx 7.3.0 adds versionremoved 2024-04-17 09:23:41 +03:00
Hugo van Kemenade
afd01bda62
Merge pull request #7985 from radarhere/sphinx 2024-04-17 09:23:18 +03:00
Andrew Murray
03835ce6f5 Corrected UnixViewer command 2024-04-17 14:51:12 +10:00
Andrew Murray
cd179541b1 Removed nitpick_ignore by updating Sphinx to 7.3 2024-04-17 11:47:35 +10:00
Hugo van Kemenade
0e90c1c9ae
Merge pull request #7952 from nulano/types-imagestat 2024-04-16 20:57:14 +03:00
Ondrej Baranovič
2e73bed053
ImageStat: simplify if block
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-16 18:34:48 +02:00
Ondrej Baranovič
8b62538617
ImageStat: simplify call to Image.histogram(mask)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-16 18:27:48 +02:00
Adam J. Stewart
c655dc0c6b
Use a property
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-04-16 17:53:48 +02:00
Hugo van Kemenade
a83bc3f038
Merge pull request #7981 from radarhere/links
Updated installation links
2024-04-16 07:57:58 +03:00
Andrew Murray
712aa994f2 Updated libxcb to 1.17.0 2024-04-16 07:14:04 +10:00
Andrew Murray
1af66df732 Updated xcb-proto to 1.17.0 2024-04-16 07:13:40 +10:00
Andrew Murray
66d32a7dff Updated installation links 2024-04-16 07:03:56 +10:00
Andrew Murray
d431c97ba3 Deprecate BGR;15, BGR;16 and BGR;24 2024-04-15 19:28:52 +10:00
Hugo van Kemenade
e7a0ef44bb
Merge pull request #7977 from radarhere/centos8
Removed CentOS Stream 8
2024-04-15 07:17:50 +03:00
Andrew Murray
25b4652324 Removed CentOS Stream 8 2024-04-14 23:06:28 +10:00
Andrew Murray
5d83a7f1f0
Merge pull request #7976 from radarhere/centos
Removed CentOS 7
2024-04-14 23:06:08 +10:00
Andrew Murray
3e1df0afeb Removed CentOS 7 2024-04-14 22:28:28 +10:00
Andrew Murray
71029803e7 Corrected check for libtiff feature 2024-04-14 21:57:29 +10:00
Hugo van Kemenade
db21e7de1c
Merge pull request #7974 from radarhere/release-test
dist directory is no longer created
2024-04-13 11:04:19 +03:00
Andrew Murray
e58cccfc23 Update CHANGES.rst [ci skip] 2024-04-13 16:28:29 +10:00
Andrew Murray
22705d3da5
Merge pull request #7956 from Cirras/obscure-bitmap-headers
Add support for reading `BITMAPV2INFOHEADER` and `BITMAPV3INFOHEADER`
2024-04-13 16:25:26 +10:00
Andrew Murray
77e2c38aea dist directory is no longer created 2024-04-13 15:54:42 +10:00
Andrew Murray
3037dea7e1
Merge pull request #7957 from hugovk/make-release-test-eggless
Update `make release-test`: no more eggs
2024-04-13 15:52:47 +10:00
Andrew Murray
7b9a276c7f Updated libwebp to 1.4.0 2024-04-13 13:47:52 +10:00
Hugo van Kemenade
de18f55568
Merge pull request #7967 from Yay295/patch-1
Fix test error message grammar
2024-04-12 00:53:22 +03:00
Yay295
c1f6abbd37
Fix test error message grammar 2024-04-11 14:07:07 -05:00
Hugo van Kemenade
4897954223
Merge pull request #7951 from Yay295/patch-2 2024-04-11 13:47:05 +03:00
Hugo van Kemenade
3fd5739a72
Merge pull request #7964 from Yay295/patch-1 2024-04-11 13:43:18 +03:00
Yay295
82b7b8a9ee
Fix some comments 2024-04-11 00:29:31 -05:00
Andrew Murray
34b3cb519c Converted example images to WebP 2024-04-10 23:37:38 +10:00
Andrew Murray
94fe670c0b Test DIB header size 2024-04-10 23:18:31 +10:00
Andrew Murray
e2a57263c7 Reduced duplicate code 2024-04-10 20:37:44 +10:00
Andrew Murray
4b4cdbd40c Added image to supported list 2024-04-10 20:37:44 +10:00
Andrew Murray
c1e2700442
Merge pull request #7959 from hugovk/update-release-checklist
Release checklist: inline the 'Source and Binary Distributions' step
2024-04-10 14:16:31 +10:00
Hugo van Kemenade
955c5dac03
Merge pull request #7960 from radarhere/selftest 2024-04-09 10:51:57 +03:00
Andrew Murray
3a92d4af01 Replace ImageMath.eval with ImageMath.lambda_eval 2024-04-09 07:34:52 +10:00
Hugo van Kemenade
bf463c25df Inline the 'Source and Binary Distributions' step 2024-04-08 22:48:08 +03:00
Hugo van Kemenade
40504bb490 No more eggs 2024-04-08 22:15:51 +03:00
Andrew Murray
98ae91a65d Added BGXR and BGAR unpackers 2024-04-09 00:45:48 +10:00
Jonah Jeleniewski
9e5b9fb18f Improve comments around bitmap info headers 2024-04-08 22:38:06 +10:00
Jonah Jeleniewski
a1a2202ebe Add support for bitmaps with header size 56
Size 56 is the undocumented `BITMAPV3INFOHEADER`.
It adds the alpha bit mask.

The format is known to be supported by:
- Windows (MS paint, etc.)
- Adobe Photoshop
- Popular web browsers
2024-04-08 22:38:06 +10:00
Jonah Jeleniewski
2f3281dcda Add support for bitmaps with header size 52
Size 52 is the undocumented `BITMAPV2INFOHEADER`.
It adds the RGB bit masks.

The format is known to be supported by:
- Adobe Photoshop
- Popular web browsers
2024-04-08 21:18:19 +10:00
Hugo van Kemenade
33a73b5266
Merge pull request #7955 from radarhere/imagemode
Removed outdated comment
2024-04-07 09:51:24 +03:00
Andrew Murray
76fb002dd4
Removed outdated comment 2024-04-07 16:14:41 +10:00
Nulano
bcb2db6a87 ImageStat: use functools.cached_property and add type hints 2024-04-07 00:46:16 +02:00
Andrew Murray
a25a1aef05 Update CHANGES.rst [ci skip] 2024-04-07 08:38:43 +10:00
Andrew Murray
84238bd459
Merge branch 'main' into types/fromarray 2024-04-07 08:32:48 +10:00
Andrew Murray
84a02c851a
Merge pull request #7944 from nulano/type-image-open
Add type hints for `Image.open`, `Image.init`, and `Image.Image.save`
2024-04-07 08:31:55 +10:00
Hugo van Kemenade
38f4c7ba5a
Merge pull request #7950 from Yay295/patch-1
Rename test_roundtrip() to test_mode()
2024-04-07 00:18:58 +03:00
Yay295
05d2314606
Make ModeDescriptor a NamedTuple 2024-04-06 15:52:17 -05:00
Yay295
1635e7a571
Update Tests/test_image_getdata.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-06 15:18:16 -05:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Yay295
6a255de24f
Rename test_roundtrip() to test_hopper()
This test isn't actually roundtripping anything.
2024-04-06 11:14:38 -05:00
Hugo van Kemenade
06b71f714f
Merge pull request #7947 from radarhere/jpeg2000_cmyk 2024-04-06 16:24:39 +03:00
Andrew Murray
2245df0ac3 Only preserve IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED 2024-04-06 20:59:06 +11:00
Hugo van Kemenade
f8ec9f7974
Merge pull request #7931 from Yay295/imagingcms_modes
Remove unused CMS properties and fix documentation
2024-04-06 09:28:45 +03:00
Andrew Murray
7eee479ce5 Corrected indentation 2024-04-05 23:35:12 -05:00
Andrew Murray
1c2a323a90 Corrected variable name 2024-04-05 23:35:12 -05:00
Andrew Murray
c61a481028 Support reading CMYK JPEG2000 images 2024-04-06 13:40:39 +11:00
Andrew Murray
ff64adee9d
Merge pull request #7937 from radarhere/qoi
Document that QoiImagePlugin uses Python for decoding
2024-04-05 16:42:54 +11:00
Nulano
819e1b9dd2 add type hints for Image.save 2024-04-04 23:38:50 +02:00
Andrew Murray
059b8e9171 Updated line formatting 2024-04-05 06:52:36 +11:00
Andrew Murray
0702f704fa
Remove commas
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-04-05 05:16:41 +11:00
Andrew Murray
2a2588d5df
Use extlink
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-05 05:09:11 +11:00
Nulano
8c14a394c1 add type hints for Image.open and Image.init 2024-04-04 20:01:24 +02:00
Andrew Murray
0cc5de4e09 Link to https://pypi.org/project/qoi 2024-04-04 12:17:02 +11:00
Adam J. Stewart
92dfb02096
Merge pull request #1 from radarhere/types/fromarray
Added SupportsArrayInterface
2024-04-03 11:20:05 +02:00
Andrew Murray
e85a84baa7 Added SupportsArrayInterface 2024-04-03 20:00:40 +11:00
Hugo van Kemenade
e8ab564077
Merge pull request #7938 from radarhere/appveyor 2024-04-03 09:23:28 +03:00
Andrew Murray
a6793bba5e Updated pattern for skipping builds based on file changes 2024-04-03 12:19:45 +11:00
Andrew Murray
8c57cd56a5 QoiImagePlugin uses PyDecoder 2024-04-03 12:00:02 +11:00
Adam J. Stewart
5d19151cd3
Python 3.10+ 2024-04-02 17:56:52 +02:00
pre-commit-ci[bot]
8a63980e39 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-02 15:53:42 +00:00
Adam J. Stewart
37ed8c337d
Try type comment 2024-04-02 17:53:11 +02:00
pre-commit-ci[bot]
8e47a6f2c8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-02 15:46:28 +00:00
Adam J. Stewart
4915f19b13
fromarray: add type hints 2024-04-02 17:45:06 +02:00
Hugo van Kemenade
aeeb596c98
Merge pull request #7934 from radarhere/macos 2024-04-02 10:54:41 +03:00
Andrew Murray
38e8112650 Updated macOS tested Pillow versions 2024-04-02 17:58:49 +11:00
Hugo van Kemenade
7f9a174b33
Merge pull request #7933 from jbjd/fix_ImageMath.rst 2024-04-02 09:36:45 +03:00
Andrew Murray
75454646f4 Moved code onto single line 2024-04-02 00:38:02 -05:00
jbjd
b37279a29c fix parameter name in ImageMath docs 2024-04-01 20:09:02 -05:00
Andrew Murray
dc3ea89c33
Merge pull request #7932 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-04-02 08:59:58 +11:00
Hugo van Kemenade
7867040486 Check GHA, RTD and Renovate config with pre-commit 2024-04-01 20:55:19 +03:00
Hugo van Kemenade
55b8f9126b Move Ruff's fix=true up from pre-commit to pyproject 2024-04-01 20:49:47 +03:00
Hugo van Kemenade
97c6e46f34 Fix lint 2024-04-01 20:49:19 +03:00
pre-commit-ci[bot]
88ddcde8d8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-01 17:24:31 +00:00
pre-commit-ci[bot]
793bb7fb6f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.3.4)
- [github.com/psf/black-pre-commit-mirror: 24.1.1 → 24.3.0](https://github.com/psf/black-pre-commit-mirror/compare/24.1.1...24.3.0)
- [github.com/PyCQA/bandit: 1.7.7 → 1.7.8](https://github.com/PyCQA/bandit/compare/1.7.7...1.7.8)
- [github.com/Lucas-C/pre-commit-hooks: v1.5.4 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.4...v1.5.5)
2024-04-01 17:24:09 +00:00
Yay295
7a9b57ce08 remove mode properties from CmsTransform interface 2024-04-01 10:16:23 -05:00
Yay295
16ce3da0a4 remove unused mode properties from CmsTransformObject/PIL.ImageCms.core.CmsTransform 2024-04-01 09:45:52 -05:00
Yay295
8e96748aea correct property names in method documentation 2024-04-01 09:40:39 -05:00
Hugo van Kemenade
6b676f2962
Merge pull request #7930 from radarhere/imagecms 2024-04-01 17:40:07 +03:00
Hugo van Kemenade
2f28ebbb6d 10.4.0.dev0 version bump 2024-04-01 15:35:42 +03:00
Andrew Murray
e4a10051b6 Corrected test 2024-04-01 23:25:27 +11:00
Hugo van Kemenade
5c89d88eee 10.3.0 version bump 2024-04-01 12:22:36 +03:00
Andrew Murray
63cbfcfdea Update CHANGES.rst [ci skip] 2024-04-01 20:19:46 +11:00
Hugo van Kemenade
2776126aa9
Merge pull request #7928 from python-pillow/lcms 2024-04-01 12:16:21 +03:00
Andrew Murray
aeb51cbb16
Merge branch 'main' into lcms 2024-04-01 19:26:55 +11:00
Andrew Murray
5beb0b6664 Update CHANGES.rst [ci skip] 2024-04-01 19:24:44 +11:00
mergify[bot]
cac6ffa7b3
Merge pull request #7927 from python-pillow/imagemath
Deprecate eval(), replacing it with lambda_eval() and unsafe_eval()
2024-04-01 08:23:16 +00:00
Hugo van Kemenade
f5eeeacf75 Name as 'options' in lambda_eval and unsafe_eval, but '_dict' in deprecated eval 2024-04-01 09:35:49 +03:00
Andrew Murray
facf3af93d Added release notes 2024-04-01 09:25:59 +03:00
Andrew Murray
2a93aba5cf Use strncpy to avoid buffer overflow 2024-04-01 09:24:43 +03:00
Andrew Murray
a670597bc3 Update CHANGES.rst [ci skip] 2024-04-01 17:21:04 +11:00
pre-commit-ci[bot]
8f3860c29b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-01 06:17:03 +00:00
mergify[bot]
835ca1b789
Merge pull request #7924 from hugovk/image-type-hints
Add type hints to `Image.py`
2024-04-01 06:16:16 +00:00
Andrew Murray
f6596d5293 Added release notes and document deprecation 2024-04-01 09:12:22 +03:00
Andrew Murray
f932cb895f Added danger alerts 2024-04-01 09:12:15 +03:00
Andrew Murray
a7e82cbe9a Removed "In the current version" 2024-04-01 09:12:04 +03:00
Andrew Murray
27b10c4bd8 Deprecate eval(), replacing it with lambda_eval() and unsafe_eval() 2024-04-01 09:11:59 +03:00
Hugo van Kemenade
22376775b0
Merge pull request #7912 from hugovk/hopper-lru-cache 2024-04-01 08:53:01 +03:00
Hugo van Kemenade
da13358245
Merge pull request #7883 from radarhere/tiff
Raise ValueError if seeking to greater than offset-sized integer in TIFF
2024-04-01 08:46:05 +03:00
Hugo van Kemenade
7c5d0b9284
Add type hints
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:44:27 -06:00
Hugo van Kemenade
1d733f498f
Merge pull request #7925 from radarhere/qoi 2024-04-01 08:24:37 +03:00
Hugo van Kemenade
008b28eb0c
Add type hints
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:20:11 -06:00
Hugo van Kemenade
512ee3ff9b
Simplify code and update comments
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:13:30 -06:00
Andrew Murray
b7d0908dc5 Increase use of bytearrays to improve loading speed 2024-04-01 15:31:44 +11:00
Andrew Murray
badc92079d Do not cast to bytes for set_as_raw() 2024-04-01 15:24:40 +11:00
Andrew Murray
f69168523e Do not calculate destination length each time 2024-04-01 15:24:10 +11:00
Andrew Murray
d31148bb86 Update CHANGES.rst [ci skip] 2024-04-01 13:51:55 +11:00
Andrew Murray
d97585af5a
Merge pull request #7923 from hugovk/release-notes
Add type hints to release notes
2024-04-01 13:47:10 +11:00
Hugo van Kemenade
b6c755df32 Add type hints
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 22:05:16 +03:00
Hugo van Kemenade
9f5d6e0c31
Fix type hint
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 10:02:23 -06:00
Hugo van Kemenade
6d57e88237
Improve wording
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 17:41:46 +03:00
Hugo van Kemenade
7b2320b50f Fix typos 2024-03-31 15:57:20 +03:00
Hugo van Kemenade
edd620a352 Add type hints to release notes 2024-03-31 15:56:57 +03:00
Hugo van Kemenade
6c55ab22d7
Merge pull request #7913 from nulano/types-cms2 2024-03-31 15:34:03 +03:00
Hugo van Kemenade
ed5cd18d9c Always return fresh not-yet-loaded image for hopper(None) 2024-03-31 15:07:15 +03:00
Andrew Murray
46b0b0e57d
Merge branch 'main' into types-cms2 2024-03-31 07:22:40 +11:00
Hugo van Kemenade
a6c7a04c00
Merge pull request #7856 from radarhere/docs
Corrected exiv2.org links
2024-03-30 22:19:57 +02:00
Andrew Murray
199bff369e
Merge branch 'main' into hopper-lru-cache 2024-03-30 23:11:04 +11:00
Hugo van Kemenade
b263719ad4
Merge pull request #7920 from radarhere/convert 2024-03-30 13:04:25 +02:00
Ondrej Baranovič
94732782d0
link to sphinx issue
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-30 10:26:39 +01:00
Andrew Murray
838bb6c493 Added RGB to I;16N conversion 2024-03-30 20:22:50 +11:00
Andrew Murray
328052730d
Merge branch 'main' into hopper-lru-cache 2024-03-30 20:20:51 +11:00
Hugo van Kemenade
a4e5dc219c
Merge pull request #7818 from nulano/bugreport 2024-03-30 11:13:02 +02:00
Hugo van Kemenade
c5eb7c7c29
Merge pull request #7918 from radarhere/convert 2024-03-30 11:12:05 +02:00
Hugo van Kemenade
0b1d0c23de
Merge pull request #7658 from nulano/build-editable 2024-03-30 11:10:46 +02:00
Hugo van Kemenade
016415800a
Merge pull request #7209 from Yay295/bytes_tests 2024-03-30 11:08:50 +02:00
Hugo van Kemenade
1de013a0ac
Merge pull request #7917 from radarhere/harfbuzz 2024-03-30 11:08:25 +02:00
Nulano
c4114adc41 use Flags not Flags|int 2024-03-30 09:14:48 +01:00
Nulano
5355af0ddd use SupportsFloat instead of float in _imagingcms.pyi 2024-03-30 09:11:15 +01:00
Ondrej Baranovič
6b0a79ce57 sort the parameters 2024-03-30 07:33:27 +00:00
Andrew Murray
1ac1540fe3 Combined test_report.py into test_main.py 2024-03-30 07:33:27 +00:00
Ondrej Baranovič
7e71621671
Update src/PIL/features.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-30 08:13:44 +01:00
Andrew Murray
fb6b860172 Added RGB to I;16, I;16L and I;16B conversion 2024-03-30 11:33:55 +11:00
Andrew Murray
f8825d3736 Updated harfbuzz to 8.4.0 2024-03-30 09:20:45 +11:00
Hugo van Kemenade
d131f1c513 Clarify comments 2024-03-28 22:13:09 +02:00
Andrew Murray
f0767ee4da Update CHANGES.rst [ci skip] 2024-03-29 06:41:44 +11:00
Andrew Murray
60976c8dbe
Merge branch 'main' into bytes_tests 2024-03-29 06:31:06 +11:00
Andrew Murray
e6fa5dff63 Append custom parameter to the end of sys.argv 2024-03-28 17:40:54 +00:00
Nulano
aef7ccda3a use SupportsRead instead of BinaryIO 2024-03-28 18:35:20 +01:00
Nulano
d3665ea0ea fix lint 2024-03-28 18:20:32 +01:00
Ondrej Baranovič
ff523e3009
Update .github/ISSUE_TEMPLATE/ISSUE_REPORT.md
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-28 17:52:15 +01:00
Nulano
a81b945129 Update CmsProfile docs to match _imagingcms type stubs 2024-03-28 17:26:05 +01:00
Nulano
abb73b5b86 use PIL.ImageCms.core as module for PIL._imagingcms classes 2024-03-28 17:26:05 +01:00
Nulano
0015e9ce68 expose ImageCms.core.CmsTransform 2024-03-28 17:26:03 +01:00
Nulano
047a0d2a64 do not allow ImageCms.core.CmsProfile to be instantiated directly 2024-03-28 17:24:50 +01:00
Nulano
afd6e1fa29 import _imagingcms as core 2024-03-28 17:23:54 +01:00
Nulano
21566ebcdc add type hints to pyCms functions in ImageCms 2024-03-28 17:23:54 +01:00
Nulano
a1a687c261 add type hints to ImageCms.get_display_profile 2024-03-28 17:23:54 +01:00
Nulano
0630ef061f add type hints for ImageCms.{ImageCmsProfile,ImageCmsTransform} 2024-03-28 17:23:54 +01:00
Nulano
24ed5db2d1 check type given to ImageCms.core.profile_tobytes instead of crashing 2024-03-28 17:23:54 +01:00
Nulano
e7eea5ea30 add type hints to _imagingcms 2024-03-28 17:23:49 +01:00
Hugo van Kemenade
c2904b83b5
Merge pull request #7884 from radarhere/mpo 2024-03-28 18:13:57 +02:00
Hugo van Kemenade
d734c8b702
Merge pull request #7888 from radarhere/convert_rgb 2024-03-28 18:11:12 +02:00
Hugo van Kemenade
6464d5cf91
Merge pull request #7894 from radarhere/fits_gzip 2024-03-28 18:09:55 +02:00
Hugo van Kemenade
504a2e17c8 Use functools.lru_cache for hopper() 2024-03-28 18:04:19 +02:00
Hugo van Kemenade
e3aeaa6ff8
Merge pull request #7911 from Yay295/fix_unclosed_images
Use setup_module() to open images so they aren't opened if skipped
2024-03-28 08:12:04 +02:00
Yay295
0d86da54bc
add typing to "ims" in test_image_fromqimage.py
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-27 14:02:02 -05:00
pre-commit-ci[bot]
26a212126f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-27 15:57:36 +00:00
Yay295
9c6b30560e use setup_module() to open images so they aren't opened if skipped 2024-03-27 10:53:07 -05:00
Yay295
a4aac18ba3
Merge pull request #13 from radarhere/bytes_tests
Simplify tests
2024-03-27 09:37:01 -05:00
Hugo van Kemenade
3f49b0cfd2
Merge pull request #7907 from radarhere/xorgproto 2024-03-27 16:12:21 +02:00
Hugo van Kemenade
59cb1d75a9
Merge pull request #7909 from hugovk/appveyor-skip
Skip AppVeyor builds for irrelevant files
2024-03-27 13:00:21 +02:00
Hugo van Kemenade
f05946a390 Skip AppVeyor builds for irrelevant files 2024-03-27 12:30:39 +02:00
Hugo van Kemenade
fac81d6228
Merge pull request #7905 from radarhere/current 2024-03-27 11:10:24 +02:00
Andrew Murray
6ca8bfb253
Merge pull request #7897 from hugovk/flake8-pyi
Type hints: Add PYI (flake8-pyi) to Ruff and fix errors
2024-03-27 19:58:53 +11:00
Hugo van Kemenade
73bf04474f
enum can't be None
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 10:35:28 +02:00
Hugo van Kemenade
98c7d90af6
Variables can be None; update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 09:16:31 +02:00
Andrew Murray
142473c7b4 Support GZIP_1 compression 2024-03-26 21:29:28 +11:00
Andrew Murray
984480fd19 Updated xorgproto to 2024.1 2024-03-26 20:17:06 +11:00
Andrew Murray
e79d1746f2 Support conversion from RGB to La 2024-03-26 19:57:17 +11:00
Andrew Murray
ab8f465f1a Use transparency info when converting from RGB to LA 2024-03-26 19:55:22 +11:00
Andrew Murray
2c6258bee5 Updated indents 2024-03-26 06:08:10 +11:00
Andrew Murray
9d101bffeb
Removed reference to "current version"
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-26 06:07:39 +11:00
Andrew Murray
fb84c546b7 Removed references to the "current version" 2024-03-26 06:00:03 +11:00
Andrew Murray
58c4c757a2 Update CHANGES.rst [ci skip] 2024-03-25 21:06:10 +11:00
Andrew Murray
e0b1b38567
Merge pull request #7900 from scaramallion/dev-j2k-precision
Use I;16 mode for 9-bit JPEG 2000 images
2024-03-25 21:03:21 +11:00
scaramallion
144959ba9e
Merge pull request #2 from radarhere/dev-j2k-precision
Simplified code
2024-03-25 20:16:45 +11:00
scaramallion
7ca9bddf93
Update Tests/test_file_jpeg2k.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-25 20:13:45 +11:00
Andrew Murray
0f49eaf230 Simplified code 2024-03-25 18:23:52 +11:00
scaramallion
1f182ce8da Fix parsing the J2K header 2024-03-25 17:39:21 +11:00
Hugo van Kemenade
5e448b3013
Merge pull request #7904 from radarhere/releasenotes
Added release notes for #7872, #7882 and #7891
2024-03-25 07:56:10 +02:00
Andrew Murray
38f9193796 Added release notes for #7872 2024-03-25 10:35:00 +11:00
Andrew Murray
d7dba1cc67 Added release notes for #7882 2024-03-25 10:04:02 +11:00
Andrew Murray
0248e41800 Added release notes for #7891 2024-03-25 10:02:19 +11:00
pre-commit-ci[bot]
901c13c4b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-24 04:47:28 +00:00
scaramallion
ce060a8e8b Fix 9-bit JPEG 2000 images not using I;16 2024-03-24 15:40:11 +11:00
Andrew Murray
19cd94bdb3
Merge pull request #7895 from python-pillow/clean-up-authors-contributors
Clean up authors and contributors
2024-03-24 14:59:26 +11:00
Jeffrey A. Clark
567ee6bdaa
Update docs/conf.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-23 17:50:41 -04:00
Hugo van Kemenade
eff78cb514 Skip PYI034 as typing.Self is in Python 3.10+ 2024-03-23 20:52:51 +02:00
Hugo van Kemenade
20d8095439 Fix: PYI041 Use float instead of int | float 2024-03-23 20:52:50 +02:00
Hugo van Kemenade
6ed952b510 Fix: PYI024 Use typing.NamedTuple instead of collections.namedtuple 2024-03-23 20:52:50 +02:00
Hugo van Kemenade
5d37d028d3 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:44:43 +02:00
Hugo van Kemenade
41ffc1de81 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:41:29 +02:00
Hugo van Kemenade
9fc3fa8208 Add PYI (flake8-pyi) to Ruff 2024-03-23 20:41:29 +02:00
pre-commit-ci[bot]
66ef6ad9ac [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-23 13:49:20 +00:00
Jeffrey A. Clark (Alex)
4197263dff Clean up authors and contributors
- `s/Jeffrey A. Clark (Alex)/Jeffrey A. Clark/g`. People can figure out that I am Alex.
- We've added "contributors" to Fredrik's copyright statements because it seems appropriate that it be there based on: https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#02b5-117.
- Fredrik is the PIL author and I am the Pillow author.
- Consistently apply all of the above everywhere.
2024-03-23 09:40:39 -04:00
Andrew Murray
e320bdc1cd Update CHANGES.rst [ci skip] 2024-03-23 09:17:16 +11:00
mergify[bot]
759630fbaf
Merge pull request #7891 from radarhere/kmeans
Raise ValueError if kmeans is negative
2024-03-22 22:02:42 +00:00
Hugo van Kemenade
0c73db31d7
Merge pull request #7893 from radarhere/osubfiletype 2024-03-22 18:00:03 +02:00
Andrew Murray
47040c7b35 Test positive and zero kmeans 2024-03-22 23:53:07 +11:00
Andrew Murray
3004c46683 Block saving TIFF tag OSUBFILETYPE using libtiff 2024-03-22 23:43:55 +11:00
Andrew Murray
171e497e05 Raise ValueError if kmeans is negative 2024-03-22 17:36:04 +11:00
Hugo van Kemenade
ca973709a0
Merge pull request #7882 from radarhere/ppm 2024-03-21 18:24:54 +02:00
Hugo van Kemenade
9d3c8d54b4
Merge pull request #7870 from radarhere/j2k_pclr 2024-03-21 18:24:45 +02:00
Hugo van Kemenade
3bbc865afc
Merge pull request #7872 from radarhere/webp_alpha_quality 2024-03-21 18:20:40 +02:00
Hugo van Kemenade
98067db82d
Merge pull request #7886 from radarhere/harfbuzz 2024-03-21 18:20:05 +02:00
Hugo van Kemenade
ee5702352d
Merge pull request #7887 from radarhere/ghostscript 2024-03-21 18:19:56 +02:00
Andrew Murray
9c41bf4641 Only specify image size once 2024-03-21 19:16:06 +11:00
Andrew Murray
a0ab9f488f Added type hints 2024-03-21 19:12:48 +11:00
Andrew Murray
10ceae924c Removed unused number of bands 2024-03-21 19:11:35 +11:00
Andrew Murray
c3997050b0 Simplified test using assert_image_equal 2024-03-21 19:11:19 +11:00
Andrew Murray
fd80b2e1d9 Moved sample data inside test 2024-03-21 18:46:09 +11:00
Andrew Murray
8b6a182815 Support conversion from RGB to RGBa 2024-03-21 16:25:40 +11:00
Andrew Murray
a0388f2a67 Updated Ghostscript to 10.3.0 2024-03-21 11:44:03 +11:00
Andrew Murray
75a206bf58 Added conversion from RGB to RGBa and La 2024-03-20 08:57:06 -05:00
Yay295
d30404fede
use dummy var name for unused parts of unpacked tuple
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-20 08:55:05 -05:00
Hugo van Kemenade
b3edfb08ce
Merge pull request #7885 from hugovk/update-release-notes 2024-03-17 19:22:13 +02:00
Hugo van Kemenade
e57fb3e819
Merge pull request #115 from radarhere/update-release-notes 2024-03-17 13:18:05 +02:00
Andrew Murray
0c436023a0 Corrected heading 2024-03-17 22:06:56 +11:00
Andrew Murray
73bb28c866 Removed blank lines 2024-03-17 21:59:57 +11:00
Andrew Murray
4f677f2183 Reordered sections to match template 2024-03-17 21:59:46 +11:00
Andrew Murray
d2dfb2f87f Swap order to match description 2024-03-17 21:43:04 +11:00
Andrew Murray
4ef6e4ef9b Highlight code 2024-03-17 21:41:55 +11:00
Andrew Murray
b3c1937456 Changed wording 2024-03-17 21:37:31 +11:00
Andrew Murray
e760a4fc2b Updated harfbuzz to 8.3.1 2024-03-17 21:26:00 +11:00
Andrew Murray
fe06d419fc Added heading 2024-03-17 18:30:56 +11:00
Andrew Murray
9cf0ece464 Changed heading level to be consistent 2024-03-17 18:18:04 +11:00
Andrew Murray
5fd4ad4aa0 Corrected CVEs being split into heading and text 2024-03-17 18:16:52 +11:00
Andrew Murray
5208712b49 Added "API Additions" section 2024-03-17 18:12:15 +11:00
Andrew Murray
3b68a56c10 Remove CVE already mentioned in heading 2024-03-17 18:10:39 +11:00
Andrew Murray
1528ac1a45 Consistently highlight filenames in headings 2024-03-17 18:05:07 +11:00
Andrew Murray
c7e4014411 Fixed heading 2024-03-17 18:02:39 +11:00
Hugo van Kemenade
b25a054241 Update release notes 2024-03-17 01:17:38 +02:00
Hugo van Kemenade
2568fd891f Remove listing of newly-added release notes in 10.4 release notes 2024-03-16 20:29:48 +02:00
Jeffrey A. Clark
913dc60d5d
Merge pull request #7877 from python-pillow/7864-backfill
Backfill release notes with security fix details
2024-03-16 06:06:42 -04:00
Andrew Murray
b795d4c59e Update CHANGES.rst [ci skip] 2024-03-16 18:59:51 +11:00
Andrew Murray
a78ed9595f Determine size from markers, not EXIF data 2024-03-16 18:40:16 +11:00
Andrew Murray
21801f3a45 Raise ValueError if seeking to greater than offset-sized integer 2024-03-16 13:33:04 +11:00
Andrew Murray
3ba8eb3b7e Raise a ValueError for negative values when loading P1-P3 PPM images 2024-03-16 12:29:21 +11:00
Alex Clark
e7d8774d70 Wording 2024-03-15 14:20:12 -04:00
Alex Clark
115179e5a6 Update release notes for #7864 2024-03-15 14:08:48 -04:00
Hugo van Kemenade
794a7d691f
Merge pull request #7881 from radarhere/rounded_rectangle 2024-03-15 17:43:47 +02:00
Alex Clark
5b3dabb3a0 Add release notes for 2.6.0 for #7864 2024-03-15 10:27:29 -04:00
Jeffrey A. Clark
4438305a95
Update docs/releasenotes/7.1.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:03:19 -04:00
Alex Clark
45975e482d Update release notes to match template for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
b5f77799ca Update release notes to match template for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
180f37b18e Update release notes to match template for #7864
- Categorized previously uncategorized notes under ``Other Changes``
- TODO: Fix categorization of notes in ``Other Changes`` that belong in other categories
2024-03-15 10:01:42 -04:00
Alex Clark
f316fd9c7a Restore and update 3.1.1 release notes for #7864
- Restore accidentally overwritten contents
- Update to match updated template
2024-03-15 10:01:42 -04:00
Alex Clark
0ea144b087 Update 3.1.1, 8.1.1 release notes for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
ae5f1de624 Back fill release notes for #7864
- Back fill release notes for 3.1.1
- Add credits to 2.3.2, 2.5.2
2024-03-15 10:01:42 -04:00
Alex Clark
ad134c63fa Combine CVEs 2024-03-15 10:01:42 -04:00
Alex Clark
15deb71c3a 80 char wrap + file name tick for #7864 2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
69a4e0d4c9 Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b485c769c Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
e97722b7ce Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
bae0c988e6 Update docs/releasenotes/8.1.2.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
4d81ec804a Update docs/releasenotes/8.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b1c39cebe Update docs/releasenotes/9.0.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
3aefe92bdf [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00
Alex Clark
c69dcc1c29 Fix headers and retro-add notes for #7864
- Include CVE link in title (via @hugovk)
- Retro-add release notes for 2.3.2, 2.5.2 for CVE-2014-3589
2024-03-15 10:01:42 -04:00
Alex Clark
f61e184ab0 Fix based on 29a361d60ead196695523212dbb08a3ec4ca4b0d 2024-03-15 10:01:42 -04:00
Alex Clark
92f088919f Fix template based on 29a361d60ead196695523212dbb08a3ec4ca4b0d 2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
f77273db8f Update docs/releasenotes/10.0.0.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
1f117339bd Update docs/releasenotes/10.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
deca2dd5fc Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a78fbfed37 Update docs/releasenotes/6.2.2.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
914db6c230 Update docs/releasenotes/2.3.1.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a200d716e8 Update docs/releasenotes/2.3.1.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
20d451b359 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00
Alex Clark
2b8dfaac7c Retro-add release notes for 2.3.1 for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
95b3138024 Clean up for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
231e7384d0 Clean up for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
04f60eba9c Clean up for #7864
Before back fill, clean up.

- Add suggested CVE format to template
- Move Security to the top of release notes
- Fix headings
- Update all existing CVE notes to match template
2024-03-15 10:01:42 -04:00
Hugo van Kemenade
786ded02e8
Merge pull request #7880 from radarhere/cygwin 2024-03-15 15:44:30 +02:00
Andrew Murray
d2453250f1 Fixed joined corners for rounded_rectangle() non-integer dimensions 2024-03-15 23:58:07 +11:00
Andrew Murray
e2986e1989 Do not upgrade NumPy 2024-03-15 20:41:15 +11:00
Andrew Murray
4ebb4a05b3 Revert "Pin to Python 3.9.16-1"
This reverts commit 139320be3a.
2024-03-14 23:05:06 +11:00
Andrew Murray
ec3cf2cb68
Merge pull request #7878 from radarhere/windows
Revert "Pin Python 3.13 on Windows to a3"
2024-03-14 23:02:19 +11:00
Andrew Murray
f609040551 Revert "Pin Python 3.13 on Windows to a3"
This reverts commit 26e0f6df56.
2024-03-14 22:12:41 +11:00
Andrew Murray
64c8c27271 Added alpha_quality argument when saving 2024-03-13 18:55:29 +11:00
Andrew Murray
9e3d1a7b05 Update CHANGES.rst [ci skip] 2024-03-13 18:47:34 +11:00
Hugo van Kemenade
2753057806
Merge pull request #7644 from radarhere/import 2024-03-12 14:21:41 +02:00
Andrew Murray
f128d47e15 Added reading of JPEG2000 palettes 2024-03-12 19:30:23 +11:00
Andrew Murray
b22e4711cb Import __version__ from . 2024-03-12 12:02:26 +11:00
Andrew Murray
54d329b192 Merge branch 'main' into import 2024-03-12 12:01:50 +11:00
Andrew Murray
8afedb7ba4
Merge pull request #7869 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.17.0
2024-03-12 11:46:16 +11:00
renovate[bot]
4db82a0a17
Update dependency cibuildwheel to v2.17.0 2024-03-11 21:51:55 +00:00
Yay295
680f387bc2 enable bgr modes for image bytes tests 2024-03-11 12:07:34 -05:00
Yay295
12d626a6bb add typing to image bytes tests 2024-03-11 12:00:13 -05:00
Yay295
c56c8901b7 handle I;16 native endianness on big-endian machine 2024-03-11 11:37:48 -05:00
Yay295
79c9b2b261 autosize TestImageBytes.sample_bytes 2024-03-11 11:37:48 -05:00
Yay295
43f3c822a7 use tuple of tuples for image mode info 2024-03-11 11:37:48 -05:00
Yay295
a626ff0e60 add tests using the bytes Image class methods 2024-03-11 11:37:45 -05:00
Yay295
87ed513f91 support "RGBa" and "La" in hopper() test helper 2024-03-11 11:30:59 -05:00
Hugo van Kemenade
9ad22fc96a
Merge pull request #7753 from radarhere/eps 2024-03-11 17:51:29 +02:00
Hugo van Kemenade
94f319cd35
Merge pull request #7706 from radarhere/psd 2024-03-11 17:51:06 +02:00
Hugo van Kemenade
fc30eba882
Merge pull request #7791 from radarhere/imageshow 2024-03-11 17:48:31 +02:00
Hugo van Kemenade
93bf9912e2
Merge pull request #7788 from radarhere/gif_disposal 2024-03-11 17:48:13 +02:00
Hugo van Kemenade
350d7f2b01
Merge pull request #7806 from radarhere/imagefont 2024-03-11 17:43:40 +02:00
Hugo van Kemenade
1b6e68eaae
Merge pull request #7823 from radarhere/png_iccp 2024-03-11 17:42:22 +02:00
Hugo van Kemenade
4e92ee0818
Merge pull request #7840 from radarhere/write_undefined 2024-03-11 17:41:13 +02:00
Hugo van Kemenade
9fec5d581d
Merge pull request #7842 from radarhere/exif 2024-03-11 17:40:36 +02:00
Hugo van Kemenade
7b80352490
Merge pull request #7853 from radarhere/libxcb 2024-03-11 17:39:20 +02:00
Hugo van Kemenade
9d5563c3b7
Merge pull request #7749 from radarhere/libimagequant 2024-03-11 17:39:10 +02:00
Hugo van Kemenade
8c36b98ff6
Merge pull request #7815 from radarhere/giflib_macos 2024-03-11 17:38:56 +02:00
Hugo van Kemenade
89d8be5b94
Merge pull request #7821 from radarhere/apng 2024-03-11 17:38:48 +02:00
Hugo van Kemenade
3cdd49f31f
Merge pull request #7801 from radarhere/codecs 2024-03-11 17:38:12 +02:00
Hugo van Kemenade
d8c8075061
Merge pull request #7797 from radarhere/tga_palette 2024-03-11 17:37:20 +02:00
Hugo van Kemenade
f543b034bd
Merge pull request #7798 from radarhere/ico 2024-03-11 17:36:31 +02:00
Hugo van Kemenade
e09366307c
Merge pull request #7748 from radarhere/test_font_leaks 2024-03-11 17:35:26 +02:00
Hugo van Kemenade
80fd507335
Merge pull request #7713 from radarhere/load 2024-03-11 17:34:38 +02:00
Andrew Murray
4a7a64292e Update CHANGES.rst [ci skip] 2024-03-11 22:23:21 +11:00
Hugo van Kemenade
28908cb15c
Merge pull request #7827 from radarhere/macos_sdk_warnings 2024-03-11 12:39:56 +02:00
Andrew Murray
00d28bd84d
Merge pull request #7768 from radarhere/libpng
Updated libpng to 1.6.43
2024-03-10 06:50:05 +11:00
Nulano
a619a8de2f add PIL.report 2024-03-09 15:00:45 +01:00
Nulano
e5a46ef45d add test for --report argument and features.pilinfo(supported_formats) 2024-03-09 14:58:05 +01:00
Andrew Murray
e42528e139
Merge pull request #7866 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.9.0
2024-03-09 22:35:44 +11:00
Andrew Murray
dfc6443c91
Merge branch 'main' into libpng 2024-03-09 20:17:27 +11:00
Hugo van Kemenade
90767afa55
Merge pull request #7752 from radarhere/libjpeg-turbo 2024-03-09 11:16:21 +02:00
Hugo van Kemenade
62f426c149
Merge pull request #7746 from radarhere/zlib 2024-03-09 11:14:58 +02:00
renovate[bot]
f886766e3a
Update dependency mypy to v1.9.0 2024-03-09 08:45:29 +00:00
Andrew Murray
761c430294 Update CHANGES.rst [ci skip] 2024-03-09 17:58:16 +11:00
Richard Barnes
38cec87c93
Fix shift-sign issue in Convert.c (#7838)
* Fix shift-sign issue in Convert.c

Fixes
```
libImaging/Convert.c:513:25: error: signed shift result (0xFF000000) sets the sign bit of the shift expression's type ('int') and becomes negative [-Werror,-Wshift-sign-overflow]
    UINT32 trns = (0xff << 24) | ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff);
                   ~~~~ ^  ~~
```

---------

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-09 17:52:00 +11:00
Andrew Murray
89648ae282
Merge branch 'main' into libpng 2024-03-09 12:19:40 +11:00
Andrew Murray
ae2abc19b7
Merge branch 'main' into libjpeg-turbo 2024-03-09 12:16:53 +11:00
Andrew Murray
e0fe7e54f2
Merge branch 'main' into zlib 2024-03-09 12:16:01 +11:00
Andrew Murray
3f5721d0b0
Merge pull request #7843 from hugovk/refactor-winbuild
winbuild: Refactor dependency versions into constants
2024-03-09 12:14:01 +11:00
Andrew Murray
a364d9c04a
Merge pull request #7862 from hugovk/update-platform-support
Update CI targets on GitHub Actions
2024-03-09 10:40:44 +11:00
Hugo van Kemenade
984893576f
Remove unused pillow_dir
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-08 15:12:47 -07:00
Hugo van Kemenade
2833e367f5
Remove comma
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-08 16:31:55 +02:00
Jeffrey A. Clark (Alex)
658d15971e
Merge pull request #7861 from python-pillow/pil-given-to-pillow
Update "What about PIL?" section
2024-03-07 17:03:45 -05:00
pre-commit-ci[bot]
5e9ab05b03 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-07 19:55:41 +00:00
Alex Clark
966d53b241 Wording 2024-03-07 14:54:23 -05:00
Alex Clark
f166006409 Wording 2024-03-07 14:43:42 -05:00
Alex Clark
e734dac917 Remove strike config 2024-03-07 12:18:11 -05:00
Alex Clark
06c8edb98c Link to #1535 2024-03-07 12:06:04 -05:00
Alex Clark
dec53f10d1 Wording 2024-03-07 12:02:22 -05:00
Alex Clark
debf556525 Remove strike css 2024-03-07 11:59:50 -05:00
Jeffrey A. Clark (Alex)
da5de3c115
Update docs/about.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-03-07 11:50:22 -05:00
Hugo van Kemenade
2078eb4e4e Update CI targets on GitHub Actions 2024-03-07 18:44:38 +02:00
Alex Clark
c4067b08eb Update "What about PIL?" section
PyPI moderators gave PIL project to Pillow team in January 2020
2024-03-07 10:46:56 -05:00
Hugo van Kemenade
35b803091b
Simplify rf to f-string
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-07 13:39:27 +02:00
Andrew Murray
d9076fa8ca Merge branch 'main' into build-editable 2024-03-07 21:32:09 +11:00
Andrew Murray
ceb0c575e8
Merge pull request #7858 from hugovk/docs-installation
Update installation docs
2024-03-07 20:18:41 +11:00
Hugo van Kemenade
baa10a888c
Merge pull request #114 from radarhere/docs-installation 2024-03-07 10:52:15 +02:00
Andrew Murray
d2d6beaf34 Simplified anchors 2024-03-07 19:24:37 +11:00
Andrew Murray
c96cfffef6 Updated libimagequant to 4.3.0 2024-03-07 15:31:24 +11:00
Andrew Murray
ea78028042
Merge pull request #7852 from radarhere/arm64_wheels
Build macOS arm64 wheels natively
2024-03-07 15:27:45 +11:00
Hugo van Kemenade
6eb6b52a68 Fix tab activation per OS 2024-03-06 18:09:07 +02:00
Hugo van Kemenade
e9f8295950 Consistent header underlines 2024-03-06 18:09:07 +02:00
Hugo van Kemenade
3106446dad Move short 'Old Versions' section to 'Building From Source' page 2024-03-06 18:08:53 +02:00
Hugo van Kemenade
a027f698d2 Fix ref link 2024-03-06 17:28:06 +02:00
Hugo van Kemenade
128d0edbd6 Move anchors back into place 2024-03-06 17:22:39 +02:00
Jeffrey A. Clark (Alex)
f738bb9c75
Merge pull request #7832 from python-pillow/install-doc-dir
Move installation.rst to installation/*.rst
2024-03-06 09:07:16 -05:00
Andrew Murray
7aba72a48f Removed unused sphinx-reredirects 2024-03-06 08:44:07 +11:00
Andrew Murray
fe8f829f58
Mark file as orphan 2024-03-06 07:35:11 +11:00
Hugo van Kemenade
71018badc0
Remove unused LIBXCB constant
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-04 23:35:10 -07:00
Nulano
07f2b965ed rename --bugreport to --report 2024-03-04 20:12:40 +01:00
Nulano
4dbc428434 list both python3 -m PIL --bugreport and features.pilinfo in the issue template 2024-03-04 20:11:32 +01:00
Andrew Murray
bc00c26edd Corrected links 2024-03-04 22:48:51 +11:00
Andrew Murray
a4ac095a49
List extensions alphabetically 2024-03-04 22:06:02 +11:00
Andrew Murray
14f6a3445c Removed brew packages to avoid inclusion 2024-03-04 07:43:40 +11:00
Hugo van Kemenade
8f63748e50
Merge pull request #7855 from radarhere/typo
Fixed typo
2024-03-03 22:41:51 +02:00
Andrew Murray
91eb69c6b2 Fixed typo 2024-03-04 06:37:56 +11:00
Hugo van Kemenade
e2c267f048 Explicitly import urllib.error to avoid IDE warning 2024-03-03 17:11:59 +02:00
Hugo van Kemenade
b3fa754e97 Don't shadow stdlib names 2024-03-03 17:11:30 +02:00
Hugo van Kemenade
33d92819ef
Include SF_PROJECTS in f-strings
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-03 07:59:36 -07:00
Andrew Murray
939da52203 Updated libxcb to 1.16.1 2024-03-03 21:42:21 +11:00
Andrew Murray
1b7bcfb6e7 Update CHANGES.rst [ci skip] 2024-03-03 21:34:48 +11:00
Andrew Murray
b7f39076a1
Merge pull request #7846 from radarhere/type_hints
Added type hints to additional tests
2024-03-03 21:33:08 +11:00
Andrew Murray
d53e66e281
Merge pull request #7851 from python-pillow/renovate/mypy-1.x 2024-03-03 18:04:53 +11:00
renovate[bot]
d3a394fcbb
Update dependency mypy to v1.8.0 2024-03-03 04:00:51 +00:00
Hugo van Kemenade
dec3ef6a42
Merge pull request #7849 from radarhere/png_i16 2024-03-02 22:20:58 +02:00
Andrew Murray
07bf12f015 Build macOS arm64 wheels natively 2024-03-02 23:36:19 +11:00
Andrew Murray
970c691fa2 Document --bugreport 2024-03-02 10:44:45 +00:00
Andrew Murray
01fdf2ff51
Merge branch 'main' into bugreport 2024-03-02 17:04:41 +11:00
Andrew Murray
d6a3f89e27 Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
2bd54260b6
Merge pull request #7847 from Yay295/patch-1
Parametrize test_seek_mode functions
2024-03-02 11:30:33 +11:00
Yay295
c4234800a0
parametrize test_seek_mode functions 2024-03-01 08:47:50 -06:00
Andrew Murray
334c26d80b Update CHANGES.rst [ci skip] 2024-03-01 22:27:26 +11:00
Andrew Murray
a20abff5e4
Merge pull request #7709 from lajiyuan/main
Handle truncated chunks at the end of PNG images
2024-03-01 22:25:28 +11:00
Andrew Murray
1f602433dd Update CHANGES.rst [ci skip] 2024-03-01 21:33:26 +11:00
Hugo van Kemenade
1b25019a27
Merge pull request #7779 from radarhere/gif
Match mask size to pasted image size in GifImagePlugin
2024-03-01 12:14:05 +02:00
Andrew Murray
b7ecf8442f
Merge branch 'main' into install-doc-dir 2024-03-01 17:07:02 +11:00
Hugo van Kemenade
b3a595c23f
Merge pull request #7844 from radarhere/mingw
Do not use packaged MinGW pip
2024-03-01 08:04:41 +02:00
Andrew Murray
99c7f5405f Do not use packaged pip 2024-03-01 12:00:21 +11:00
Andrew Murray
bdabbd6b0f Added sphinx-reredirects to docs Makefile 2024-03-01 08:21:14 +11:00
Andrew Murray
e39fb2ef14 Merge branch 'main' into install-doc-dir 2024-03-01 08:15:00 +11:00
Hugo van Kemenade
0b546765b8 Refactor constants into dict 2024-02-29 17:30:51 +02:00
Hugo van Kemenade
fb3cb60c4c Refactor version numbers into constants 2024-02-29 17:30:50 +02:00
Hugo van Kemenade
0cc1cfb0cc Move global into main() to avoid shadowing 2024-02-29 17:30:50 +02:00
Andrew Murray
92aafeb6f3
Merge branch 'main' into libjpeg-turbo 2024-02-29 23:07:55 +11:00
Andrew Murray
10b48a60c1
Merge branch 'main' into exif 2024-02-29 23:04:16 +11:00
Andrew Murray
9637ea7c45
Merge branch 'main' into write_undefined 2024-02-29 23:02:49 +11:00
Andrew Murray
b80b30d2fd
Merge branch 'main' into png_iccp 2024-02-29 22:58:15 +11:00
Andrew Murray
cc094caaa4
Merge branch 'main' into imagefont 2024-02-29 22:56:46 +11:00
Hugo van Kemenade
bebf038e49
Merge pull request #7837 from radarhere/openjpeg 2024-02-29 13:43:18 +02:00
Hugo van Kemenade
1f35222476
Merge pull request #7841 from radarhere/supportsgetmesh 2024-02-29 13:42:29 +02:00
Andrew Murray
492943a0ff Fix logged tag name when loading with getexif() 2024-02-29 20:53:22 +11:00
Andrew Murray
dcbe402f77 Changed SupportsGetMesh protocol to be public 2024-02-29 20:16:41 +11:00
Andrew Murray
c00d019186 Updated openjpeg to 2.5.2 2024-02-29 08:03:47 +11:00
Andrew Murray
904b8e549c Allow writing IFDRational to UNDEFINED tag 2024-02-28 21:07:15 +11:00
Andrew Murray
18af646365
Merge pull request #7836 from radarhere/twitter
Removed references to Twitter
2024-02-28 15:36:03 +11:00
Alex Clark
fd1cefe2b6 Leave a note
- Re-add installation.rst
2024-02-27 07:21:38 -05:00
Alex Clark
a72a5f9ae2 Leave a note 2024-02-27 07:12:21 -05:00
pre-commit-ci[bot]
fde1ccb555 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-27 06:46:45 -05:00
Alex Clark
ecba08f8c4 Add sphinx-reredirects to handle redirects
- For example, installation.html now redirects to installation/index.html
2024-02-27 06:46:45 -05:00
Alex Clark
73e49cad21 Move installation.rst to installation/*.rst
- Add index
- Move content to sections
- Rearrange sections
2024-02-27 06:46:45 -05:00
Andrew Murray
0fc9b9183f
Merge pull request #7835 from Yay295/patch-1
Parametrize test_p_from_rgb_rgba()
2024-02-27 07:39:17 +11:00
Yay295
e6785576b1
add typing to test_p_from_rgb_rgba()
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-26 08:47:30 -06:00
Yay295
fe85947f16
use single string for parameter names instead of tuple of strings
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-26 07:47:13 -06:00
Andrew Murray
7a5b91dd2c Removed references to Twitter 2024-02-26 20:29:47 +11:00
Yay295
ece34104cb parametrize test_p_from_rgb_rgba() 2024-02-26 01:02:25 -06:00
Hugo van Kemenade
274924e64f
Merge pull request #7829 from radarhere/deprecations 2024-02-24 22:02:34 +02:00
Andrew Murray
e30298f356 Consistently place versionremoved under heading 2024-02-25 06:53:29 +11:00
Jeffrey A. Clark (Alex)
ee37c63a10
Merge pull request #7814 from hugovk/docs-rm-warnings
Remove outdated installation warnings
2024-02-24 12:53:54 -05:00
Hugo van Kemenade
f11ff462b3 Move outdated installation warnings to 'Deprecations and removals' 2024-02-24 14:53:25 +02:00
Andrew Murray
0a6ccd60bc Updated libpng to 1.6.43 2024-02-24 11:00:17 +11:00
Andrew Murray
24865e5832 Turn off nullability warnings for macOS SDK 2024-02-23 23:50:36 +11:00
Andrew Murray
583039608d
Merge pull request #7825 from hugovk/coverage-sysmon
Require coverage.py 7.4.2+ for `COVERAGE_CORE: sysmon`
2024-02-23 20:54:27 +11:00
Hugo van Kemenade
a08df5bc58 Require coverage.py 7.4.2+ for COVERAGE_CORE: sysmon 2024-02-23 11:11:15 +02:00
Hugo van Kemenade
6c126fecf5
Merge pull request #7820 from hugovk/coverage-sysmon 2024-02-22 23:51:09 +02:00
Andrew Murray
f86a442bd5 Update CHANGES.rst [ci skip] 2024-02-22 21:51:56 +11:00
Andrew Murray
f8a54b78a3
Merge pull request #7782 from evanmiller/webp-get-next-without-gil
Release GIL while calling `WebPAnimDecoderGetNext`
2024-02-22 21:50:41 +11:00
Andrew Murray
b5c6f20007 Added release notes 2024-02-22 20:32:46 +11:00
Andrew Murray
9441855107 Update CHANGES.rst [ci skip] 2024-02-22 20:11:05 +11:00
Hugo van Kemenade
e08e1f8340
Merge pull request #7804 from twolife/fix_flc 2024-02-22 11:05:15 +02:00
Andrew Murray
383ac4fca0 Fixed reading PNG iCCP compression method 2024-02-22 19:50:36 +11:00
Sébastien Noel
e45477e507 fix FLI/FLC decoder for files with a prefix chunk 2024-02-22 09:13:48 +01:00
Andrew Murray
b8722f3431
Merge pull request #7819 from nulano/docs-all
Build docs for Python changes
2024-02-22 11:50:57 +11:00
mergify[bot]
c0e2117ff3
Merge pull request #7822 from radarhere/type_hints
Added py.typed to support type checking
2024-02-21 12:38:33 +00:00
Andrew Murray
9115529856 Added "Typing :: Typed" classifier 2024-02-21 21:42:04 +11:00
Andrew Murray
097cf182fc Added py.typed to support type checking 2024-02-21 21:26:37 +11:00
Andrew Murray
c322a2f633 Use maximum frame size in IHDR chunk when saving 2024-02-21 19:39:29 +11:00
Andrew Murray
b9d3c21bf6
Merge pull request #7816 from radarhere/type_hints
Added type hints to additional tests
2024-02-21 09:24:53 +11:00
Nulano
ca63a12ac2 Mention features.pilinfo directly in the issue template 2024-02-20 22:50:14 +01:00
Andrew Murray
7200f47d31 Renamed argument 2024-02-21 08:11:01 +11:00
Hugo van Kemenade
481ed446e2 Set "COVERAGE_CORE: sysmon" for faster tests on 3.12+ 2024-02-20 22:40:00 +02:00
Nulano
89c44be404 Mention python -m PIL --bugreport in the issue template 2024-02-20 21:38:04 +01:00
Nulano
ab9dfd8181 Add sys.{executable,base_prefix,prefix} to features.pilinfo 2024-02-20 21:38:04 +01:00
Nulano
10712be53d Build docs for Python changes 2024-02-20 21:21:10 +01:00
Nulano
5b20811cab Add --bugreport argument to __main__.py to omit supported formats 2024-02-20 20:36:36 +01:00
Andrew Murray
83433d89a1
Merge pull request #23 from nulano/imagefont
Show how to use anchors to align text in ImageFont deprecations
2024-02-20 21:55:07 +11:00
Andrew Murray
56a02b76eb
Corrected image path
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-02-20 21:37:40 +11:00
Andrew Murray
64579510c0 Updated alt text 2024-02-20 21:37:06 +11:00
Andrew Murray
a655d7606e Simplified type hints 2024-02-20 21:27:30 +11:00
Andrew Murray
e39765d755 Added type hints 2024-02-20 15:41:20 +11:00
Andrew Murray
380bc1766b
Merge pull request #7813 from hugovk/requirements-mypy
Install mypy from requirements file
2024-02-20 08:17:37 +11:00
Hugo van Kemenade
531b1e1b9a Remove outdated installation warnings 2024-02-19 22:50:06 +02:00
Nulano
7490aee836 Show how to use anchors to align text in imagefont deprecations 2024-02-19 20:18:18 +01:00
Hugo van Kemenade
fe1edb1e0f Install mypy from requirements file
So Renovate can update it on a schedule
2024-02-19 16:48:44 +02:00
Andrew Murray
0692ad8cdd Updated giflib on macOS to 5.2.2 2024-02-19 23:29:58 +11:00
Andrew Murray
55d0289a7d Added image to illustrate size vs bbox 2024-02-19 17:08:21 +11:00
Hugo van Kemenade
e1c5d57d50
Merge pull request #7810 from radarhere/tidelift 2024-02-18 23:48:06 +02:00
Andrew Murray
b6fdf2e9e7 Updated package name for Tidelift 2024-02-19 07:54:58 +11:00
Hugo van Kemenade
9a8248a751
Merge pull request #7808 from radarhere/type_hints
Removed mypy excludes
2024-02-18 21:44:03 +02:00
Hugo van Kemenade
ebc57945e3
Merge pull request #7744 from radarhere/unused 2024-02-17 11:38:14 +02:00
Andrew Murray
96fc60d5d2 Removed mypy excludes 2024-02-17 20:21:25 +11:00
Andrew Murray
4ea1ad03c3
Merge branch 'main' into unused 2024-02-17 18:23:04 +11:00
Hugo van Kemenade
c194d6e9c8
Merge pull request #7807 from radarhere/type_hints
Added type hints to additional tests
2024-02-17 09:18:42 +02:00
Hugo van Kemenade
80d4fc14b8
Merge pull request #7786 from radarhere/type_hints_imageops
Added type hints to ImageOps
2024-02-17 09:16:27 +02:00
Hugo van Kemenade
e5415f37d6
Merge pull request #7805 from radarhere/windows
Pin Python 3.13 on Windows to a3
2024-02-17 09:06:07 +02:00
Andrew Murray
5ff7d926fd Added type hints 2024-02-17 15:00:38 +11:00
Andrew Murray
1a108281b9 Removed unused code 2024-02-17 14:04:00 +11:00
Andrew Murray
617b9cbc00 Describe difference between size and bbox 2024-02-17 11:50:48 +11:00
Andrew Murray
d3b974b786 Use font in ImageDraw examples 2024-02-17 11:19:32 +11:00
Andrew Murray
5c858d75e4 Added type hints 2024-02-17 10:45:52 +11:00
Andrew Murray
26e0f6df56 Pin Python 3.13 on Windows to a3 2024-02-17 10:18:54 +11:00
Andrew Murray
3199c0ea40 Decoder and encoders subclass PyDecoder and PyEncoder 2024-02-15 20:24:08 +11:00
Andrew Murray
912a33f5e9
Merge pull request #7795 from radarhere/type_hints
Use IO[bytes] in type hints
2024-02-15 20:23:43 +11:00
Andrew Murray
bf9ba35b20
Merge branch 'main' into build-editable 2024-02-15 11:12:17 +11:00
Andrew Murray
21e5d5d082 Use palette when loading 2024-02-14 09:17:22 +11:00
Andrew Murray
818500b329 Raise an error if map depth is unknown 2024-02-14 07:10:44 +11:00
Andrew Murray
63987b7aba Set mode to L if palette is missing 2024-02-14 06:55:13 +11:00
Andrew Murray
47eaf0937f Use IO[bytes] in type hints 2024-02-13 22:26:23 +11:00
Andrew Murray
50e9a92c98
Merge pull request #7794 from radarhere/type_hints
Added type hints to additional tests
2024-02-13 22:22:24 +11:00
Andrew Murray
8acacffb70
Merge branch 'main' into webp-get-next-without-gil 2024-02-13 21:33:15 +11:00
Andrew Murray
3374e91d5e
Merge pull request #7750 from hugovk/type-hints-replace-io.BytesIO
Replace `io.BytesIO` in type hints
2024-02-13 21:29:52 +11:00
Andrew Murray
4ce06aac3b Added type hints 2024-02-12 23:01:44 +11:00
Andrew Murray
cdecb3da91
Merge pull request #7793 from radarhere/type_hints_test_image
Added remaining type hints to Tests/test_image_*.py
2024-02-12 23:01:19 +11:00
Andrew Murray
ea0240bf2d
Use is None
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-12 19:12:08 +11:00
Andrew Murray
3f6422b512 Added type hints 2024-02-12 09:28:53 +11:00
Andrew Murray
29dd02509d Merge branch 'main' into type-hints-replace-io.BytesIO 2024-02-11 22:02:55 +11:00
Andrew Murray
5d6f22da12
Merge pull request #7790 from radarhere/pyproject
Removed mypy excludes, except for olefile-related files
2024-02-11 21:46:27 +11:00
Hugo van Kemenade
3977124908
Update docs/reference/internal_modules.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-10 14:54:20 +02:00
Andrew Murray
112a5a4813 Exclude abstract methods 2024-02-10 22:40:24 +11:00
Andrew Murray
e614bbfe50 Exclude code only for type checking 2024-02-10 22:39:18 +11:00
Andrew Murray
8ef0ffc2b8 Removed no cover pragma 2024-02-10 22:37:42 +11:00
Andrew Murray
d02a778efd
Removed no cover pragmas
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:57:59 +11:00
Andrew Murray
68db96981c
Removed else
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:50:48 +11:00
Andrew Murray
430f50606e Current delta is determined by previous disposal 2024-02-10 21:33:32 +11:00
Hugo van Kemenade
40513025e1
Merge pull request #113 from radarhere/type-hints-replace-io.BytesIO 2024-02-10 12:31:39 +02:00
Andrew Murray
517b797132 Removed FileDescriptor 2024-02-10 20:47:32 +11:00
Hugo van Kemenade
958a651449
Merge pull request #112 from radarhere/type-hints-replace-io.BytesIO 2024-02-10 11:43:29 +02:00
Andrew Murray
19a6edeecc Added type hints 2024-02-10 19:50:45 +11:00
Andrew Murray
373c62e5cb Use subprocess with CREATE_NO_WINDOW flag in WindowsViewer 2024-02-10 19:47:50 +11:00
Andrew Murray
152a24e13a Simplified code 2024-02-10 16:48:02 +11:00
Andrew Murray
e6a521130e If previous disposal was 2, do not fill identical pixels 2024-02-09 19:47:09 +11:00
Andrew Murray
a118a82c30 Use os.path.realpath consistently when os.fspath is used 2024-02-08 18:48:45 +11:00
Andrew Murray
a276cf2c9f Use _typing alias 2024-02-08 18:48:38 +11:00
Andrew Murray
cb39b1c89e
Corrected syntax 2024-02-08 12:29:06 +11:00
Evan Miller
c93b23239d
Update src/_webp.c
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-07 20:20:27 -05:00
Andrew Murray
6782a07b8e
Merge pull request #7784 from radarhere/type_hints
Added type hints to additional tests
2024-02-08 07:43:34 +11:00
Andrew Murray
463c368211
Simplified code
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-07 21:02:34 +11:00
Andrew Murray
159fc068ca Merge branch 'main' into type-hints-replace-io.BytesIO 2024-02-07 20:50:36 +11:00
Andrew Murray
cdc498e6f3 Added type hints 2024-02-07 19:16:28 +11:00
Hugo van Kemenade
5bd8fd1dc6
Merge pull request #7783 from radarhere/lint
Lint fix
2024-02-07 09:22:29 +02:00
Andrew Murray
91645f9eff Lint fix 2024-02-07 10:19:00 +11:00
Hugo van Kemenade
811dd15ca5
Merge pull request #7769 from radarhere/type_hints 2024-02-06 23:12:26 +02:00
Evan Miller
469db5114c Release GIL while calling WebPAnimDecoderGetNext 2024-02-06 15:41:08 -05:00
Andrew Murray
3e04ca5794
Merge pull request #7780 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-02-06 22:26:36 +11:00
Andrew Murray
5f115df74f Replace deprecated "extend-ignore" with "ignore" 2024-02-06 21:21:36 +11:00
Andrew Murray
65cb0b0487 Added _typing.Coords 2024-02-06 07:49:43 +11:00
Hugo van Kemenade
3bcc7072d6 Move linter config from deprecated top-level to own section 2024-02-05 20:39:08 +02:00
Hugo van Kemenade
1acaf20f72 Enable LOG rules for Ruff linter 2024-02-05 20:37:45 +02:00
pre-commit-ci[bot]
27b0cf67e7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
pre-commit-ci[bot]
e0da2b7120
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.2.0)
- [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.1.1](https://github.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.1)
- [github.com/PyCQA/bandit: 1.7.6 → 1.7.7](https://github.com/PyCQA/bandit/compare/1.7.6...1.7.7)
- [github.com/tox-dev/pyproject-fmt: 1.5.3 → 1.7.0](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...1.7.0)
- [github.com/abravalheri/validate-pyproject: v0.15 → v0.16](https://github.com/abravalheri/validate-pyproject/compare/v0.15...v0.16)
2024-02-05 17:18:25 +00:00
Andrew Murray
5a8e7dda79 Added type hints 2024-02-05 20:36:34 +11:00
Andrew Murray
95255536cf Merge branch 'main' into type_hints 2024-02-05 19:29:27 +11:00
Andrew Murray
dfb48ff297 Match mask size to pasted image size 2024-02-05 19:16:15 +11:00
Andrew Murray
1b67239674 Update CHANGES.rst [ci skip] 2024-02-05 11:56:55 +11:00
Andrew Murray
3bd58a80a3
Merge pull request #7745 from nik012003/main
Update wl-paste handling and return None for some errors in grabclipboard() on Linux
2024-02-05 11:49:31 +11:00
Andrew Murray
d8f52f58be
Merge branch 'main' into main 2024-02-05 08:56:25 +11:00
Andrew Murray
fe09f0db37
Merge pull request #7776 from hugovk/codecov/codecov-action@v3.1.5
Pin codecov/codecov-action to v3.1.5
2024-02-05 08:55:11 +11:00
Andrew Murray
1e0b17a052
Merge pull request #7775 from radarhere/cygwin
Removed platform argument from setup-cygwin action
2024-02-05 08:05:53 +11:00
Andrew Murray
435c884ebb Removed platform argument from setup-cygwin action 2024-02-03 23:44:33 +11:00
Hugo van Kemenade
dba7dea326 Pin codecov/codecov-action to v3.1.5 2024-02-03 14:43:04 +02:00
Andrew Murray
cb9e3535c4
Merge pull request #7774 from python-pillow/renovate/github-actions
Update release-drafter/release-drafter action to v6
2024-02-03 14:39:14 +11:00
renovate[bot]
6207ad4196
Update release-drafter/release-drafter action to v6 2024-02-03 02:24:17 +00:00
Andrew Murray
acd7ecedcb
Merge pull request #7764 from radarhere/libxau
Fixed libXau error in wheels for macOS 10.10
2024-02-03 13:23:48 +11:00
Hugo van Kemenade
a5b4806830
Merge pull request #7772 from radarhere/codec_name 2024-02-02 20:05:58 +02:00
Andrew Murray
8d96e3bc59 Changed name of first _Tile parameter 2024-02-02 23:54:31 +11:00
Nicola Guerrera
8156798cec
Merge pull request #3 from radarhere/grabclipboard
Added test
2024-02-02 10:21:07 +01:00
Andrew Murray
2515938cdd Simplified type hints 2024-02-02 19:04:22 +11:00
Andrew Murray
e47877587f
Merge pull request #7770 from python-pillow/renovate/github-actions
Update github-actions to v4
2024-02-01 09:07:48 +11:00
renovate[bot]
6dba9c9887
Update github-actions to v4 2024-01-31 21:14:01 +00:00
pre-commit-ci[bot]
256f3f1966 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-31 19:38:55 +00:00
Hugo van Kemenade
f2228e0a7c
Replace bytes | str | Path with StrOrBytesPath
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-31 12:37:53 -07:00
Andrew Murray
58554de0c8
Merge branch 'main' into main 2024-02-01 00:06:05 +11:00
FangFuxin
b8769d1cf5
Update Tests/test_file_png.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-31 21:02:50 +08:00
Andrew Murray
530512f699
Merge branch 'main' into type-hints-replace-io.BytesIO 2024-01-31 22:58:53 +11:00
Andrew Murray
bb1fece57a Added type hints 2024-01-31 21:55:32 +11:00
Andrew Murray
2888f767f2
Merge branch 'main' into psd 2024-01-31 20:16:24 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests (#7756)
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Andrew Murray
d57b5e827c Corrected check 2024-01-31 19:10:33 +11:00
Andrew Murray
5efa2ade22 Added test 2024-01-31 19:10:33 +11:00
Andrew Murray
39cbd4f0f1 Expanded error message strings 2024-01-31 19:10:33 +11:00
Andrew Murray
e7470ed789
Merge branch 'main' into main 2024-01-31 19:07:08 +11:00
Hugo van Kemenade
db437386eb
Merge pull request #7762 from radarhere/cygwin 2024-01-31 09:46:42 +02:00
Andrew Murray
940d25614f
Merge pull request #7767 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.16.5
2024-01-31 17:37:11 +11:00
renovate[bot]
1dad1b87ed
Update dependency cibuildwheel to v2.16.5 2024-01-31 00:17:32 +00:00
Andrew Murray
cae3506abb
Merge pull request #7766 from hugovk/m1
Test on macOS M1 where available
2024-01-31 08:34:19 +11:00
Hugo van Kemenade
d65f7b5ef7 brew install ghostscript 2024-01-30 22:51:04 +02:00
Hugo van Kemenade
7c6d806645 Test on macOS M1 where available 2024-01-30 22:50:52 +02:00
Andrew Murray
b374f2679c Build libxcb dependencies on macOS x86-64 2024-01-30 22:57:17 +11:00
Andrew Murray
40fceedfba brew remove libxau 2024-01-30 22:56:13 +11:00
Andrew Murray
139320be3a Pin to Python 3.9.16-1 2024-01-30 19:44:42 +11:00
Andrew Murray
15dc4312d2
Merge pull request #7760 from hugovk/rm-exec-bit-setup.py
Remove execute bit from `setup.py`
2024-01-30 12:54:22 +11:00
Hugo van Kemenade
76955bbaf7 Remove shebang and execute bit 2024-01-29 18:43:51 +02:00
Hugo van Kemenade
0669532898 Remove shebangs 2024-01-29 18:43:03 +02:00
Hugo van Kemenade
866c26957d Add check-shebang-scripts-are-executable to pre-commit 2024-01-29 18:37:24 +02:00
Hugo van Kemenade
529487c244 Remove execute bit from setup.py 2024-01-29 16:48:39 +02:00
Andrew Murray
62b222ddaa
Merge pull request #7758 from python-pillow/renovate/cibuildwheel-2.x
Update dependency cibuildwheel to v2.16.4
2024-01-29 14:40:38 +11:00
renovate[bot]
52e51e12b9
Update dependency cibuildwheel to v2.16.4 2024-01-28 21:20:28 +00:00
Hugo van Kemenade
d49d2d14a0
Merge branch 'main' into type-hints-replace-io.BytesIO 2024-01-28 11:22:00 +02:00
Hugo van Kemenade
61d47c3dfa More support for arbitrary os.PathLike 2024-01-27 14:06:06 +02:00
Nicola Guerrera
9392f24655
Merge pull request #2 from radarhere/grabclipboard
Simplified code
2024-01-27 13:00:56 +01:00
Andrew Murray
d3205fae19 Simplified code 2024-01-27 22:54:01 +11:00
Hugo van Kemenade
232bddd2ce
Merge pull request #7755 from radarhere/type_hints 2024-01-27 13:33:12 +02:00
Nicola Guerrera
6998f34768
Rearrange error handling
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-27 12:08:16 +01:00
Nicola Guerrera
1522b3fb84
Merge pull request #1 from radarhere/grabclipboard
Rearranged code
2024-01-27 11:04:43 +01:00
Andrew Murray
d2d9240de4 Do not declare variable until necessary 2024-01-27 20:15:31 +11:00
Andrew Murray
b81341ae7e Only decode stderr when necessary 2024-01-27 20:15:10 +11:00
Nicola Guerrera
cd640e5df2 Refactor grabclipboard() for x11 and wayland
Simpified logic and made it more robust against edge cases ( see the `allowed_errors` list ). Doing error checking this way, makes the behaviour of this function for x11 and wayland platforms more silimar to darwin and windows systems.

fix typo src/PIL/ImageGrab.py

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>

fix typo src/PIL/ImageGrab.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>

ImageGrab: \added debian edge case to comment
2024-01-27 10:03:44 +01:00
Andrew Murray
737314923f Added type hints 2024-01-27 15:19:43 +11:00
Hugo van Kemenade
d631afc266 Use os.fspath instead of isinstance and str 2024-01-26 20:46:58 +02:00
Hugo van Kemenade
16d4068b42 Test os.PathLike that's not pathlib.Path 2024-01-26 19:17:44 +02:00
Hugo van Kemenade
f613a9213f Parameterise test 2024-01-26 19:17:44 +02:00
Hugo van Kemenade
945253672a Handle os.PathLike in is_path 2024-01-26 19:17:44 +02:00
Hugo van Kemenade
f55c9c6e01
Merge pull request #7754 from radarhere/type_hints 2024-01-26 18:54:36 +02:00
Andrew Murray
b82e601a44
Merge pull request #7741 from hugovk/ci-stuff
CI: Cache libimagequant on Linux builds
2024-01-26 13:10:46 +11:00
Andrew Murray
ddb7df0ec6 Added type hints 2024-01-25 22:18:46 +11:00
Andrew Murray
5721577e4e Stop reading EPS at EOF marker 2024-01-25 20:20:53 +11:00
Andrew Murray
cf9e6ff256 Updated libjpeg-turbo to 3.0.2 2024-01-25 08:10:07 +11:00
Andrew Murray
b3a7ae065c Update CHANGES.rst [ci skip] 2024-01-25 06:40:03 +11:00
Andrew Murray
4175787c45
Merge pull request #7739 from radarhere/test_image_results
Do not support using test-image-results to upload images after test failures
2024-01-25 06:36:49 +11:00
Andrew Murray
5709ffe5da
Merge branch 'main' into test_font_leaks 2024-01-25 06:15:13 +11:00
Hugo van Kemenade
be1508f0dd
Merge pull request #7743 from radarhere/type_hint_test_font 2024-01-24 14:15:04 +02:00
Hugo van Kemenade
e3932b7dba Exclude from coverage: empty bodies in protocols or abstract methods 2024-01-23 23:58:41 +02:00
Andrew Murray
e2d1b2663d
Restored original state using finally
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-24 08:12:06 +11:00
Andrew Murray
4814bee6c0 Use Path instead of PosixPath 2024-01-23 21:42:36 +11:00
Andrew Murray
8caae8739f Restored testing of non-TrueType default font 2024-01-23 18:51:41 +11:00
Andrew Murray
16fd934b00 Use TypedDict 2024-01-23 09:55:25 +11:00
Andrew Murray
474411b52a Updated zlib to 1.3.1 2024-01-23 08:52:14 +11:00
Hugo van Kemenade
231d54b9df Replace io.BytesIO in type hints 2024-01-22 23:21:56 +02:00
Andrew Murray
2521ec4732 Restored charsets dictionary 2024-01-22 22:08:45 +11:00
Hugo van Kemenade
d96c196c48
Only cache on GHA, remove debugging
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-22 12:42:03 +02:00
Andrew Murray
a09e056a4c Added type hints 2024-01-22 18:42:43 +11:00
Hugo van Kemenade
97d24f14a5 Cache libimagequant 2024-01-21 16:52:59 +02:00
Hugo van Kemenade
0b6c7ba49e Disable wget progress bar but not all output 2024-01-21 16:52:59 +02:00
Hugo van Kemenade
16ea9bd102 Include pyproject.toml in pip cache key 2024-01-21 16:52:59 +02:00
Hugo van Kemenade
1185fb8296
Merge pull request #7740 from radarhere/type_hints_conftest 2024-01-21 12:28:13 +02:00
Andrew Murray
d331eb9c52 Added type hints 2024-01-21 19:18:51 +11:00
Andrew Murray
9c9816204c
Merge pull request #7732 from radarhere/type_hints_check
Added type hints to Tests/check_*.py
2024-01-21 19:16:02 +11:00
Andrew Murray
4674195321 Removed support for test-image-results 2024-01-21 15:01:12 +11:00
Andrew Murray
3453a99908 Merge branch 'main' into type_hints_check 2024-01-21 14:38:17 +11:00
Andrew Murray
1891b61f73
Merge pull request #7736 from hugovk/isort-tests
Sort imports in `Tests/`
2024-01-21 14:30:42 +11:00
Andrew Murray
6fe683be52
Merge pull request #7733 from radarhere/type_hints_helper
Added type hints to Tests/helper.py
2024-01-21 14:10:59 +11:00
Ondrej Baranovič
420150f0e2
Update winbuild/build.rst 2024-01-20 14:56:20 +01:00
Hugo van Kemenade
53c3cd9f8e isort Tests 2024-01-20 13:23:03 +02:00
Hugo van Kemenade
eba0be98ec isort Tests 2024-01-20 13:22:04 +02:00
Andrew Murray
a18cee35ff
Updated import order
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:26:31 +11:00
pre-commit-ci[bot]
9454c28f0f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-20 10:24:57 +00:00
Andrew Murray
970bd102ba
Updated type hint
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:24:34 +11:00
Andrew Murray
99d851957f
Return early
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-20 21:23:08 +11:00
Andrew Murray
f7701e6596 Do not log URL of test images if there is no URL 2024-01-20 21:04:57 +11:00
Ondrej Baranovič
74af933a9f
Link to stable setuptools documentation
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-20 10:08:14 +01:00
Andrew Murray
4aa3341d9a
Merge pull request #7735 from python-pillow/renovate/github-actions
Update actions/cache action to v4
2024-01-20 17:59:29 +11:00
renovate[bot]
5dc3de7974
Update actions/cache action to v4 2024-01-20 06:07:48 +00:00
Andrew Murray
9b6c1e3763 Added type hints 2024-01-20 11:13:06 +11:00
Andrew Murray
1d63cffdad Added type hints 2024-01-19 21:50:27 +11:00
Hugo van Kemenade
6dc6d6d71f
Merge pull request #7731 from radarhere/type_hints_oss_fuzz 2024-01-19 11:38:16 +02:00
Andrew Murray
81b5c5dc68 Added type hints 2024-01-19 08:37:58 +11:00
Hugo van Kemenade
c23904a4bd
Merge pull request #7728 from radarhere/type_hints_mpeg 2024-01-18 14:47:28 +02:00
Andrew Murray
6a85653cc3 Added type hints 2024-01-18 12:05:54 +11:00
Hugo van Kemenade
1e00c0336c
Merge pull request #7727 from radarhere/type_hints 2024-01-17 22:45:40 +02:00
Andrew Murray
d8c7af0157 Added type hints to GdImageFile 2024-01-17 23:10:37 +11:00
Hugo van Kemenade
20830c541e
Merge pull request #7726 from radarhere/type_hints_ppm 2024-01-17 13:11:50 +02:00
Andrew Murray
7972332bc5 Added type hints 2024-01-17 19:22:45 +11:00
Hugo van Kemenade
dd753f4ab5
Merge pull request #7725 from radarhere/type_hints_tga 2024-01-17 08:47:45 +02:00
Andrew Murray
6fd85cf523
Merge pull request #7721 from radarhere/imagemath_ops
Changed ImageMath.ops to be static
2024-01-17 09:15:05 +11:00
Andrew Murray
54c96df9d6 Added type hints 2024-01-17 08:03:09 +11:00
Hugo van Kemenade
1d7ff595ec
Merge pull request #7724 from radarhere/type_hints_sgi 2024-01-16 22:52:43 +02:00
Hugo van Kemenade
4c5e2e4afd
Merge pull request #7720 from radarhere/type_hints_imt 2024-01-16 15:21:09 +02:00
FangFuxin
6c55dff8af
Merge pull request #1 from radarhere/truncated
Test error is raised without LOAD_TRUNCATED_IMAGES
2024-01-16 16:10:11 +08:00
Andrew Murray
62e6d62518 Test error is raised without LOAD_TRUNCATED_IMAGES 2024-01-16 18:49:25 +11:00
Andrew Murray
fe7b6d9e80 Corrected expected image path 2024-01-16 18:43:57 +11:00
pre-commit-ci[bot]
b2711c3e8b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-16 07:37:00 +00:00
FangFuxin
44e77a22b5 Fix png image plugin load_end func handle truncated file. 2024-01-16 07:36:20 +00:00
Andrew Murray
e2aa0fd499 Changed ops to be static 2024-01-16 12:55:48 +11:00
Andrew Murray
5a587193c7 Added type hints 2024-01-16 12:22:59 +11:00
mergify[bot]
ab1de6dd92
Merge pull request #7719 from radarhere/type_hints_msp
Added type hints to MspImagePlugin
2024-01-15 22:32:23 +00:00
pre-commit-ci[bot]
edaf7acdb3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-15 22:01:19 +00:00
Andrew Murray
6a2bdb6feb Added type hints 2024-01-16 09:00:40 +11:00
Hugo van Kemenade
fd5df78669
Merge pull request #7716 from radarhere/type_hints 2024-01-15 13:07:33 +02:00
Andrew Murray
4a6cb0f844 Added type hints 2024-01-15 20:11:14 +11:00
Andrew Murray
575edbefe4
Added type hints
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-15 18:25:31 +11:00
Andrew Murray
c75a93b9a3 Added type hints 2024-01-15 16:11:48 +11:00
mergify[bot]
ed9e29d31e
Merge pull request #7714 from radarhere/type_hints_fits
Added type hints to FitsImagePlugin
2024-01-14 12:58:11 +00:00
Hugo van Kemenade
1d25a394a3
Merge pull request #7712 from radarhere/type_hints_imageshow 2024-01-14 14:09:38 +02:00
Andrew Murray
c97b5c6f7a Exclude abstract method code from coverage 2024-01-14 22:29:56 +11:00
Andrew Murray
543b5a6741 Use consistent arguments for load_read 2024-01-13 21:11:16 +11:00
Andrew Murray
2fbd7dda83 Use consistent arguments for load_seek 2024-01-13 21:10:02 +11:00
Andrew Murray
ffd0363b65 Added type hints 2024-01-13 16:26:15 +11:00
Andrew Murray
10cf2f2651 Added type hints 2024-01-13 14:40:59 +11:00
Hugo van Kemenade
9923531742
Merge pull request #7708 from radarhere/type_hint_imagemorph 2024-01-12 21:08:39 +02:00
Andrew Murray
067c5f4123 Update CHANGES.rst [ci skip] 2024-01-11 23:13:29 +11:00
Andrew Murray
bc192557b8 Added type hints 2024-01-11 23:11:12 +11:00
Hugo van Kemenade
d6d6c7c989
Merge pull request #7707 from radarhere/type_hints_imagemath 2024-01-11 14:07:35 +02:00
Hugo van Kemenade
fc67ee29d5
Merge pull request #7701 from esoma/issue-7700 2024-01-11 14:05:16 +02:00
Andrew Murray
08992cf6b1 Update CHANGES.rst [ci skip] 2024-01-11 20:01:25 +11:00
Hugo van Kemenade
5baace9eb7
Merge pull request #7702 from nulano/deprecate-cms-constants 2024-01-11 10:51:21 +02:00
Ondrej Baranovič
5347b471c6
Update Tests/test_imagecms.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-11 02:08:46 +01:00
Erik Soma
6f144d45b9 Rename repeated seeks apng to reflect what it is rather than how it is used. 2024-01-10 16:03:42 -05:00
Andrew Murray
c2907dc049 Layer co-ordinates may be negative 2024-01-10 23:53:45 +11:00
Andrew Murray
993bc6c202 Added type hint 2024-01-10 23:41:09 +11:00
Andrew Murray
38bfe3cddf
Added type hint
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-10 23:36:26 +11:00
Andrew Murray
659098c6ac Added type hints 2024-01-10 22:05:26 +11:00
Andrew Murray
df99d48a0c Simplified code 2024-01-10 09:26:56 +11:00
Andrew Murray
d7874e8a03 Update CHANGES.rst [ci skip] 2024-01-10 09:07:10 +11:00
Hugo van Kemenade
605e664678
Merge pull request #7698 from radarhere/ppm 2024-01-09 16:08:05 +02:00
Erik Soma
dc6d7611e9
Test apng repeated seeks 3 times instead of 5.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-09 08:55:49 -05:00
Andrew Murray
71ba20bb19 Shortened table description 2024-01-09 13:47:21 +01:00
Andrew Murray
1e8a03cd2d Link to Python enum documentation 2024-01-09 13:47:21 +01:00
Hugo van Kemenade
35d6a6608f
Merge pull request #7699 from radarhere/perspective 2024-01-09 14:30:42 +02:00
Andrew Murray
ab262dbfd5 Update CHANGES.rst [ci skip] 2024-01-09 12:56:33 +11:00
Andrew Murray
6c320323b4 Only set row order when needed 2024-01-09 12:47:27 +11:00
Andrew Murray
673eb9a845 Merge branch 'main' into ppm 2024-01-09 12:46:55 +11:00
Andrew Murray
931821688c Added release notes 2024-01-09 12:22:25 +11:00
Erik Soma
a6051a4045 Add type hints and fix some formatting for the apng repeated seeks test. 2024-01-08 15:20:24 -05:00
Erik Soma
a844871c5e Give apng repeated seeks test and image a more descriptive name. 2024-01-08 15:18:49 -05:00
Andrew Murray
605208ea47
Merge branch 'main' into perspective 2024-01-09 07:16:24 +11:00
Andrew Murray
208a34c079
Merge branch 'main' into deprecate-cms-constants 2024-01-09 07:15:41 +11:00
Hugo van Kemenade
b1f549f60c
Merge pull request #7696 from nulano/pfm 2024-01-08 19:22:53 +02:00
Nulano
586e774094 add PFM support to release notes 2024-01-08 17:35:01 +01:00
Nulano
5dd1652f27 use filename instead of f 2024-01-08 17:17:52 +01:00
Ondrej Baranovič
f044d53fd1
swap conditions
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-08 17:17:17 +01:00
Nulano
bddfebc331 add license comment to ImageCms; explicitly say "no replacement" for deprecations without a replacement 2024-01-08 12:57:23 +01:00
Hugo van Kemenade
de564ab1c2
Merge pull request #7703 from nulano/pypi-link 2024-01-08 08:55:56 +02:00
Erik Soma
3515f997ce Add test against info of apng images getting clobbered when seeking to the first frame multiple times. 2024-01-07 20:52:22 -05:00
Nulano
bb855583ea Update PyPI links to use pillow (lowercase) 2024-01-08 02:28:48 +01:00
Nulano
edc46e223b document ImageCms deprecations 2024-01-08 01:27:41 +01:00
Andrew Murray
ccdea48cf3 Added identity tests for Transform classes 2024-01-08 10:36:30 +11:00
Nulano
08f11c57a1 deprecate ImageCms members: DESCRIPTION, VERSION, FLAGS, versions() 2024-01-08 00:32:47 +01:00
Erik Soma
6d99f9193f Fix info for first frame of apng images getting clobbered when seeking to the first frame multiple times. 2024-01-07 16:00:58 -05:00
Andrew Murray
ba6399cad1 Added PerspectiveTransform 2024-01-07 19:34:27 +11:00
Andrew Murray
bb55274845 Removed PPM loop to read header tokens 2024-01-07 18:49:01 +11:00
Andrew Murray
a786a0551b Update CHANGES.rst [ci skip] 2024-01-07 16:17:57 +11:00
Hugo van Kemenade
fcaed26ab1
Merge pull request #7676 from nulano/lcms2-flags 2024-01-06 16:43:20 +02:00
Ondrej Baranovič
d9ec2fd4bb
Add code formatting to ImageCms.Flags docstrings
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-06 14:33:11 +01:00
Nulano
0d841aab9a add support for grayscale pfm image format 2024-01-06 14:08:51 +01:00
Hugo van Kemenade
f162d65246
Merge pull request #7695 from radarhere/non_zero 2024-01-06 14:50:02 +02:00
Andrew Murray
2d6ad5868d Use "non-zero" consistently 2024-01-06 12:07:55 +11:00
Andrew Murray
d329207e62 Update CHANGES.rst [ci skip] 2024-01-06 07:03:40 +11:00
Andrew Murray
f98fc9b8a3
Merge pull request #7693 from nulano/winbuild-amd64
Rename x64 to AMD64 in winbuild
2024-01-06 07:01:45 +11:00
Andrew Murray
c46cf19a58
Merge pull request #7684 from nulano/docs-imagetransform
Improve ImageTransform documentation
2024-01-06 06:45:19 +11:00
Andrew Murray
1f7171a10c
Merge branch 'main' into winbuild-amd64 2024-01-05 09:52:12 +11:00
Andrew Murray
4233dd769a
Merge pull request #7690 from hugovk/qemu
Build QEMU-emulated Linux aarch64 wheels on GitHub Actions instead of Travis CI
2024-01-05 09:50:05 +11:00
Nulano
eff9f06f0d fix comments 2024-01-04 22:10:11 +01:00
Nulano
4094edd12f winbuild: fix libwebp linking libsharpyuv 2024-01-04 21:31:55 +01:00
Nulano
5e2ebaface winbuild: build libwebp using cmake 2024-01-04 21:00:06 +01:00
Nulano
2dd00de1f3 rename x64 to AMD64 in winbuild/build_prepare.py 2024-01-04 20:26:14 +01:00
Hugo van Kemenade
aa21a2e6eb
Merge pull request #7692 from hugovk/no-windows-test-tags 2024-01-04 16:36:01 +02:00
Hugo van Kemenade
e32f49a1f3
Merge pull request #110 from radarhere/qemu 2024-01-04 15:35:13 +02:00
Andrew Murray
f71cfec76f
Merge pull request #7645 from nulano/font-bomb
Simplify FreeTypeFont.render
2024-01-04 23:50:43 +11:00
Andrew Murray
f184775cd3 Removed leading ampersand
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2024-01-04 23:35:06 +11:00
Hugo van Kemenade
46db79abe1 Fix syntax 2024-01-04 23:35:06 +11:00
Andrew Murray
60e82e5a3f Separate cibuildwheel install 2024-01-04 23:35:05 +11:00
Andrew Murray
e84b0a4015 Combine build steps 2024-01-04 23:34:39 +11:00
Andrew Murray
bc3cf97649 Use general arch setting instead of platform-specific setting 2024-01-04 23:33:50 +11:00
Hugo van Kemenade
fd37d86acc Skip non-wheel CI runs for tags 2024-01-04 12:55:04 +02:00
Hugo van Kemenade
32ae1bd08a Use aarch64 instead of QEMU in job name 2024-01-04 12:52:22 +02:00
Hugo van Kemenade
55944860a5 Remove unused docker/setup-buildx-action 2024-01-04 12:51:05 +02:00
Hugo van Kemenade
df37b47fd8 Build QEMU-emulated Linux aarch64 wheels on GitHub Actions 2024-01-04 12:51:05 +02:00
Hugo van Kemenade
85c552934a Goodbye Travis CI 2024-01-04 12:51:05 +02:00
Hugo van Kemenade
865a23aa32
Merge pull request #7691 from radarhere/wheels
Updated Linux and macOS wheels matrix variable name
2024-01-04 08:33:48 +02:00
Andrew Murray
05e73702f2 Updated matrix variable name on Linux and macOS to match Windows 2024-01-04 10:51:10 +11:00
Hugo van Kemenade
27eacddfd5
Merge pull request #7688 from radarhere/macos_imagegrab 2024-01-03 16:27:51 +02:00
Hugo van Kemenade
fa0dca7c8a
Merge pull request #7689 from radarhere/macos
Updated macOS tested Pillow versions
2024-01-03 09:05:09 +02:00
Andrew Murray
424737ef49 Updated macOS tested Pillow versions 2024-01-03 11:18:16 +11:00
Andrew Murray
d134110ace If bbox is omitted, screenshot is taken at 2x on Retina screens 2024-01-03 09:01:35 +11:00
Andrew Murray
e6c9b42dc2
Merge pull request #7685 from nulano/win-arm-tested
Update Windows 11 tested versions
2024-01-03 08:38:05 +11:00
Hugo van Kemenade
f03156066c
Merge pull request #7678 from radarhere/macos_imagegrab 2024-01-02 23:37:26 +02:00
Nulano
b4a8271288 update Windows 11 tested versions 2024-01-02 17:26:11 +01:00
Nulano
01e5f06da0 document editable mode installation in winbuild/build.rst 2024-01-02 16:12:37 +01:00
Nulano
f27b838a45 support multiple --config-settings 2024-01-02 15:48:37 +01:00
Nulano
b4e690049d document config setting "-C parallel=n" for number of CPUs to use for compilation 2024-01-02 15:37:32 +01:00
Nulano
8070fe10f1 pass build config before setuptools command; add build_editable to custom build backend 2024-01-02 15:37:32 +01:00
Nulano
fc7088a561 improve ImageTransform documentation 2024-01-02 14:52:12 +01:00
Ondrej Baranovič
81ea98e494
document ImageCmsTransform's base class
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-02 14:10:07 +01:00
Hugo van Kemenade
ded2c8b1d1
Merge pull request #7682 from radarhere/windows_pypy_wheels 2024-01-02 15:08:12 +02:00
Andrew Murray
127b65ec64
Merge pull request #7681 from radarhere/releasing
Package name is now lowercase in wheel filenames
2024-01-02 23:24:39 +11:00
Andrew Murray
5ddcf4d114 Package name is now lowercase in wheel filenames 2024-01-02 22:44:50 +11:00
Andrew Murray
75015e9859 Skip PyPy3.8 Windows wheel 2024-01-02 22:43:56 +11:00
Andrew Murray
ec6a57f69d Updated description
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2024-01-02 21:27:12 +11:00
Andrew Murray
dacd928530 10.3.0.dev0 version bump 2024-01-02 20:37:59 +11:00
Andrew Murray
fd14824649 bbox on macOS is not 2x on retina screens 2024-01-02 19:15:13 +11:00
Andrew Murray
6956d0b285 10.2.0 version bump 2024-01-02 18:32:31 +11:00
Nulano
0b2e2b224f document ImageCms.Flags 2024-01-01 21:40:41 +01:00
Nulano
26b2aa5165 document ImageCms.{ImageCmsProfile,Intent,Direction}; fix ImageCms.core.CmsProfile references
(cherry picked from commit f2b1bbcf65b327c14646d4113302e3df59555110)
2024-01-01 21:40:41 +01:00
Nulano
90991428fa add LCMS2 flags to ImageCms 2024-01-01 21:40:38 +01:00
mergify[bot]
31c8dacdc7
Merge pull request #7675 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-01-01 18:39:44 +00:00
Hugo van Kemenade
40a3f91af2
Merge pull request #7674 from nulano/url-example 2024-01-01 19:22:33 +02:00
pre-commit-ci[bot]
cb41b0cc78
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.7...v0.1.9)
- [github.com/psf/black-pre-commit-mirror: 23.12.0 → 23.12.1](https://github.com/psf/black-pre-commit-mirror/compare/23.12.0...23.12.1)
2024-01-01 17:16:45 +00:00
Nulano
de62b25ed3 fix image url in "Reading from URL" example 2024-01-01 18:06:46 +01:00
Andrew Murray
7c526a6c6b Update CHANGES.rst [ci skip] 2024-01-01 23:59:13 +11:00
Andrew Murray
d93a5ad70b
Merge pull request #7553 from bgilbert/jpeg-rgb
Add `keep_rgb` option when saving JPEG to prevent conversion of RGB colorspace
2024-01-01 23:55:37 +11:00
Andrew Murray
aed764fe84 Update CHANGES.rst [ci skip] 2024-01-01 23:39:04 +11:00
Andrew Murray
f8df5303fa
Merge pull request #7672 from nulano/imagefont-negative-crop
Trim negative glyph offsets in ImageFont.getmask()
2024-01-01 23:34:17 +11:00
Andrew Murray
24e9485e6b
Merge pull request #7671 from radarhere/imagetransform
Added type hints to ImageTransform
2024-01-01 21:45:56 +11:00
Nulano
0eb661b889 do not crop ImageFont glyphs from negative coordinates 2024-01-01 11:35:42 +01:00
Andrew Murray
57096f55cf
Merge pull request #7642 from nulano/types-util
Add type hints to _util
2024-01-01 21:27:57 +11:00
Andrew Murray
09ea121079
Use enum
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-01 21:09:01 +11:00
Andrew Murray
59100652b6 Added type hints to ImageTransform 2024-01-01 20:33:34 +11:00
Andrew Murray
90440a70da Merge branch 'main' into imagetransform 2024-01-01 20:32:56 +11:00
Andrew Murray
1469e433b6
Merge pull request #7665 from hugovk/update-release-notes
Release notes: add `ImageColor` and `ImageMode` optimisations, and type hints
2024-01-01 19:48:34 +11:00
Andrew Murray
4da1e49036 Added type hints 2024-01-01 19:22:01 +11:00
Andrew Murray
ea4fde8443
Merge branch 'main' into update-release-notes 2024-01-01 19:05:13 +11:00
Hugo van Kemenade
c7a1ce16ad
Merge pull request #7670 from radarhere/releasenotes
Added release notes for #7589 and #7654
2024-01-01 10:04:12 +02:00
Andrew Murray
ca94dae26b
Merge branch 'main' into update-release-notes 2024-01-01 19:03:59 +11:00
Hugo van Kemenade
c08426b834
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-01 10:02:22 +02:00
Hugo van Kemenade
681f8183f3
Remove member-order
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-01 10:01:42 +02:00
Hugo van Kemenade
4c174e2379
Merge pull request #7668 from radarhere/numpy
Removed unnecessary "pragma: no cover"
2024-01-01 10:00:56 +02:00
Hugo van Kemenade
56f743a80f
Merge pull request #109 from radarhere/update-release-notes
Use consistent language
2024-01-01 10:00:31 +02:00
Andrew Murray
2aa08a59ea Update CHANGES.rst [ci skip] 2024-01-01 18:20:25 +11:00
Andrew Murray
10c2df5430
Merge pull request #7669 from radarhere/imagefont_mask
Do not try and crop glyphs from outside of source ImageFont image
2024-01-01 18:16:49 +11:00
Andrew Murray
f6aa00dd1e Added release notes for #7654 2024-01-01 17:00:50 +11:00
Andrew Murray
1c183827e4 Added release notes for #7589 2024-01-01 16:47:37 +11:00
Andrew Murray
4f17b60088
Merge pull request #7667 from nulano/iptc
Fix loading IPTC images and update test
2024-01-01 16:25:29 +11:00
Andrew Murray
492e5b0e0a Do not set default value for unused variable 2024-01-01 16:18:26 +11:00
Andrew Murray
6cad0d62e7 Do not crop again if glyph is the same as the previous one 2024-01-01 16:14:45 +11:00
Andrew Murray
ecd3948b45 Test PILfont even when FreeType is supported 2024-01-01 16:13:57 +11:00
Andrew Murray
8676cbd4e7 Do not try and crop glyphs from outside of source ImageFont image 2024-01-01 16:13:24 +11:00
Andrew Murray
af026fdd3c Added decompression bomb check to ImageFont.getmask() 2024-01-01 16:06:09 +11:00
Andrew Murray
8422af20d5 Removed unnecessary "pragma: no cover" 2024-01-01 15:47:53 +11:00
Andrew Murray
d6fd4c978e
Merge pull request #7666 from hugovk/coverage-exclude_also
Coverage: add more exclusions
2024-01-01 15:46:52 +11:00
Andrew Murray
2c75cac400 Update CHANGES.rst [ci skip] 2024-01-01 15:25:29 +11:00
Andrew Murray
3ef7b93846
Merge branch 'main' into iptc 2024-01-01 15:23:08 +11:00
Andrew Murray
f2c6f118aa
Merge pull request #7664 from nulano/deprecate-iptc-helpers
Deprecate IptcImagePlugin helpers
2024-01-01 15:22:18 +11:00
Andrew Murray
17911d6ec4 Removed import 2024-01-01 14:49:01 +11:00
Andrew Murray
ca48ac0e15 Update CHANGES.rst [ci skip] 2024-01-01 14:31:07 +11:00
Andrew Murray
bd7e709141
Merge pull request #7650 from radarhere/tiff
Allow uncompressed TIFF images to be saved in chunks
2024-01-01 14:27:10 +11:00
Andrew Murray
9bcd477058 Use consistent language 2024-01-01 14:19:16 +11:00
Andrew Murray
9e835ca5be Update CHANGES.rst [ci skip] 2024-01-01 13:51:45 +11:00
Andrew Murray
99760f4c59
Merge branch 'main' into tiff 2024-01-01 13:41:17 +11:00
Hugo van Kemenade
d26880cda9 Remove unused create_lut() 2023-12-31 20:06:40 +02:00
Hugo van Kemenade
b7d64ac177
Don't complain about compatibility code for missing optional dependencies 2023-12-31 10:30:22 -07:00
Hugo van Kemenade
129a4936d3
Update docs/releasenotes/10.2.0.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-31 09:53:59 -07:00
Hugo van Kemenade
67a9e6e3b0
Merge pull request #7585 from nulano/gcc-warn-1 2023-12-31 17:55:26 +02:00
Hugo van Kemenade
2825323e84 Release notes: add ImageColor and ImageMode optimisations, and type hints 2023-12-31 17:48:31 +02:00
Andrew Murray
e1ea522f70 Added further type hints 2023-12-31 17:41:13 +02:00
Nulano
aa605bc6f2 document IptcImagePlugin deprecations 2023-12-31 17:41:13 +02:00
Nulano
fa4b3776f0 deprecate IptcImagePlugin.{dump,i,PAD} 2023-12-31 17:41:13 +02:00
Hugo van Kemenade
6c4b47dc46
Merge pull request #7496 from radarhere/exif 2023-12-31 17:39:21 +02:00
Hugo van Kemenade
da61ed1330
Merge pull request #7661 from radarhere/iptc 2023-12-31 17:38:35 +02:00
Hugo van Kemenade
d71cf168ee
Merge pull request #7566 from radarhere/exit 2023-12-31 17:37:43 +02:00
Hugo van Kemenade
119885aa66
Merge pull request #7589 from radarhere/dds_rgb 2023-12-31 17:35:30 +02:00
Hugo van Kemenade
5df7235d90
Merge pull request #7654 from radarhere/rowsperstrip 2023-12-31 17:29:26 +02:00
Hugo van Kemenade
f9e3d073b3
Merge pull request #7663 from radarhere/copyright 2023-12-31 17:23:22 +02:00
Hugo van Kemenade
6282caf3f4
Merge pull request #7659 from nulano/types-binary 2023-12-31 16:56:16 +02:00
Nulano
3396ce102d do not accept int in PIL._binary.i8 2023-12-31 15:12:18 +01:00
Ondrej Baranovič
b1e88ac17f
omit default color value
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-31 14:49:48 +01:00
Andrew Murray
42c574afdf
Merge pull request #7656 from nulano/types-containerio
Add type hints to PIL.ContainerIO
2024-01-01 00:25:20 +11:00
Andrew Murray
f410ec4eab Update CHANGES.rst [ci skip] 2024-01-01 00:21:25 +11:00
Andrew Murray
8a9afb6717
Merge pull request #7662 from radarhere/imagefont
Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask()
2024-01-01 00:14:57 +11:00
Nulano
46a6ddf0c2 fix loading IPTC images and add test 2023-12-31 13:53:09 +01:00
Andrew Murray
2ec53e36e9 Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() 2023-12-31 23:17:28 +11:00
Andrew Murray
1d9c931626 Changed tile tuple to match other plugins 2023-12-31 22:43:08 +11:00
Andrew Murray
0988703a90
Merge pull request #7657 from hugovk/optimise-imagecolor
Optimise `ImageColor` using `functools.lru_cache`
2023-12-31 19:15:18 +11:00
Andrew Murray
ee6e12a803 Updated copyright year 2023-12-31 18:37:16 +11:00
Hugo van Kemenade
9158c9aec0 Optimise ImageColor using functools.lru_cache 2023-12-30 16:26:50 +02:00
Andrew Murray
aaf99d18ae Update CHANGES.rst [ci skip] 2023-12-30 10:38:09 +11:00
Andrew Murray
02c6183d41
Merge pull request #7655 from radarhere/imagemath_eval_keys
Restricted environment keys for ImageMath.eval()
2023-12-30 10:23:50 +11:00
Andrew Murray
557ba59d13 Include further builtins 2023-12-30 09:30:12 +11:00
Andrew Murray
0ca3c33c59 Allow ops 2023-12-30 09:29:40 +11:00
Eric Soroos
45c726fd4d Don't allow __ or builtins in env dictionarys for ImageMath.eval 2023-12-30 09:28:32 +11:00
Nulano
9a6b6316a7 add type hints to PIL.ContainerIO 2023-12-29 23:24:21 +01:00
Nulano
6a33d6d170 add type hints to PIL._binary 2023-12-29 23:15:41 +01:00
Andrew Murray
c3af2643dd
Merge pull request #7652 from radarhere/releasing
Updated RELEASING now that Trusted PyPI publishing is in use
2023-12-30 08:20:41 +11:00
Hugo van Kemenade
2de26d0dae
Merge pull request #7647 from radarhere/imagefont 2023-12-29 23:05:05 +02:00
Andrew Murray
f7ec665bf1 Support setting ROWSPERSTRIP tag 2023-12-29 23:00:14 +11:00
mergify[bot]
109c6bf6c0
Merge pull request #7653 from hugovk/release-drafter-type-hints
Add 'Type hints' as a release note category
2023-12-29 11:57:23 +00:00
Hugo van Kemenade
554598d393
Merge pull request #7649 from radarhere/fuzz 2023-12-29 13:35:27 +02:00
Hugo van Kemenade
9c7ff4c86d Add 'Type hints' as a release note category 2023-12-29 13:25:54 +02:00
Andrew Murray
3c7603b57d Trusted PyPI publishing is now in use in GitHub Actions 2023-12-29 22:05:31 +11:00
Andrew Murray
f6bcf4e1ae Use IMAGEWIDTH and IMAGELENGTH when calculating strip size 2023-12-29 14:15:40 +11:00
Andrew Murray
a5e42107ea Removed __future__ import from fuzz_font and fuzz_pillow 2023-12-29 11:23:34 +11:00
Benjamin Gilbert
372083c59f Check similarity of round-tripped YCbCr JPEG, for symmetry with RGB 2023-12-28 13:00:17 -06:00
Andrew Murray
a16974e240 Restored testing of ImageFont class 2023-12-28 21:07:16 +11:00
Nulano
30015f6236 simplify decompression bomb check in FreeTypeFont.render 2023-12-27 17:05:14 +01:00
Ondrej Baranovič
de381d0efb
Update docs/reference/internal_modules.rst
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-27 16:17:51 +01:00
Hugo van Kemenade
9475c46d30 Don't complain about compatibility code: class TypeGuard 2023-12-27 16:58:42 +02:00
Hugo van Kemenade
5938423c63 Coverage: Use exclude_also instead of exclude_lines 2023-12-27 16:57:50 +02:00
Hugo van Kemenade
0c767f0d7c Coverage: Don't complain about code that shouldn't run: def create_lut(): 2023-12-27 16:57:50 +02:00
pre-commit-ci[bot]
0d90bc8187 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-27 13:57:22 +00:00
Nulano
3a4298d16c avoid hard dependency on typing_extensions 2023-12-27 14:55:30 +01:00
Nulano
cc51dace35 fix types hints for ImageFile._Tile 2023-12-27 14:55:30 +01:00
Nulano
90d5552800 use _util.DeferredError.new everywhere 2023-12-27 14:55:30 +01:00
Nulano
6bcf807fe2 add type hints for _util 2023-12-27 14:55:30 +01:00
Andrew Murray
78b96c0375
Merge pull request #7643 from radarhere/type_hints
Added type hints to FontFile and subclasses
2023-12-27 22:58:35 +11:00
Andrew Murray
0aebd577ea Moved type hint to BYTES_PER_ROW 2023-12-27 22:27:20 +11:00
Andrew Murray
ca9b49f8dd
Merge pull request #7636 from bgilbert/jp2-docs
Document JPEG 2000 support for writing YCbCr and reading subsampled color
2023-12-27 21:59:39 +11:00
Andrew Murray
f6f3dab672 Import UnidentifiedImageError directly 2023-12-27 17:42:17 +11:00
Andrew Murray
6e97dd5cec Raise ValueError when trying to save without bitmap 2023-12-27 12:32:35 +11:00
Andrew Murray
85818cd616 Added type hints to FontFile and subclasses 2023-12-27 12:27:21 +11:00
Andrew Murray
e9252a9353 Always return None from compile() 2023-12-27 11:07:53 +11:00
Andrew Murray
1e8bad805e
Merge pull request #7641 from hugovk/optimise-imagemode
Optimise `ImageMode.getmode` using `functools.lru_cache`
2023-12-27 09:42:26 +11:00
Andrew Murray
265ee32457
Merge pull request #7616 from radarhere/pypi
Added trusted PyPI publishing
2023-12-27 09:37:14 +11:00
Hugo van Kemenade
396b96f28b
Optimise ImageMode.getmode
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-26 15:08:58 -07:00
Andrew Murray
d4fd04982a
Merge pull request #7640 from radarhere/type_hints
Added type hints to selftest.py, docs/conf.py and docs/example/anchors.py
2023-12-27 08:18:01 +11:00
Andrew Murray
043e13d660 Revert "Published to Test PyPI"
This reverts commit fc1cf9f65b.
2023-12-27 08:12:51 +11:00
Andrew Murray
a66fbb95b6
Updated Windows artifact name
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-27 07:54:03 +11:00
Benjamin Gilbert
a72b5963d7 Document JPEG 2000 support for writing YCbCr and reading subsampled color
Read support for subsampled RGB and YCbCr color channels was added in
4f4c3b34f8 and not documented at the time.  Write support for YCbCr
appears to date to 61fb89ec54, the original commit.

Retain the existing language about YCbCr input conversion to RGB, even
though it's not completely correct.  OpenJPEG through 2.5.0 doesn't set
color_space in opj_read_header(), so we end up in our
OPJ_CLRSPC_UNSPECIFIED fallback path, which guesses sRGB if there's no
component subsampling.  This means we currently can't round-trip YCbCr via
JPEG 2000.  The next OpenJPEG release will fix this, so leave the docs as
is.

Also fix typo: .j2p -> .jp2.
2023-12-26 12:52:27 -06:00
Benjamin Gilbert
e2018a6697 Add release note for JPEG keep_rgb option
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-26 12:37:44 -06:00
Benjamin Gilbert
a5fab5fc0b Fail if chroma subsampling selected when writing RGB JPEG
The user presumably doesn't intend to subsample the green and blue
channels.
2023-12-26 12:37:35 -06:00
Hugo van Kemenade
26f58e7afc Optimise ImageMode.getmode 2023-12-26 18:05:55 +02:00
Andrew Murray
bc5ec2268a Added type hints 2023-12-26 22:26:11 +11:00
Hugo van Kemenade
ef0b0d232a
Merge pull request #7638 from radarhere/type_hints 2023-12-26 11:36:51 +02:00
Hugo van Kemenade
36b40f7888
Merge pull request #7637 from radarhere/fuzz
Moved __future__ import to beginning of file
2023-12-26 09:02:15 +02:00
Andrew Murray
7b9d101533 Moved __future__ import to beginning of file 2023-12-26 16:47:06 +11:00
Andrew Murray
4de17656d8 Merge branch 'main' into pypi 2023-12-26 12:37:22 +11:00
Andrew Murray
f8e65ecfe0
Merge pull request #7629 from nulano/arm64-fribidi-2
Compile FriBiDi for Windows ARM64
2023-12-26 12:30:15 +11:00
Andrew Murray
d400ef2b46 Added type hints 2023-12-26 12:18:38 +11:00
Hugo van Kemenade
fbecf7790b
Merge pull request #7635 from radarhere/type_hints_imagesequence 2023-12-25 13:17:06 +02:00
Andrew Murray
f8d75032db Added strict type hints 2023-12-25 18:58:47 +11:00
Andrew Murray
2b806c5236 Removed trailing dash 2023-12-25 07:19:00 +11:00
Andrew Murray
df83428882 Update CHANGES.rst [ci skip] 2023-12-24 19:05:39 +11:00
Andrew Murray
6768d3aa91
Merge pull request #7497 from ZachNagengast/fix-alpha-for-overlapping-glyphs
Fix incorrect color blending for overlapping glyphs in BGRA mode
2023-12-24 19:03:28 +11:00
Andrew Murray
b8826ef8cb
Merge pull request #7528 from akx/git-blame-ignore-revs
Add .git-blame-ignore-revs file
2023-12-24 16:57:07 +11:00
Andrew Murray
d2dc8d3a6e Added type hints 2023-12-24 15:59:12 +11:00
Andrew Murray
97c2b6672c Updated actions/upload-artifact to v4 2023-12-24 13:42:57 +11:00
Andrew Murray
fc1cf9f65b Published to Test PyPI
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-24 13:37:37 +11:00
Andrew Murray
808f312c7a Updated environment name
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-24 13:37:31 +11:00
Andrew Murray
41e45b5f95
Merge pull request #7633 from hugovk/type-imagemode
Add type hints for ImageMode
2023-12-23 22:10:10 +11:00
Hugo van Kemenade
17af8eca02
Add type hints for ImageMode
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-23 02:16:46 -07:00
Hugo van Kemenade
76809f09ef Add type hints for ImageMode 2023-12-22 16:23:28 +02:00
Andrew Murray
e9453a7b88
Merge pull request #7631 from hugovk/future-annotations
Add `from __future__ import annotations` using Ruff/isort
2023-12-22 23:52:52 +11:00
Andrew Murray
64ddace6c4 Add 'from __future__ import annotations' using Ruff/isort 2023-12-22 23:06:35 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
905ae8b5d1 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:07 +02:00
Andrew Murray
bfbfff0b78 Update CHANGES.rst [ci skip] 2023-12-21 22:08:38 +11:00
Hugo van Kemenade
dd42a24f9e
Merge pull request #7565 from radarhere/tile 2023-12-21 12:59:28 +02:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency 2023-12-21 12:58:07 +02:00
Hugo van Kemenade
0331d9d48b
Merge pull request #7560 from radarhere/string_length_check 2023-12-21 12:55:37 +02:00
Hugo van Kemenade
b638d056d5
Merge pull request #7548 from radarhere/imagefont 2023-12-21 12:55:20 +02:00
Hugo van Kemenade
9eb93915c3
Merge pull request #7521 from radarhere/gif_save_all 2023-12-21 12:52:26 +02:00
Hugo van Kemenade
ccfe33fd3a
Merge pull request #7515 from radarhere/gif 2023-12-21 12:51:20 +02:00
Hugo van Kemenade
7e30619541
Merge pull request #7483 from radarhere/psd 2023-12-21 12:50:34 +02:00
pre-commit-ci[bot]
1105c745d9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-20 20:29:18 +00:00
Nulano
714ae0efcf Updated actions/upload-artifact to v4 2023-12-20 21:27:26 +01:00
Andrew Murray
e2c9e33c0d
Merge pull request #7622 from hugovk/add-mypy
Check types with mypy
2023-12-20 18:13:37 +11:00
Hugo van Kemenade
acc8f95f9b
Add NumPy to tox for mypy
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-19 11:25:42 +02:00
Hugo van Kemenade
5db5d66179 Remove default 'line-length = 88' 2023-12-19 09:23:43 +02:00
Hugo van Kemenade
b8605eaa84 Check types with mypy 2023-12-19 09:23:43 +02:00
Hugo van Kemenade
fac2b6e413
Merge pull request #7624 from radarhere/type_hints 2023-12-19 09:14:01 +02:00
Andrew Murray
1f9dafec80 Added type hints for format and format_description 2023-12-19 14:11:00 +11:00
Andrew Murray
67890b221e
Merge pull request #7623 from hugovk/cleanup-imagemath-inline-isinstance
ImageMath: Inline `isinstance` check
2023-12-19 08:43:21 +11:00
Hugo van Kemenade
368c05c9dc Inline isinstance check 2023-12-18 18:11:29 +02:00
Hugo van Kemenade
a835bfb4d3
Merge pull request #7617 from radarhere/typehints 2023-12-18 15:47:05 +02:00
Andrew Murray
e1a2ad14df
Merge pull request #7619 from radarhere/github-actions
Update actions/upload-artifact action to v4
2023-12-16 10:15:07 +11:00
Andrew Murray
28c95013b7 Update actions/upload-artifact action to v4 2023-12-15 14:45:41 +11:00
Andrew Murray
b60a5827e8 Import annotations to allow for pipe as union type 2023-12-15 07:59:38 +11:00
Andrew Murray
e482ea9305
Corrected type hint
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-15 07:57:14 +11:00
Andrew Murray
c81beb5164
Updated step name
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-15 07:55:26 +11:00
Andrew Murray
ac38a91816 Added type hints 2023-12-14 23:10:30 +11:00
Andrew Murray
6693046143 Added trusted PyPI publishing 2023-12-14 19:02:48 +11:00
Andrew Murray
cbab3a5c9b Removed "Success" job, as this is not used in mergify 2023-12-14 18:57:19 +11:00
Andrew Murray
e5ee034675 Update CHANGES.rst [ci skip] 2023-12-14 18:34:33 +11:00
Andrew Murray
ac1f10fa82
Merge pull request #7576 from deliangyang/main
Import plugins relative to the module
2023-12-14 18:28:22 +11:00
Benjamin Gilbert
14146732be Clarify JPEG tests for default/invalid subsampling
-1 is the default; 3 is invalid and should behave the same as the default.
2023-12-13 18:26:35 -06:00
Andrew Murray
f90827dfc8 Rearranged subsampling assertions 2023-12-13 18:26:35 -06:00
Benjamin Gilbert
4b422db243 Add keep_rgb option to prevent RGB -> YCbCr conversion during JPEG write
libjpeg automatically converts RGB to YCbCr by default.  Add a keep_rgb
option to disable libjpeg's automatic conversion of RGB images during
write.
2023-12-13 18:26:35 -06:00
Andrew Murray
0ae1377196 Update CHANGES.rst [ci skip] 2023-12-13 20:47:37 +11:00
Andrew Murray
45e44085c0
Merge pull request #7609 from bgilbert/encoder-errors
Translate encoder error codes to strings; deprecate `ImageFile.raise_oserror()`
2023-12-13 20:45:47 +11:00
Benjamin Gilbert
e1fb1ab5c4 Deprecate raise_oserror() for removal in Pillow 12
It's only useful if the caller has an IMAGING_CODEC_* error code, which
are only produced by codec decode() methods and are automatically
translated by ImageFile.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-13 02:17:32 -06:00
Benjamin Gilbert
ec17dc11ba Translate encoder error codes to strings
When decoding, we use raise_oserror() to convert codec error codes to
strings.  Adapt that code to be used when encoding as well.  Add a new
helper function that returns the exception so we can still raise
`from exc`.
2023-12-12 23:13:51 -06:00
Nulano
1ecd19336f cross-complie fribidi for windows arm64 2023-12-12 22:54:24 +01:00
Andrew Murray
4c7eeec4fc
Merge pull request #7600 from nulano/anchor-clarify-docs
Clarify default anchor alignment
2023-12-13 07:36:00 +11:00
Andrew Murray
dfc9e98141
Merge pull request #7615 from hugovk/fix-sphinx-lint
Update pre-commit to fix Sphinx Lint
2023-12-13 07:17:08 +11:00
Hugo van Kemenade
6dc7ee0e39 Update pre-commit to fix Sphinx Lint 2023-12-12 19:01:30 +02:00
Nulano
af2d976880 clarify default anchor alignment 2023-12-12 17:22:19 +01:00
Hugo van Kemenade
66c244af32
Merge pull request #7611 from radarhere/readthedocs
Updated readthedocs to latest version of Python
2023-12-09 08:55:43 +02:00
Andrew Murray
6a6487bd2a
Use latest version of Python
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-09 09:09:49 +11:00
Andrew Murray
ccb59bc371 Updated to Python 3.12 2023-12-09 08:54:23 +11:00
Hugo van Kemenade
1a98590697
Merge pull request #7608 from radarhere/releasenotes 2023-12-08 12:32:32 +02:00
Andrew Murray
9e5173846e
Updated wording
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-08 21:04:15 +11:00
Andrew Murray
c45b7590ad Added release notes for #7488 2023-12-08 19:20:48 +11:00
Andrew Murray
5c560ca1a9 Added release notes for #7491 2023-12-08 19:20:43 +11:00
Andrew Murray
43a4477cd9 Added release notes for #7584 and #7587 2023-12-08 19:20:37 +11:00
Andrew Murray
33d5a7993b
Merge pull request #7607 from python-pillow/renovate/github-actions
Update github-actions
2023-12-08 08:27:40 +11:00
renovate[bot]
1dfcb592bd
Update github-actions 2023-12-07 15:07:52 +00:00
Hugo van Kemenade
976347867c
Merge pull request #7605 from radarhere/releasenotes 2023-12-07 17:07:29 +02:00
Andrew Murray
afae56829a Added release notes for #7599 and #7593 2023-12-07 20:54:30 +11:00
Andrew Murray
b4f0133633 Update CHANGES.rst [ci skip] 2023-12-07 08:49:28 +11:00
pre-commit-ci[bot]
232094e065 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-06 21:45:26 +00:00
Andrew Murray
8b44116773 Merge branch 'main' into dds_rgb 2023-12-07 08:43:57 +11:00
Hugo van Kemenade
7cc0482804
Merge pull request #6486 from REDxEYE/improved_dds 2023-12-06 22:51:05 +02:00
Andrew Murray
d1a2235413
Added tilde prefix
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-06 21:23:26 +11:00
Andrew Murray
f505eecb63 Update CHANGES.rst [ci skip] 2023-12-06 17:29:33 +11:00
Andrew Murray
e9afaee248
Merge pull request #7593 from florath/ImageStat_getextrema_opt
Optimize ImageStat.Stat._getextrema function
2023-12-06 17:27:56 +11:00
Andrew Murray
9248f71bc9 Update CHANGES.rst [ci skip] 2023-12-06 12:11:19 +11:00
Andrew Murray
e43dd6610d
Merge pull request #7578 from radarhere/font
Handle pathlib.Path in FreeTypeFont
2023-12-06 12:09:16 +11:00
Andrew Murray
00c6a89177 Link to plugin 2023-12-06 11:10:20 +11:00
Andreas Florath
ed03954d9e
Merge branch 'main' into ImageStat_getextrema_opt 2023-12-05 16:39:18 +01:00
Hugo van Kemenade
7d892d3e5f
Merge pull request #7601 from bgilbert/streamtype 2023-12-05 15:38:58 +02:00
REDxEYE
9e6030f5a9
Rename _420_OPAQUE to OPAQUE_420
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-05 13:04:19 +03:00
Andrew Murray
66c5e9ae98 Added release notes 2023-12-05 19:31:33 +11:00
Andrew Murray
0a66b98558
Merge pull request #7597 from hugovk/comprehensions
Use list comprehensions to create transformed lists
2023-12-05 18:56:49 +11:00
Andrew Murray
f2e478e968 Merge branch 'main' into improved_dds 2023-12-05 17:49:47 +11:00
Andrew Murray
584fdde178 Update CHANGES.rst [ci skip] 2023-12-05 17:25:43 +11:00
Andrew Murray
b3f374333b
Merge pull request #7603 from sambvfx/bc4-dds
Added support for reading DX10 BC4 DDS images
2023-12-05 17:23:16 +11:00
Sam Bourne
8a88e43961
Merge pull request #1 from radarhere/bc4-dds
Added test images
2023-12-04 17:59:13 -08:00
Hugo van Kemenade
f7c3f2a447
Use underscore as throwaway variable
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-05 00:03:38 +02:00
Andrew Murray
cd2c3344d7 Update CHANGES.rst [ci skip] 2023-12-05 08:01:24 +11:00
Andrew Murray
0e36c14680 Added test BC4 TYPELESS image 2023-12-05 07:39:15 +11:00
Andrew Murray
c1b3c34678 Added expected test image 2023-12-05 07:18:07 +11:00
Hugo van Kemenade
e3bfe232aa
Merge pull request #7602 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-12-04 21:08:34 +02:00
Sam Bourne
8c5d5c7e6b Add support for BC4 dds files 2023-12-04 09:54:10 -08:00
pre-commit-ci[bot]
bf9709bc48
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.6)
- [github.com/psf/black-pre-commit-mirror: 23.10.1 → 23.11.0](https://github.com/psf/black-pre-commit-mirror/compare/23.10.1...23.11.0)
- [github.com/sphinx-contrib/sphinx-lint: v0.8.1 → v0.9.0](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.8.1...v0.9.0)
- [github.com/tox-dev/pyproject-fmt: 1.4.1 → 1.5.3](https://github.com/tox-dev/pyproject-fmt/compare/1.4.1...1.5.3)
2023-12-04 17:18:50 +00:00
Hugo van Kemenade
9601102724
Merge branch 'main' into comprehensions 2023-12-04 17:09:10 +02:00
Hugo van Kemenade
fe26900688
Merge pull request #7599 from florath/ImageStat_getcount_opt 2023-12-04 17:04:38 +02:00
Hugo van Kemenade
e92c07f402
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-12-04 16:34:39 +02:00
Benjamin Gilbert
dafaa1c512 Document JPEG streamtype option
streamtype=1 is new in 10.2.0; the other values have existed since Git
pre-history.
2023-12-04 06:58:37 -06:00
Andrew Murray
d042c4bc37 Added typing.IO to type hint 2023-12-04 22:26:14 +11:00
Andrew Murray
9a6c47a9d2 Merge branch 'main' into font 2023-12-04 22:25:58 +11:00
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
2e8dd3bdca Use int.from_bytes() 2023-12-01 22:56:25 +11:00
Andrew Murray
30eb41475d Use f-string
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-12-01 22:44:51 +11: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
f1fef09d4a Support arbitrary masks for uncompressed RGB images 2023-11-30 21:13:59 +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
Andrew Murray
5fb86c55ed Moved code closing fp and _fp into common method 2023-11-29 20:05:17 +11: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
Nulano
cd9deddcd5 add gcc problem matcher to test.yml 2023-11-28 14:31:46 +01: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
Nulano
4f939a1c2d use cibuildwheel on windows 2023-11-28 14:20:53 +01:00
Aarni Koskela
39ec56c6ea Improve error message when creating TrueType fonts of invalid size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-28 15:09:53 +02:00
Andrew Murray
697c24bc7d
Merge pull request #7581 from hugovk/requirements-cibw
Install cibuildwheel from requirements file
2023-11-28 23:30:08 +11:00
helloworld
b235aa98c6 fix: use parent_name instead of parent_module 2023-11-28 20:21:03 +08:00
Hugo van Kemenade
106f3bcae7 Install cibuildwheel from requirements file
So Renovate can update them all at the same time
2023-11-28 13:12:42 +02:00
Andrew Murray
a1d2297029
Merge pull request #7563 from radarhere/optional-dependencies
List optional dependencies in pyproject (apart from docs and tests)
2023-11-28 21:49:41 +11:00
Andrew Murray
4bc365547a
Corrected type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-28 21:43:58 +11:00
Hugo van Kemenade
af12908dad
Merge pull request #7579 from hugovk/docs-activate-tab
Docs: Activate tabs based on browser's operating system
2023-11-28 12:32:23 +02:00
Andrew Murray
9e8edb42b6 Added type hint 2023-11-28 21:18:58 +11:00
Hugo van Kemenade
6d90f987d1
Merge pull request #107 from radarhere/docs-activate-tab 2023-11-28 11:48:47 +02:00
Andrew Murray
40976799c6 Use html_css_files instead of setup() 2023-11-28 20:04:41 +11:00
Andrew Murray
06687642b5 window.navigator has already been used 2023-11-28 19:48:41 +11:00
Andrew Murray
cf97e8644d Do not test for iOS 2023-11-28 19:48:31 +11:00
Andrew Murray
823c0b0790 Query now searches for exactly matching text 2023-11-28 19:39:38 +11:00
Deliang Yang
6825a76692 fix: Importing plugins from a user-specified installation directory
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: Wrong path replacement

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: typo
2023-11-28 08:25:16 +08:00
Hugo van Kemenade
ccb0a08a9b
Select "Windows" tab instad of "Windows using MSYS2/MinGW"
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-11-27 12:54:50 -07:00
Zach Nagengast
9c60e856ad
Apply suggestions from code review
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-11-27 09:20:40 -08:00
Zach Nagengast
38992f6810
Merge pull request #1 from nulano/fix-alpha-for-overlapping-glyphs
Add tests for glyph alpha blending
2023-11-27 08:50:41 -08:00
Nulano
0cef9f251c fix drawing text alpha on RGBA image on big-endian platforms 2023-11-27 17:12:12 +01:00
Nulano
f3b3442c50 add test for glyph alpha blending 2023-11-27 16:25:04 +01:00
Hugo van Kemenade
959b45c945 Activate tabs based on browser's operating system 2023-11-27 16:27:39 +02:00
Andrew Murray
ae7958fa8d Handle pathlib.Path in FreeTypeFont 2023-11-27 23:03:10 +11:00
Hugo van Kemenade
f9c7bd8611
Merge pull request #7572 from radarhere/wheels
Updated wheels README after cibuildwheel integration
2023-11-25 13:04:49 +02:00
Andrew Murray
3e7aec5c0d Updated README after cibuildwheel integration [ci skip] 2023-11-25 21:56:23 +11:00
Andrew Murray
de86f0aeb8 Updated harfbuzz to 8.3.0 2023-11-25 19:42:37 +11:00
Hugo van Kemenade
e2ddd27500
Merge pull request #7552 from radarhere/cibuildwheel
Use cibuildwheel
2023-11-25 10:27:32 +02:00
Andrew Murray
55c5587437 Fill identical pixels with transparency in subsequent frames 2023-11-25 19:16:32 +11:00
Hugo van Kemenade
7070feccb7
Merge pull request #7570 from radarhere/gif_optimize
"optimize" default when saving GIF images
2023-11-25 10:03:00 +02:00
Andrew Murray
f59b51fdc7 Simplified code 2023-11-25 17:36:19 +11:00
Andrew Murray
c855584dac Corrected "optimize" default when saving GIF images 2023-11-25 17:30:09 +11:00
Andrew Murray
5431b15bd2 Do not assign new fp attribute to image when exiting context manager 2023-11-24 15:19:19 +11:00
Andrew Murray
04a4d54275 Update CHANGES.rst [ci skip] 2023-11-24 15:13:39 +11:00
Andrew Murray
f8d061c88e
Merge pull request #7557 from RaphaelVRossi/check-image-has-fp-when-close
If absent, do not try to close fp when closing image
2023-11-24 15:06:39 +11:00
Andrew Murray
a07bac3a56 Attempt memory mapping when tile args is a string 2023-11-21 21:45:14 +11:00
Hugo van Kemenade
9694cfcfda
Merge pull request #7564 from nulano/config-docs
Use --config-settings in external libraries list in installation.rst
2023-11-21 00:21:59 +02:00
Andrew Murray
10fd7ff539 Remove implication that "-C" is since Pillow 3.0.0 2023-11-20 13:43:08 -08:00
Andrew Murray
5c277a0e8f Split fpx_mic dependency 2023-11-21 08:33:11 +11:00
Nulano
108eee1bdd use --config-settings in external libraries list 2023-11-20 19:39:49 +01:00
Hugo van Kemenade
6b75268efd
Merge pull request #7562 from radarhere/tcltk 2023-11-20 17:07:51 +02:00
Andrew Murray
eeeb2d436f List optional dependencies apart from docs and tests 2023-11-20 23:56:56 +11:00
Andrew Murray
9f60788be1
No longer mention tcl/tk under "External Libraries"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-20 23:17:41 +11:00
Andrew Murray
51075b8e5c tcl/tk is no longer a build dependency 2023-11-20 18:54:56 +11:00
Andrew Murray
d9d11b9499
Merge pull request #7559 from nulano/arm_build
Windows arm64 dependency cross-compilation fixes
2023-11-20 07:18:03 +11:00
Andrew Murray
07c216c0e1 Removed zstd again 2023-11-18 06:43:40 +11:00
Ondrej Baranovič
7410d40f3a
add type annotation
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-17 16:33:20 +01:00
Raphael Rossi
8186c63d40
Merge pull request #1 from radarhere/check-image-has-fp-when-close
Do not assign new fp attribute to image when closing
2023-11-17 08:46:20 -03:00
Aarni Koskela
cffd7384b7
Update .git-blame-ignore-revs
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-17 13:06:44 +02:00
Andrew Murray
72ee8c5ef1 Fixed bundling dylibs into arm64 wheels 2023-11-17 18:39:37 +11:00
Andrew Murray
524b823c1b Removed unnecessary string length check 2023-11-17 17:41:47 +11:00
Nulano
af83f679e8 windows arm64 build fixes 2023-11-17 00:05:52 +01:00
Andrew Murray
5f33175b20 Fixed checking that no debug messages were logged 2023-11-17 08:37:46 +11:00
Andrew Murray
67e1253202 Do not assign new fp attribute to image when closing 2023-11-17 08:32:25 +11:00
Andrew Murray
28c173f8d4
Merge pull request #7558 from nulano/tested-versions
Add Windows 11 tested Pillow versions
2023-11-17 07:51:26 +11:00
Nulano
4b111d1d5e update tested versions to include Windows 11 2023-11-16 21:24:56 +01:00
Raphael Vieira Rossi
b25ece364b
fix: check object Image has attribute 'fp' when closes 2023-11-16 16:46:11 -03:00
Andrew Murray
98b73009cc Correct PDF palette size when saving 2023-11-16 23:01:26 +11:00
Andrew Murray
d4a7016157 Skip PyPy 3.8 2023-11-16 10:50:48 +11:00
Andrew Murray
c42ebf7e8e
Skip PyPy 3.8
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-16 09:32:52 +11:00
Andrew Murray
e013ad9621 Restored MACOSX_DEPLOYMENT_TARGET on x86_64 2023-11-16 09:22:23 +11:00
Andrew Murray
3b1e46ef66 Move wheels into dist.zip 2023-11-16 09:10:44 +11:00
Andrew Murray
d077190cce Skip tests on macOS arm64 2023-11-16 08:32:34 +11:00
Andrew Murray
9f1a1d3fc8 Fixed xcb setup 2023-11-16 08:13:08 +11:00
pre-commit-ci[bot]
3708bb614b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-11-15 12:40:13 +00:00
Aarni Koskela
d2312776d7 Add a flake8 commit from 2014 2023-11-15 14:39:27 +02:00
Aarni Koskela
95d0f632ed
Update .git-blame-ignore-revs
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-15 14:37:55 +02:00
Andrew Murray
0204e70e7b Removed openblas-devel and pkgconfig on manylinux 2023-11-15 15:47:45 +11:00
Andrew Murray
6672663c09 Pin cibuildwheel version 2023-11-15 15:47:24 +11:00
Andrew Murray
0a12f6c399 Removed --std=c99 setting 2023-11-15 13:21:38 +11:00
Andrew Murray
9be181c2bf
Use action
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-15 11:48:10 +11:00
Andrew Murray
da0b826e96 Update CHANGES.rst [ci skip] 2023-11-14 23:46:45 +11:00
Andrew Murray
4b308dc2bf
Merge pull request #7488 from bgilbert/jpeg-restart
Allow configuring JPEG restart marker interval on save
2023-11-14 23:42:50 +11:00
Andrew Murray
ad7fee5ed0 Use cibuildwheel 2023-11-14 23:23:46 +11:00
Aarni Koskela
75f5e17a32 Add .git-blame-ignore-revs file 2023-11-13 17:22:51 +02:00
Hugo van Kemenade
902055fbfe
Merge pull request #7526 from akx/mount-ruffmore 2023-11-13 16:15:06 +02:00
Hugo van Kemenade
93d5f8b45b
Merge pull request #7549 from radarhere/imagefont_memory 2023-11-13 16:14:18 +02:00
Aarni Koskela
f47633a24a
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-13 09:28:01 +02:00
Hugo van Kemenade
12022fe54e
Merge pull request #7544 from hugovk/ci-sdist
Release automation: create sdist on CI
2023-11-13 08:34:04 +02:00
Andrew Murray
086ca274fa Decrement reference count for PyObject 2023-11-13 15:11:28 +11:00
Andrew Murray
f016d3079b Determine mask mode in Python instead of C 2023-11-13 14:31:22 +11:00
Andrew Murray
25cc5afbb1
Merge pull request #7546 from hugovk/pytest-fail
Tests: Replace `assert False` with `pytest.fail()`
2023-11-13 09:58:17 +11:00
Andrew Murray
6ea08c25e3
Merge pull request #7542 from hugovk/add-fedora
Test Fedora 39
2023-11-13 09:12:56 +11:00
Hugo van Kemenade
5eea6ed633 Replace 'assert False' with pytest.fail() 2023-11-12 22:30:28 +02:00
ZachNagengast
29ca3fcf3a Update caron_below_ttb_lb test image 2023-11-12 11:36:35 -08:00
Hugo van Kemenade
00430d0b30 Create sdist on CI 2023-11-12 20:45:19 +02:00
Hugo van Kemenade
cb485d7127 Test Fedora 39 2023-11-12 17:20:01 +02:00
Aarni Koskela
126bc44e9e Fix up most noqas
Update Tests/bench_cffi_access.py

Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-11-12 13:47:52 +02:00
ZachNagengast
0a33b30614 Update caron_below_ttb test image 2023-11-11 18:45:21 -08:00
Hugo van Kemenade
556dd1e15c
Merge pull request #7535 from hugovk/add-3.13 2023-11-12 00:34:12 +02:00
Hugo van Kemenade
9b8c23e2dd
Merge pull request #7527 from akx/remove-commented-out-code 2023-11-11 14:32:15 +02:00
mergify[bot]
8a13bf8b93
Merge pull request #7530 from hugovk/infer-target-version
Black and Ruff infer `target-version` from `requires-python` in `pyproject.toml`
2023-11-11 08:06:31 +00:00
Andrew Murray
4b6201237b Merge branch 'main' into infer-target-version 2023-11-11 18:26:43 +11:00
Andrew Murray
aab5a2f7a5 Corrected syntax [ci skip] 2023-11-11 18:08:49 +11:00
Hugo van Kemenade
c3fb0de43f
Merge pull request #106 from radarhere/infer-target-version
Black infers target-version from requires-python in pyproject.toml
2023-11-11 08:48:13 +02:00
Andrew Murray
548eeea488 Black infers target-version from requires-python in pyproject.toml 2023-11-11 16:49:04 +11:00
Andrew Murray
0cf60657d2 Update CHANGES.rst [ci skip] 2023-11-11 16:23:46 +11:00
Andrew Murray
bf76320444
Merge pull request #7491 from bgilbert/jpeg-tables-only
Implement `streamtype=1` option for tables-only JPEG encoding
2023-11-11 16:06:34 +11:00
Andrew Murray
b23b8079e6
Merge pull request #7507 from stefan6419846/freetype2
DOC: Add missing sections to FREETYPE2.txt
2023-11-11 16:02:49 +11:00
Andrew Murray
1952790e3f
Merge pull request #7513 from radarhere/xz
Updated xz to 5.4.5
2023-11-11 15:47:48 +11:00
Hugo van Kemenade
9b88cf5ad9 #ifdef _UNISTD_H -> HAVE_UNISTD_H 2023-11-08 18:48:40 +02:00
Hugo van Kemenade
95eef25aca Fix for Python 3.13: explicitly include unistd.h 2023-11-08 17:52:43 +02:00
Hugo van Kemenade
dcc66597f0 Test Python 3.13 pre-release 2023-11-08 17:52:43 +02:00
ZachNagengast
d127600c59 Update test images for overlapping text 2023-11-07 08:03:22 -08:00
ZachNagengast
11bea8fea6 Merge branch 'main' of ssh://github.com/python-pillow/Pillow into fix-alpha-for-overlapping-glyphs 2023-11-07 06:34:31 -08:00
Hugo van Kemenade
a7fe25df53
Merge pull request #7522 from radarhere/png_save_all 2023-11-07 11:35:24 +02:00
Hugo van Kemenade
576119ae9d Black and Ruff infer target-version from requires-python in pyproject.toml 2023-11-07 09:29:33 +02:00
ZachNagengast
8ecf2e9f30 Merge branch 'fix-alpha-for-overlapping-glyphs' of ssh://github.com/ZachNagengast/Pillow into fix-alpha-for-overlapping-glyphs 2023-11-06 21:11:36 -08:00
ZachNagengast
fdecfca9f4 Update gray glyph blending logic and tests 2023-11-06 21:11:28 -08:00
Zach Nagengast
b15b2d494c
Update src/_imagingft.c
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-11-06 20:48:22 -08:00
Aarni Koskela
0c705692ea Remove old commented-out code 2023-11-06 21:21:07 +02:00
Hugo van Kemenade
c97d2e4c59
Merge pull request #7525 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-11-06 20:38:30 +02:00
pre-commit-ci[bot]
f8c36bfdc9
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.10.1](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...23.10.1)
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)
- [github.com/sphinx-contrib/sphinx-lint: v0.6.8 → v0.8.1](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.6.8...v0.8.1)
- [github.com/tox-dev/pyproject-fmt: 1.2.0 → 1.4.1](https://github.com/tox-dev/pyproject-fmt/compare/1.2.0...1.4.1)
- [github.com/abravalheri/validate-pyproject: v0.14 → v0.15](https://github.com/abravalheri/validate-pyproject/compare/v0.14...v0.15)
2023-11-06 17:18:28 +00:00
pre-commit-ci[bot]
eb8405baa0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-11-06 13:24:42 +00:00
Christian Clauss
fd59f91d17 ruff: Minor optimizations of list comprehensions, x in set, etc. 2023-11-06 19:13:47 +06:00
Hugo van Kemenade
0660886c9a
Merge pull request #6966 from akx/ruff 2023-11-06 13:37:47 +02:00
Aarni Koskela
9e615b6ad3 Add noqas for UP031 2023-11-06 12:43:14 +02:00
Aarni Koskela
307d00b44d Apply ruff autofixes 2023-11-06 12:43:14 +02:00
Aarni Koskela
de6c4b09d7 Switch linting to ruff
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-06 12:43:14 +02:00
Aarni Koskela
80406a7c9b editorconfig: specify 2-space indent for TOML
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-06 12:42:44 +02:00
Hugo van Kemenade
4a7cf0551a
Merge pull request #7512 from hugovk/docs-link-exceptions
Docs: link exceptions to Python docs
2023-11-05 10:58:12 +02:00
Hugo van Kemenade
8fe20165d4
Merge pull request #105 from radarhere/docs-link-exceptions
Docs: link exceptions to Python docs
2023-11-05 07:47:01 +02:00
Andrew Murray
8cbd0b5fe0 Docs: link exceptions to Python docs 2023-11-05 12:18:38 +11:00
ZachNagengast
e1aaec3fb1 Merge branch 'main' of ssh://github.com/python-pillow/Pillow into fix-alpha-for-overlapping-glyphs 2023-11-03 15:09:07 -07:00
ZachNagengast
a7f805d889 Merge branch 'fix-alpha-for-overlapping-glyphs' of ssh://github.com/ZachNagengast/Pillow into fix-alpha-for-overlapping-glyphs 2023-11-03 15:08:50 -07:00
ZachNagengast
bb0eff44cd Update blending logic
- Unpremultiply properly
- No longer uses floats
2023-11-03 15:05:55 -07:00
Andrew Murray
38be37c5f9
Merge branch 'main' into docs-link-exceptions 2023-11-03 22:29:33 +11:00
Andrew Murray
bee9c59716
Merge pull request #7520 from hugovk/CVE-2023-44271
Add CVE-2023-44271 to release notes
2023-11-03 22:28:22 +11:00
Andrew Murray
c29648ff53 If save_all PNG only has one frame, do not create animated image 2023-11-03 22:08:48 +11:00
Andrew Murray
dc0379fea5 Corrected combining durations from multiple frames into single frame 2023-11-03 21:09:16 +11:00
Hugo van Kemenade
5339c1cf63 Add CVE-2023-44271 to ImageFont.MAX_STRING_LENGTH fix in release notes 2023-11-03 11:59:37 +02:00
Andrew Murray
1c2f2c79e1
Merge pull request #7509 from radarhere/olefile
Mention defusedxml and olefile in installation instructions
2023-11-03 19:16:16 +11:00
Andrew Murray
fa138155b2 Update CHANGES.rst [ci skip] 2023-11-03 19:01:22 +11:00
Andrew Murray
a5a6ca150c
Merge pull request #7493 from radarhere/frombytes
Fixed frombytes() for images with a zero dimension
2023-11-03 18:56:34 +11:00
Hugo van Kemenade
14c539e787
Merge pull request #7516 from radarhere/fedora
Removed Fedora 37
2023-11-02 09:22:07 +02:00
Andrew Murray
6b1e939027 Removed Fedora 37 2023-11-02 17:33:10 +11:00
Andrew Murray
7c2b681183 Handle disposing background from outside palette 2023-11-02 16:05:13 +11:00
Andrew Murray
d499f0016f
Mention defusedxml
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-11-02 08:21:35 +11:00
Andrew Murray
4a073a7581 Updated xz to 5.4.5 2023-11-02 07:54:34 +11:00
Hugo van Kemenade
ca74a5ea42 Docs: link exceptions to Python docs 2023-11-01 20:18:25 +02:00
Benjamin Gilbert
e572722479 Allow configuring JPEG restart marker interval on save
libjpeg allows specifying the marker interval either in MCU blocks or in
MCU rows.  Support both, via separate parameters, rather than requiring
callers to do the math.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-10-31 17:47:25 -05:00
Andrew Murray
b92c09a391
Updated wording
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-31 18:39:38 +11:00
Andrew Murray
1a6c76495b Mention olefile in installation instructions 2023-10-31 17:47:52 +11:00
Hugo van Kemenade
c9f7a8209b
Merge pull request #7508 from radarhere/appveyor
Updated AppVeyor to Python 3.12
2023-10-31 07:44:24 +02:00
Andrew Murray
8cd01cab80 Updated AppVeyor to Python 3.12 2023-10-31 12:44:53 +11:00
pre-commit-ci[bot]
e2939c35f3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-30 13:19:50 +00:00
Stefan
2f73371cd1
DOC: Add missing sections to FREETYPE2.txt 2023-10-30 14:16:31 +01:00
REDxEYE
2f7caad37f
Merge pull request #9 from radarhere/test_open
Removed test_open
2023-10-30 14:49:47 +03:00
REDxEYE
e0a726b42e
Merge pull request #8 from radarhere/improved_dds
Added test for BC4U
2023-10-30 14:48:27 +03:00
Andrew Murray
c7fbfdc795 Removed test_open 2023-10-30 22:44:52 +11:00
REDxEYE
940224eaad Remove wrong test_save input 2023-10-30 14:32:28 +03:00
Andrew Murray
ddcbfde446 Test BC4U 2023-10-30 22:22:37 +11:00
Andrew Murray
8814610635 Only unpack masks when necessary 2023-10-30 22:16:55 +11:00
Andrew Murray
5fd3035362 Removed duplicate test 2023-10-30 22:16:48 +11:00
Andrew Murray
ee8c9c3522 Removed unused test images 2023-10-30 22:16:39 +11:00
REDxEYE
cb554c6d0f
Update src/PIL/DdsImagePlugin.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-30 13:55:02 +03:00
REDxEYE
4c635e4ffc
Merge pull request #7 from radarhere/improved_dds
Support RGB bitcount 8
2023-10-30 12:42:36 +03:00
Hugo van Kemenade
9d61896af0
Merge pull request #7505 from hugovk/docs-pypi-role 2023-10-30 11:02:44 +02:00
Andrew Murray
e3ff5eb8e4 Test BC1_UNORM and BC1_TYPELESS 2023-10-30 19:53:51 +11:00
Hugo van Kemenade
ac6eb84704 Add 'pypi' Sphinx role 2023-10-30 08:56:42 +02:00
Hugo van Kemenade
8d0812252a
Merge pull request #7503 from radarhere/olefile 2023-10-30 08:42:34 +02:00
Andrew Murray
84e148e944 Document that olefile is required for FPX and MIC formats 2023-10-30 09:02:42 +11:00
Andrew Murray
5a7d524f94 Install more optional dependencies on Windows CIs 2023-10-30 09:02:29 +11:00
Hugo van Kemenade
44062ec778
Merge pull request #7501 from python-pillow/3.12-travis-ci 2023-10-29 14:33:10 +02:00
Hugo van Kemenade
dea5bbebbc Update to Python 3.12 and Ubuntu 22.04 LTS Jammy Jellyfish 2023-10-29 11:41:49 +02:00
Hugo van Kemenade
da3ec085e4
Merge pull request #7499 from radarhere/items 2023-10-28 11:11:33 +03:00
Andrew Murray
17be898fc4 Added tests for unimplemented bitcount 2023-10-28 16:58:57 +11:00
Andrew Murray
0051fc9cf8 Removed unnecessary seek 2023-10-28 16:43:43 +11:00
Andrew Murray
3652f431c2 Simplified code 2023-10-28 14:22:39 +11:00
Andrew Murray
76f758e1ef Merge branch 'main' into fix-alpha-for-overlapping-glyphs 2023-10-28 00:41:41 +11:00
Hugo van Kemenade
0a3c8c27ec
Merge pull request #7498 from radarhere/pip_install 2023-10-27 14:27:10 +03:00
Andrew Murray
bff6b4d6a2 Switched from direct setup.py invocation to "pip install ." 2023-10-27 19:17:15 +11:00
pre-commit-ci[bot]
49fd2116c3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-27 05:03:04 +00:00
Hugo van Kemenade
d3fd1734af
Merge pull request #7490 from Yay295/patch-1
Add mode to ImageOps._lut() error message
2023-10-27 07:40:44 +03:00
ZachNagengast
f97570f523 Blend colors with alpha when pasting
- Previously took the highest alpha as threshold
2023-10-26 21:40:41 -07:00
Hugo van Kemenade
57c72b6e00
Merge pull request #7484 from hugovk/setup-to-pyproject 2023-10-26 14:06:34 +03:00
Andrew Murray
e10a58ccce Concatenate multiple EXIF markers 2023-10-26 21:46:38 +11:00
Andrew Murray
85485229e3 Support RGB bitcount 8 2023-10-25 16:24:00 +11:00
Andrew Murray
f58f410b21 ALPHA by itself does not mean bitcount is valid 2023-10-25 15:30:59 +11:00
Benjamin Gilbert
4d7372bfd0 Implement streamtype=1 option for tables-only JPEG encoding
We already support streamtype=2 to skip producing JPEG tables, but
streamtype=1, which skips everything but the tables, was never implemented.
The streamtype=1 stub code dates to Git pre-history, so it's not
immediately clear why.  Implement the missing support.

jpeg_write_tables() can't resume after a full output buffer (it fails with
JERR_CANT_SUSPEND), so it might seem that Pillow needs to pre-compute the
necessary buffer size.  However, in the normal case of producing an
interchange stream, the tables are written via the same libjpeg codepath
during the first jpeg_write_scanlines() call, and table writes aren't
resumable there either.  Thus, any buffer large enough for the normal case
will also be large enough for a tables-only file.

The streamtype option isn't documented and this commit doesn't change that.
It does add a test though.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-10-24 20:30:45 -05:00
Andrew Murray
91f115bead Fixed im.frombytes() for images with a zero dimension 2023-10-25 08:52:26 +11:00
Andrew Murray
5071692039 Fixed Image.frombytes() for images with a zero dimension 2023-10-25 08:52:06 +11:00
Yay295
5295df3b82 add test for autocontrast mode 2023-10-23 23:01:30 -05:00
Yay295
6ddf10c747
use format string instead of concatenation
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-23 21:46:54 -05:00
Andrew Murray
f54dd84586 Test unsupported autocontrast mode 2023-10-24 12:44:00 +11:00
Yay295
ef46608974
add mode to error message 2023-10-23 19:26:08 -05:00
Hugo van Kemenade
5fb892a9e2 Move version from setup.py to pyproject.toml 2023-10-22 20:35:21 +03:00
Hugo van Kemenade
adc64336ab
Add space
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-22 11:07:33 -06:00
Hugo van Kemenade
d8baf5e3de Bump setuptools for Pyroma on 3.8-3.9 2023-10-21 22:37:28 +03:00
Hugo van Kemenade
430920e2a8 Move build config from setup.cfg to pyproject.toml 2023-10-21 22:37:28 +03:00
REDxEYE
2ca9adb79d
Merge pull request #6 from radarhere/improved_dds
Simplified tile creation
2023-10-21 18:41:01 +03:00
Hugo van Kemenade
73c2eb460d Move tools config from setup.cfg to pyproject.toml 2023-10-21 16:23:40 +03:00
Andrew Murray
93e0f39ff3 Removed "mode-" prefix from image names that are not modes 2023-10-21 19:14:46 +11:00
Andrew Murray
12e41e84cd Simplified creating raw tiles 2023-10-21 19:12:52 +11:00
Andrew Murray
8fbb610378 Derive bit count from number of modes 2023-10-21 17:33:04 +11:00
Andrew Murray
4a4a1ee6ad Simplified tile creation 2023-10-21 16:03:21 +11:00
Andrew Murray
a54d28a7bc Merge branch 'main' into improved_dds 2023-10-21 14:27:31 +11:00
Andrew Murray
935958c990 Removed unnecessary casting to enums 2023-10-21 14:27:23 +11:00
Hugo van Kemenade
d05ff5059f
Merge pull request #7481 from radarhere/gray 2023-10-20 08:52:46 +03:00
Andrew Murray
5056850a2f Seek past the data when skipping a layer 2023-10-20 16:09:13 +11:00
Andrew Murray
19aeed07bf Merge branch 'main' into gray 2023-10-20 07:47:17 +11:00
Hugo van Kemenade
a10dec01b5
Merge pull request #7480 from radarhere/lint 2023-10-19 19:02:28 +03:00
Andrew Murray
e760b02bfa Combine if and assert statement 2023-10-19 20:34:28 +11:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Andrew Murray
8b71f3d3c1 Added messages to errors 2023-10-19 18:42:41 +11:00
Hugo van Kemenade
0a6fcc2d97
Merge pull request #7472 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 3.0.1
2023-10-19 07:52:08 +03:00
REDxEYE
f59c9ae348
Merge pull request #4 from radarhere/improved_dds
Loop over enums to create constants
2023-10-17 13:34:30 +03:00
Andrew Murray
51f7359c94 Loop over enums to create constants 2023-10-17 19:50:17 +11:00
Andrew Murray
5e9a2e3000 Renamed "tile_args" to "args" for consistency with existing ImageFile variable 2023-10-17 19:10:24 +11:00
Andrew Murray
d652ea804a Updated libjpeg-turbo to 3.0.1 2023-10-17 07:51:56 +11:00
Andrew Murray
f790878853
Merge pull request #7466 from hugovk/10.1.0-3.12
Add Python 3.12 support to Pillow 10.1.0 release notes
2023-10-16 17:20:43 +11:00
Hugo van Kemenade
5207bde09a
Merge pull request #7470 from radarhere/macos
Updated macOS tested Pillow versions
2023-10-16 08:06:48 +03:00
Hugo van Kemenade
286028d263
Wording
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-16 08:05:26 +03:00
Andrew Murray
36f44db8cd Updated macOS tested Pillow versions 2023-10-16 15:34:02 +11:00
Andrew Murray
4593508838
Merge pull request #7468 from hugovk/main
Skip non-wheel CI runs for tags
2023-10-16 09:12:02 +11:00
Andrew Murray
8f9e3ffa7e
Merge pull request #7469 from nulano/typo
Fix typos in ImageOps.rst and tutorial.rst
2023-10-16 08:08:25 +11:00
Andrew Murray
0853adcd92
Merge pull request #7467 from hugovk/update-release-checklist
Update release checklist: macOS/Linux artifact is called 'wheels'
2023-10-16 08:05:08 +11:00
Andrew Murray
76049de4ad Fixed typos in tutorial 2023-10-15 22:39:35 +02:00
Nulano
1979d43c99 fix typo in ImageOps.rst 2023-10-15 22:07:08 +02:00
Hugo van Kemenade
95b0c0b342 Skip non-wheel CI runs for tags 2023-10-15 20:46:25 +03:00
Hugo van Kemenade
d455539d0d Update release checklist: macOS/Linux artifact is called 'wheels' 2023-10-15 20:08:48 +03:00
Hugo van Kemenade
daf1ce78ed Add Python 3.12 to Pillow 10.1.0 release notes 2023-10-15 18:57:14 +03:00
Hugo van Kemenade
0be67e5544 10.2.0.dev0 version bump 2023-10-15 16:05:50 +03:00
Hugo van Kemenade
da59ad000d 10.1.0 version bump 2023-10-15 11:59:17 +03:00
Hugo van Kemenade
d10f802b22
Merge pull request #7465 from radarhere/mode
Describe how to populate mode and size when writing a plugin
2023-10-15 10:01:18 +02:00
Andrew Murray
f50c713583 Move #7307 from "Backwards Incompatible Changes" to "API Changes" 2023-10-15 16:17:45 +11:00
Andrew Murray
a1ddb4dd27 Describe how to populate mode and size 2023-10-15 16:17:19 +11:00
Andrew Murray
4ace56d214 Update CHANGES.rst [ci skip] 2023-10-14 15:33:29 +11:00
Hugo van Kemenade
7bf1a87254
Merge pull request #7354 from radarhere/load_default
Added TrueType default font to allow for different sizes
2023-10-14 06:30:38 +02:00
Hugo van Kemenade
e154e97575
Merge pull request #7463 from radarhere/libimagequant
Updated libimagequant to 4.2.2
2023-10-14 06:27:42 +02:00
Andrew Murray
c759ef2c08 Updated libimagequant to 4.2.2 2023-10-14 11:56:23 +11:00
Andrew Murray
3a40816c51 Update CHANGES.rst [ci skip] 2023-10-14 11:06:20 +11:00
Andrew Murray
c2d50881ee Added documentation 2023-10-14 11:01:57 +11:00
Andrew Murray
0da7ad7c48 Merge branch 'main' into load_default 2023-10-14 10:33:50 +11:00
Hugo van Kemenade
ebefb5f1e0
Merge pull request #7442 from radarhere/warning 2023-10-14 01:30:59 +02:00
Hugo van Kemenade
8e5570e23b
Merge pull request #7444 from radarhere/bgr 2023-10-14 01:30:31 +02:00
Andrew Murray
31d4c7797e Update CHANGES.rst [ci skip] 2023-10-14 10:00:12 +11:00
mergify[bot]
a4bc7146e5
Merge pull request #7412 from radarhere/cover
Added ImageOps cover method
2023-10-13 22:16:30 +00:00
Hugo van Kemenade
ff37a5be37
Merge pull request #7458 from radarhere/truncated_exif 2023-10-13 23:49:55 +02:00
Hugo van Kemenade
101154e0d5
Merge pull request #7437 from radarhere/apng 2023-10-13 23:48:22 +02:00
Hugo van Kemenade
5666c05bf3
Merge pull request #7460 from radarhere/new 2023-10-13 23:45:12 +02:00
Hugo van Kemenade
810f5f06c4
Merge branch 'main' into cover 2023-10-13 23:42:06 +02:00
Andrew Murray
31df7b1655 Use new() instead of Image()._new() 2023-10-13 15:41:26 +11:00
REDxEYE
69b922d138 Replace self.mode with self._mode 2023-10-12 22:26:00 +03:00
REDxEYE
2a6bcc18fe Add missing annotation import 2023-10-12 22:19:39 +03:00
pre-commit-ci[bot]
bc6c973e2d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-12 16:19:24 +00:00
REDxEYE
6dd565b4a3 Merge remote-tracking branch 'pillow/main' into improved_dds
# Conflicts:
#	Tests/test_file_dds.py
#	src/PIL/DdsImagePlugin.py
2023-10-12 19:15:06 +03:00
REDxEYE
a5dde8b1c4 Apply suggestion for PR 2023-10-12 19:09:28 +03:00
Andrew Murray
7319d86328 Catch struct.error from truncated EXIF when reading DPI 2023-10-12 10:13:46 +11:00
Andrew Murray
4ecf1df4ea
Merge pull request #7453 from nulano/brotli
Fix libbrotli build for Windows wheels
2023-10-10 07:31:46 +11:00
mergify[bot]
ba09e11a3a
Merge pull request #7452 from radarhere/libtiff
Updated libtiff to 4.6.0
2023-10-09 19:55:42 +00:00
Nulano
a0b1c0ab00 fix brotli build on Windows 2023-10-09 17:43:28 +02:00
Andrew Murray
7cd792cf0c Updated libtiff to 4.6.0 2023-10-09 21:49:51 +11:00
mergify[bot]
28affdbaf9
Merge pull request #7451 from radarhere/brotli
Updated brotli to 1.1.0
2023-10-09 10:42:59 +00:00
Andrew Murray
00722fc3c5 Updated brotli to 1.1.0 2023-10-09 20:14:42 +11:00
Hugo van Kemenade
8e8c08fc03
Merge pull request #7449 from radarhere/travis 2023-10-08 08:15:21 +02:00
Hugo van Kemenade
7921da54a7
Merge pull request #7448 from radarhere/links
Updated redirected links
2023-10-07 08:45:55 -06:00
Hugo van Kemenade
ab5fc84713
Merge pull request #7447 from python-pillow/7341
Add warning to docs: Pillow > 9.5.0 no longer includes 32-bit wheels
2023-10-07 08:41:28 -06:00
Andrew Murray
7f4b9a6323 Allow custom builds to be triggered in Travis CI 2023-10-07 23:49:35 +11:00
Andrew Murray
4632bbcf8d Updated redirected links 2023-10-07 23:08:02 +11:00
Alex Clark
2784136b7a Use correct version spec syntax 2023-10-07 07:49:04 -04:00
Alex Clark
87f917c352 Pillow >= 9.5.0 no longer includes 32-bit wheels. 2023-10-07 07:43:32 -04:00
Andrew Murray
ceca12e876
Restored comment 2023-10-07 07:00:29 +00:00
Andrew Murray
d9283fd1f8
Use default value
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-10-07 17:09:17 +11:00
Hugo van Kemenade
ae9a9b08f1
Merge pull request #7446 from radarhere/releasenotes
Added release notes for #7336, #7355, #7358 and #7392
2023-10-06 23:17:29 -06:00
Andrew Murray
82bcedb860 Added release notes for #7392 2023-10-07 15:02:24 +11:00
Andrew Murray
0d7fb401e0 Added release notes for #7358 2023-10-07 14:50:11 +11:00
Andrew Murray
2d5421f28f Added release notes for #7336 2023-10-07 14:48:35 +11:00
Andrew Murray
21eec5ce75 Added release notes for #7355 2023-10-07 14:48:19 +11:00
Andrew Murray
57c1cf603e Fixed may be used uninitialized warning 2023-10-07 01:15:04 +11:00
Andrew Murray
96d683dafa Update CHANGES.rst [ci skip] 2023-10-06 21:10:51 +11:00
Andrew Murray
24d711bd38
Merge pull request #7303 from radarhere/bgr
Support BGR;15, BGR;16 and BGR;24 access, unpacking and putdata
2023-10-06 21:09:03 +11:00
Andrew Murray
b5d4239f10 Update CHANGES.rst [ci skip] 2023-10-06 18:54:15 +11:00
Andrew Murray
4e7f61f459
Merge branch 'main' into bgr 2023-10-06 18:50:25 +11:00
Hugo van Kemenade
5957f109a5
Merge pull request #7310 from radarhere/cmyk2rgb 2023-10-06 01:43:50 -06:00
Hugo van Kemenade
8280fba356
Merge pull request #7274 from radarhere/jpeg_xmp 2023-10-06 01:36:34 -06:00
Andrew Murray
a3fd009875 Match warning message 2023-10-06 17:31:06 +11:00
Andrew Murray
f24222a954 Merge branch 'main' into jpeg_xmp 2023-10-06 17:23:53 +11:00
Hugo van Kemenade
7b17f9bbb4
Merge pull request #7415 from radarhere/tiff 2023-10-06 00:11:18 -06:00
Andrew Murray
b8c30655cc Include CMYK to RGB convert as unpacker 2023-10-06 16:05:03 +11:00
Andrew Murray
787daa9f19 Merge branch 'main' into cmyk2rgb 2023-10-06 15:52:32 +11:00
Andrew Murray
d46de5273e Update CHANGES.rst [ci skip] 2023-10-06 15:48:58 +11:00
Andrew Murray
2d9c4e663f
Merge pull request #7302 from radarhere/png_i16
Allow saving I;16B images as PNG
2023-10-06 15:45:58 +11:00
pre-commit-ci[bot]
016f8998f9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-06 00:40:44 +00:00
Andrew Murray
7394e5083d
Merge branch 'main' into tiff 2023-10-06 11:40:05 +11:00
Andrew Murray
9ae8d900ef Added release notes 2023-10-06 10:02:35 +11:00
Andrew Murray
1e7dcd3aeb Update CHANGES.rst [ci skip] 2023-10-06 09:04:10 +11:00
Hugo van Kemenade
6f73691564
Merge pull request #7257 from radarhere/i16_point 2023-10-05 12:54:25 -06:00
Hugo van Kemenade
09605ff48e
Merge pull request #7413 from radarhere/bc5s 2023-10-05 09:48:12 -06:00
Hugo van Kemenade
0c55a2d864
Merge pull request #7319 from radarhere/iptc 2023-10-05 09:44:56 -06:00
Hugo van Kemenade
5f04b3d278
Merge pull request #7289 from radarhere/undefined_palette 2023-10-05 09:31:02 -06:00
Hugo van Kemenade
4d66f9396b
Merge pull request #7247 from radarhere/getmask2_max_image_pixels 2023-10-05 09:28:04 -06:00
Hugo van Kemenade
0a432541ae
Merge pull request #7392 from radarhere/eps 2023-10-05 09:27:06 -06:00
Andrew Murray
29d23cfe07 Fixed invalid argument warning 2023-10-04 13:56:58 +11:00
Andrew Murray
54aa8fa852
Merge pull request #7441 from radarhere/python3.12
Test Python 3.12 final in GitHub Actions
2023-10-04 08:08:07 +11:00
Andrew Murray
73d4bc4b9d Test Python 3.12 final 2023-10-04 06:58:02 +11:00
Hugo van Kemenade
ea28a50cac
Merge pull request #7409 from radarhere/harfbuzz 2023-10-03 05:47:34 -06:00
Hugo van Kemenade
c7728e7efb
Merge pull request #7440 from radarhere/python3.12
Updated multibuild to include Python 3.12.0
2023-10-03 03:22:38 -06:00
Andrew Murray
7332b92bcb Updated multibuild to include Python 3.12.0 2023-10-03 17:29:58 +11:00
Hugo van Kemenade
c9955ba272
Merge pull request #7439 from radarhere/pypy 2023-10-02 23:51:40 -06:00
Andrew Murray
19048e4347
Merge pull request #7436 from hugovk/test-ignore-wheels
Don't run normal tests on changes to wheel-building files
2023-10-03 11:40:57 +11:00
mergify[bot]
3edf7f03dd
Merge pull request #7438 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-10-02 22:16:09 +00:00
Andrew Murray
2b63e154b4 Updated harfbuzz to 8.2.1 2023-10-03 08:01:02 +11:00
Andrew Murray
1c17ab4981 Updated PyPy to 7.3.13 2023-10-03 07:59:32 +11:00
pre-commit-ci[bot]
a4d678fdc1
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/tox-dev/pyproject-fmt: 1.1.0 → 1.2.0](https://github.com/tox-dev/pyproject-fmt/compare/1.1.0...1.2.0)
2023-10-02 20:02:53 +00:00
Hugo van Kemenade
44a500af6e Don't run normal tests on changes to wheel-building files 2023-10-02 19:13:02 +03:00
Hugo van Kemenade
b7010a9326
Merge pull request #7418 from radarhere/pillow-wheels 2023-10-02 10:09:50 -06:00
Hugo van Kemenade
3bbd896b03
Merge pull request #7434 from radarhere/blp 2023-10-02 07:59:07 -06:00
Andrew Murray
c9ba107c2c Palette is unneeded as RGB to P conversion will not occur 2023-10-02 19:08:17 +11:00
Andrew Murray
b98dc8abe1 Consider default image when selecting mode for PNG save_all 2023-10-02 19:07:56 +11:00
Andrew Murray
60d88389ae Removed unused code 2023-10-02 11:11:35 +11:00
Andrew Murray
aaa758751d Update CHANGES.rst [ci skip] 2023-10-02 09:54:52 +11:00
Andrew Murray
43e6826199
Merge pull request #7382 from nopperl/parse-eps-trailer
Read bounding box information from the trailer of EPS files if specified
2023-10-02 09:53:35 +11:00
Andrew Murray
14c0f8d757
Update CHANGES.rst [ci skip] 2023-10-01 08:22:21 +11:00
Hugo van Kemenade
c2f7ea59b9
Merge pull request #7426 from radarhere/dds_palette 2023-09-30 14:40:17 -06:00
Andrew Murray
dc2e10d27a Update CHANGES.rst [ci skip] 2023-10-01 06:19:06 +11:00
Andrew Murray
114aadd2ca Added versionadded 2023-10-01 06:13:40 +11:00
Andrew Murray
955b2d553c
Merge branch 'main' into cover 2023-09-30 19:04:22 +10:00
Hugo van Kemenade
8cb1e29491
Merge pull request #7420 from radarhere/transparency 2023-09-30 02:53:22 -06:00
Andrew Murray
29ae27567c
Merge pull request #7431 from radarhere/macos
Corrected macOS version name
2023-09-30 18:48:48 +10:00
Andrew Murray
620098571a
Corrected comment priority 2023-09-30 07:54:39 +00:00
Andrew Murray
9ed9b11532 Corrected macOS version name 2023-09-30 17:41:43 +10:00
Hugo van Kemenade
9241a985ca
Merge pull request #7430 from radarhere/macos
Updated macOS tested Pillow versions
2023-09-29 23:10:11 -06:00
Andrew Murray
2433ffadf2 Updated macOS tested Pillow versions 2023-09-30 12:54:05 +10:00
Andrew Murray
3caae280b9 Added release notes 2023-09-30 11:32:54 +10:00
Andrew Murray
d19a4154d5 Added shebang 2023-09-30 10:24:22 +10:00
pre-commit-ci[bot]
7a28f599a5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-30 00:21:13 +00:00
Andrew Murray
4142fc43ab Added release notes 2023-09-30 10:14:10 +10:00
Andrew Murray
1c5eab718f Include given size in table 2023-09-29 18:29:45 +10:00
Andrew Murray
a088d54509 Update CHANGES.rst [ci skip] 2023-09-29 07:05:07 +10:00
Hugo van Kemenade
99e11f9e08
Merge pull request #7406 from radarhere/webp 2023-09-28 14:25:34 -06:00
Andrew Murray
26fc975a65
Merge pull request #7421 from hugovk/update-pre-commit
Add checks to pre-commit
2023-09-28 19:10:38 +10:00
Andrew Murray
40d11fa9ac Added demonstration images to tutorial 2023-09-28 08:27:56 +10:00
Andrew Murray
ac86175491 Added thumbnail() demonstration image 2023-09-28 08:17:06 +10:00
Andrew Murray
ac9d8180a3 Link to demonstration from release notes 2023-09-28 08:06:02 +10:00
Andrew Murray
c20801c88f
Updated Windows workflow link
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-28 07:52:25 +10:00
Andrew Murray
cd4adb1677 Added reading 8-bit color images 2023-09-27 19:41:45 +10:00
Andrew Murray
2e4c1a1656 Added release notes 2023-09-26 21:19:04 +10:00
Andrew Murray
08c69ba7f5 Added demonstration images to docs 2023-09-26 21:16:30 +10:00
Andrew Murray
e27d7a6f84 Changed has_transparency_data() to property 2023-09-26 20:14:22 +10:00
Andrew Murray
1c30809245 Allow for LA or PA in the future 2023-09-26 20:10:52 +10:00
Andrew Murray
faa66eaa6c
Added type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-26 20:10:12 +10:00
Hugo van Kemenade
132357ac46 Add check-executables-have-shebangs to pre-commit and remove executable flags 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
1f188f5bb4 Add trailing-whitespace to pre-commit 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
f76b63d016 Add end-of-file-fixer to pre-commit 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
3891e9e228 Add flake8-logging to pre-commit 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
36d0bf044b Fix LOG005 use exception() within an exception handler 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
507b7d519a Fix LOG011 avoid pre-formatting log messages 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
9d104b241e Use black-pre-commit-mirror for faster mypyc-compiled wheels 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
0d1e83098d Add pyupgrade to pre-commit 2023-09-25 16:45:38 +03:00
Andrew Murray
ad12caecda Convert RGBA palette to RGBA image when saving WebP 2023-09-25 20:28:25 +10:00
Andrew Murray
6bbed1add0 Added has_transparency_data() 2023-09-25 20:10:44 +10:00
Andrew Murray
bd87653530 Updated wheel build process for new location 2023-09-24 22:51:42 +10:00
Andrew Murray
905cf06b6b Merge remote-tracking branch 'pillow-wheels/pillow' into pillow-wheels 2023-09-24 22:38:42 +10:00
Andrew Murray
8d0bfc4e03 Move and delete files for merging into main repository 2023-09-24 22:34:13 +10:00
Andrew Murray
b723e9e62e
Merge pull request #7407 from hugovk/ci-appveyor-depends
AppVeyor: don't download huge pillow-depends.zip
2023-09-24 14:36:04 +10:00
nopperl
b21ea55beb
Merge pull request #1 from radarhere/parse-eps-trailer
Last trailer comment has priority
2023-09-23 06:41:59 +00:00
Andrew Murray
d919942f8e Last trailer comment has priority 2023-09-22 18:36:52 +10:00
Andrew Murray
9de4b72c97 Trailer is not in header, ImageData or itself 2023-09-22 18:26:50 +10:00
Andrew Murray
094f23dd5c EOF ends not just the trailer, but also the file 2023-09-22 18:26:41 +10:00
Andrew Murray
8064adad7a Reduced duplicate code 2023-09-22 17:58:11 +10:00
Andrew Murray
4c9c7636be Merge branch 'main' into parse-eps-trailer 2023-09-22 16:16:26 +10:00
Andrew Murray
616ed35e74 Support reading 8-bit YCbCr TIFF images 2023-09-21 20:53:23 +10:00
Hugo van Kemenade
9c754ebab1 Re-remove --ssl-no-revoke 2023-09-21 12:20:17 +03:00
Andrew Murray
352bcaac74 Set blue channel to 128 for BC5S 2023-09-21 16:38:45 +10:00
Andrew Murray
e57b08affd Move strcmp outside of while loops 2023-09-21 16:38:19 +10:00
Andrew Murray
80dbd3b193 Added ImageOps cover method 2023-09-21 11:54:36 +10:00
Andrew Murray
4edfe13bec Merge branch 'main' into ci-appveyor-depends 2023-09-20 22:34:01 +10:00
Andrew Murray
9632195747 Merge branch 'main' into webp 2023-09-20 22:31:16 +10:00
Hugo van Kemenade
7a633e3500
Merge pull request #7403 from radarhere/numpy 2023-09-20 06:21:33 -06:00
Hugo van Kemenade
6e58b34f65
Merge pull request #104 from radarhere/ci-appveyor-depends 2023-09-20 05:47:06 -06:00
Hugo van Kemenade
1ba79d2bee Re-instate for/else to avoid a raise after an error and a subsequent success 2023-09-20 14:07:04 +03:00
Andrew Murray
f4d9c44e31 Restrict "params" to list or None 2023-09-20 19:24:43 +10:00
Andrew Murray
aedf81d3cb Update CHANGES.rst [ci skip] 2023-09-20 18:30:27 +10:00
Andrew Murray
8d81fd98a6
Merge pull request #7401 from radarhere/bc5s
Fixed bug when reading BC5S DDS images
2023-09-20 18:28:46 +10:00
Andrew Murray
bf046dff6e Limit NumPy version on Cygwin 2023-09-20 16:17:47 +10:00
Hugo van Kemenade
f3a245518f
Merge pull request #409 from radarhere/numpy
NumPy now supports Python 3.12
2023-09-18 09:33:51 -06:00
Hugo van Kemenade
15b1d6085c Use curl with --ssl-no-revoke
To fix:

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - The revocation function was unable to check revocation because the revocation server was offline.
2023-09-18 18:18:20 +03:00
Hugo van Kemenade
82c3999bc9 Don't download entire pillow-depends.zip (851 MB) 2023-09-18 18:18:20 +03:00
Hugo van Kemenade
cf79e2c3d3 Capitalise constants 2023-09-18 18:18:20 +03:00
Hugo van Kemenade
66bf71bafa Add type hints 2023-09-18 18:18:20 +03:00
Hugo van Kemenade
c50b11b3ca Attempt download from pillow-depends mirror first 2023-09-18 18:18:20 +03:00
Hugo van Kemenade
89340819cf
Merge pull request #7399 from radarhere/mime 2023-09-18 08:57:52 -06:00
Andrew Murray
a518f3c21f Fixed openblas detection on macOS for PyPy 3.10 2023-09-18 22:42:05 +10:00
Andrew Murray
43bae2b101 Fixed openblas detection on macOS 2023-09-18 22:31:50 +10:00
Andrew Murray
26c4798707 Revert "Merge pull request #7311 from k128/main"
This reverts commit 39d866b17d, reversing
changes made to f39f74fb82.
2023-09-18 20:34:05 +10:00
Andrew Murray
7a0023d840 Install libopenblas-dev and pkg-config to fix NumPy install on Linux PyPy 3.10 2023-09-18 15:36:01 +10:00
Andrew Murray
390e4a7360 Install libopenblas-dev to fix installing NumPy on Linux PyPy 3.10 2023-09-17 22:40:42 +10:00
Andrew Murray
d07e45d7d8 NumPy now supports Python 3.12 2023-09-17 21:46:04 +10:00
Andrew Murray
f2665f573f NumPy now supports Python 3.12 2023-09-17 21:21:08 +10:00
Hugo van Kemenade
c556c5f241
Merge pull request #7400 from radarhere/macos
Updated macOS tested Pillow versions
2023-09-15 23:01:11 -06:00
Andrew Murray
96e3534034 Corrected converting signed values to unsigned in BC5S 2023-09-16 13:53:10 +10:00
Andrew Murray
09e9b95035 Updated macOS tested Pillow versions 2023-09-16 10:46:05 +10:00
Andrew Murray
cabfed9137 Describe Image.MIME in register_mime() 2023-09-16 09:34:17 +10:00
Andrew Murray
cee8fd0788 Improved init() and preinit() documentation 2023-09-16 09:34:04 +10:00
Andrew Murray
fce23ddce8 Updated order 2023-09-15 23:42:43 +10:00
Andrew Murray
daaae1945e Update CHANGES.rst [ci skip] 2023-09-15 23:42:28 +10:00
Andrew Murray
75d77ae6b2 Added release notes for 10.0.1 2023-09-15 23:41:22 +10:00
Andrew Murray
deb384b86e Pillow -> 10.0.1 2023-09-15 22:53:16 +10:00
Andrew Murray
7a789c4846
Merge pull request #400 from radarhere/zlib
Updated zlib to 1.3
2023-09-15 22:15:55 +10:00
mergify[bot]
33440f5570
Merge pull request #408 from radarhere/webp
Updated libwebp to 1.3.2
2023-09-14 22:26:47 +00:00
mergify[bot]
7beefde637
Merge pull request #7395 from radarhere/webp
Updated libwebp to 1.3.2
2023-09-14 13:41:56 +00:00
Andrew Murray
2be800d2bf Updated libwebp to 1.3.2 2023-09-14 15:32:33 +10:00
Andrew Murray
dd30780ade Updated libwebp to 1.3.2 2023-09-14 15:31:22 +10:00
Andrew Murray
ffe2076fd6 Shortened property description 2023-09-13 08:03:23 +10:00
Hugo van Kemenade
062ad907bc
Merge pull request #7388 from radarhere/imagequant
Updated libimagequant to 4.2.1
2023-09-12 10:33:31 -06:00
Andrew Murray
3ee8009561 Document gs_binary property 2023-09-12 22:22:42 +10:00
Andrew Murray
a84a43528e Added gs_binary to control Ghostscript use on all platforms 2023-09-12 19:46:46 +10:00
Andrew Murray
f225130ee5 Only search for Ghostscript Windows binary when needed 2023-09-12 19:08:30 +10:00
nopperl
69b888e53d
remove test parameterization
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-09-11 20:35:13 +00:00
Andrew Murray
e1889544cd Update CHANGES.rst [ci skip] 2023-09-11 22:03:46 +10:00
Hugo van Kemenade
d06e939a5e
Merge pull request #7383 from radarhere/tiff_orientation 2023-09-11 04:53:47 -06:00
Andrew Murray
1217b13b9e Handle tag_v2 in TiffImagePlugin 2023-09-11 19:02:17 +10:00
Andrew Murray
5f7ad10548 Updated libimagequant to 4.2.1 2023-09-11 15:49:10 +10:00
Hugo van Kemenade
b8b78ed434
Merge pull request #7385 from radarhere/harfbuzz 2023-09-09 03:39:54 -06:00
mergify[bot]
66bcf1ff99
Merge pull request #407 from radarhere/harfbuzz
Updated harfbuzz to 8.2.0
2023-09-09 08:36:43 +00:00
Andrew Murray
c0b7842b33 Updated harfbuzz to 8.2.0 2023-09-09 15:29:50 +10:00
Andrew Murray
35ef6ab36f Updated harfbuzz to 8.2.0 2023-09-09 15:28:48 +10:00
Hugo van Kemenade
a3cbf81fb6
Merge pull request #405 from radarhere/brotli 2023-09-07 23:40:37 -06:00
Hugo van Kemenade
c47dd289c8
Merge pull request #406 from radarhere/tests 2023-09-07 23:39:28 -06:00
Andrew Murray
d0abab7997 When orientation is applied, delete TIFF tag 2023-09-08 15:05:53 +10:00
Andrew Murray
e195e60ce2 Ensure TIFF has transposed on load before checking orientation 2023-09-08 15:05:48 +10:00
Andrew Murray
ea953c0514 When TIFF applies orientation on load, delete tag from getexif() 2023-09-08 15:05:36 +10:00
Andrew Murray
fb5d249efb Install defusedxml, olefile and pyroma for tests 2023-09-08 10:11:09 +10:00
pre-commit-ci[bot]
794a1d7ff2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-07 18:36:32 +00:00
nopperl
12d8b439d5 Read bounding box information from the trailer of EPS files if specified 2023-09-07 20:20:35 +02:00
Andrew Murray
1a439c1832 Fixed brotli detection on aarch64 2023-09-08 00:00:37 +10:00
Hugo van Kemenade
a9ec7366cb
Merge pull request #404 from python-pillow/renovate/github-actions 2023-09-05 10:49:31 -06:00
Hugo van Kemenade
52c6d68613
Merge pull request #7373 from python-pillow/pre-commit-ci-update-config 2023-09-05 01:34:52 -06:00
Andrew Murray
515163d33f Update CHANGES.rst [ci skip] 2023-09-05 12:48:18 +10:00
Andrew Murray
1339ef4c9e
Merge pull request #7374 from python-pillow/renovate/github-actions
Update actions/checkout action to v4
2023-09-05 11:17:15 +10:00
renovate[bot]
5f649a739b
Update actions/checkout action to v4 2023-09-04 21:04:29 +00:00
Hugo van Kemenade
beb5048adb Fix sphinx-lint: Line ends with dangling hyphen (dangling-hyphen) 2023-09-04 23:56:41 +03:00
pre-commit-ci[bot]
47dd20678d
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/Lucas-C/pre-commit-hooks: v1.5.3 → v1.5.4](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.3...v1.5.4)
- [github.com/sphinx-contrib/sphinx-lint: v0.6.7 → v0.6.8](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.6.7...v0.6.8)
- [github.com/tox-dev/pyproject-fmt: 0.13.0 → 1.1.0](https://github.com/tox-dev/pyproject-fmt/compare/0.13.0...1.1.0)
- [github.com/abravalheri/validate-pyproject: v0.13 → v0.14](https://github.com/abravalheri/validate-pyproject/compare/v0.13...v0.14)
2023-09-04 19:49:33 +00:00
Hugo van Kemenade
faa2375f81
Merge pull request #7357 from radarhere/qoi 2023-09-04 09:55:29 -06:00
Hugo van Kemenade
10d45950ae
Merge pull request #7358 from radarhere/bc5u 2023-09-04 09:54:52 -06:00
renovate[bot]
de741ef289
Update actions/checkout action to v4 2023-09-04 14:41:55 +00:00
Andrew Murray
2f9ef61fea
Merge pull request #7359 from radarhere/frombuffer
Map buffer into (0, 0) image
2023-09-04 19:44:22 +10:00
Hugo van Kemenade
601324bf89
Merge pull request #7363 from radarhere/pyqt6
Revert "Do not test PyQt6 on Python 3.12"
2023-09-01 22:20:46 -06:00
Hugo van Kemenade
9f1123f8c9
Merge pull request #7362 from radarhere/macos
Only list latest tested version
2023-09-01 22:15:25 -06:00
Andrew Murray
20dbc0f074 Revert "Do not test PyQt6 on Python 3.12"
This reverts commit 7a5ddc1712.
2023-09-02 11:37:22 +10:00
Andrew Murray
c0eb1bdeeb Only list latest tested version 2023-09-02 10:56:44 +10:00
Andrew Murray
725e2d6d9b
Merge pull request #402 from radarhere/xcb
Updated libxcb and dependencies
2023-09-01 20:44:55 +10:00
Hugo van Kemenade
3e1da55a44
Merge pull request #7353 from radarhere/freetype 2023-09-01 02:59:28 -06:00
Hugo van Kemenade
79f73bb5f8
Merge pull request #401 from radarhere/freetype 2023-09-01 02:58:48 -06:00
Hugo van Kemenade
bb2a1b9a9f
Merge branch 'main' into xcb 2023-09-01 02:05:46 -06:00
Hugo van Kemenade
aa26ef5932
Merge pull request #403 from radarhere/brotli 2023-09-01 02:04:27 -06:00
Andrew Murray
6024e6b5c0 Updated libxcb to 1.16 2023-09-01 08:41:55 +10:00
Andrew Murray
38586f2c28 Updated xcb-proto to 1.16.0 2023-09-01 08:41:38 +10:00
Andrew Murray
0b1aa1aeba Updated brotli to 1.1.0 2023-08-31 21:05:36 +10:00
Andrew Murray
51a6d45566 Map buffer into (0, 0) image 2023-08-31 16:31:45 +10:00
Andrew Murray
2b9217bba8 Added BC5U reading 2023-08-31 12:13:35 +10:00
Andrew Murray
7bf7ff8217 Use previous pixel alpha for QOI_OP_RGB 2023-08-31 09:27:33 +10:00
Andrew Murray
cc9f38efc0 Updated xorgproto to 2023.2 2023-08-30 22:14:51 +10:00
Andrew Murray
5e1b843959 Updated libpthread-stubs to 0.5 2023-08-30 22:14:34 +10:00
Andrew Murray
24606216e1 Update CHANGES.rst [ci skip] 2023-08-30 20:59:26 +10:00
Hugo van Kemenade
a25127034b
Merge pull request #7355 from radarhere/getpixel 2023-08-30 04:42:24 -06:00
Andrew Murray
f9f367fe54
Always cast to a tuple
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-08-30 07:27:09 +10:00
Andrew Murray
69a81dd867 Convert list to tuple in Python instead of C 2023-08-28 22:43:20 +10:00
Andrew Murray
d8c3135b6b Allow getpixel to accept a list 2023-08-28 20:12:23 +10:00
Andrew Murray
091ab74429 Update CHANGES.rst [ci skip] 2023-08-28 18:22:04 +10:00
Andrew Murray
b1f5ee9043 Added font_size keyword arguments to ImageDraw text methods 2023-08-26 17:01:15 +10:00
Andrew Murray
eccef36948 Added size argument to load_default() 2023-08-26 17:01:01 +10:00
Andrew Murray
1e5aa21fa8 Added improved font to load_default() if FreeType is available 2023-08-26 17:00:34 +10:00
Andrew Murray
823178d4c2 Updated freetype to 2.13.2 2023-08-26 13:28:53 +10:00
Andrew Murray
014a00239f Updated freetype to 2.13.2 2023-08-26 13:26:05 +10:00
Andrew Murray
8fee27340d Update CHANGES.rst [ci skip] 2023-08-25 19:49:10 +10:00
Hugo van Kemenade
c68bf7df8f
Merge pull request #7336 from radarhere/blur 2023-08-25 03:20:16 -06:00
Hugo van Kemenade
643a52a2eb
Merge pull request #7351 from radarhere/freetype_tests 2023-08-24 14:20:26 -06:00
Andrew Murray
472eb66683 Skip tests that require FreeType if FreeType is not available 2023-08-24 19:02:27 +10:00
Hugo van Kemenade
d80610822f
Merge pull request #7345 from radarhere/jpeg 2023-08-23 20:33:59 +03:00
Andrew Murray
3ea8b54c00 Update CHANGES.rst [ci skip] 2023-08-22 12:08:50 +10:00
Andrew Murray
e021d06fff
Merge pull request #7332 from TheNooB2706/grabclipboard-linux
Added session type check in grabclipboard for Linux
2023-08-22 12:06:51 +10:00
Andrew Murray
9c3bc70f66
Use tuples
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-08-22 10:31:28 +10:00
Andrew Murray
dcfce9487e Merge branch 'main' into iptc 2023-08-22 10:14:48 +10:00
Andrew Murray
b37ca350a8 Allow FotoStation tags 2023-08-22 10:13:41 +10:00
Andrew Murray
8b14a67347 Merge branch 'main' into grabclipboard-linux 2023-08-21 23:58:17 +10:00
Hugo van Kemenade
52206c71e4
Merge pull request #7347 from radarhere/windows 2023-08-21 08:52:36 +03:00
Andrew Murray
115ef3a36d 32-bit Windows wheels are no longer provided 2023-08-21 15:17:30 +10:00
Andrew Murray
3d75ab501f Updated zlib to 1.3 2023-08-21 15:11:17 +10:00
Hugo van Kemenade
07e0b44a6a
Merge pull request #397 from radarhere/xz
Updated xz to 5.4.4
2023-08-21 07:33:41 +03:00
Hugo van Kemenade
0e0dd89894
Merge pull request #396 from radarhere/harfbuzz
Updated harfbuzz to 8.1.1
2023-08-21 07:33:28 +03:00
Hugo van Kemenade
2a10c2e2b7
Merge pull request #7278 from radarhere/harfbuzz
Updated harfbuzz to 8.1.1
2023-08-21 07:32:31 +03:00
Hugo van Kemenade
bb7b3d28dd
Merge pull request #7344 from radarhere/zlib
Updated zlib to 1.3
2023-08-21 07:31:38 +03:00
Andrew Murray
0a28840bc4 Expand buffer size when optimizing or progressive 2023-08-19 14:34:08 +10:00
Andrew Murray
a04ba81e22 bufsize is already increased to MAXBLOCK in ImageFile._save() 2023-08-19 12:37:00 +10:00
Andrew Murray
9ef7cb39de Updated zlib to 1.3 2023-08-18 22:22:51 +10:00
Andrew Murray
9242944526
Merge pull request #7343 from wx00/wx00-patch-1
Fixed a typo in 10.0.0 release notes
2023-08-18 14:17:19 +10:00
Tommy
8587121932
Fixed a typo in 10.0.0 release note 2023-08-18 11:20:18 +08:00
mergify[bot]
196e18d0c6
Merge pull request #399 from radarhere/travis
Use simpler build_multilinux command
2023-08-16 07:02:19 +00:00
Andrew Murray
ef344055a2 Use simpler build_multilinux command 2023-08-16 14:53:47 +10:00
Andrew Murray
08521ee741 Updated xz to 5.4.4 2023-08-16 08:46:01 +10:00
Andrew Murray
ca946c2d90 Updated harfbuzz to 8.1.1 2023-08-16 08:45:49 +10:00
mergify[bot]
e09fab7278
Merge pull request #398 from radarhere/travis
Fix Travis builds
2023-08-15 15:54:28 +00:00
Andrew Murray
41eae5f1bd Set "TEST_DEPENDS" to single word 2023-08-15 20:01:42 +10:00
Andrew Murray
efb4459f9f Set "BUILD_COMMANDS" to single word 2023-08-15 20:01:30 +10:00
TheNooB
e06edcb527
Reformat variable name following PEP8
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-08-12 18:33:36 +08:00
Andrew Murray
9f54a11a9c Improve efficiency when a radius is zero 2023-08-12 18:17:07 +10:00
TheNooB
0b6ab79145
Check session type using environment variable instead of loginctl 2023-08-12 12:51:09 +08:00
Andrew Murray
c167d7a269 Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii 2023-08-12 12:09:20 +10:00
TheNooB
7b157b045a
Use os.getlogin() instead of whoami command for getting username 2023-08-11 21:14:34 +08:00
TheNooB
a8b3feac86
Apply suggestions from code review
Simplify conditional expressions

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-08-11 21:01:05 +08:00
pre-commit-ci[bot]
164ea2df6f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-08-11 10:42:12 +00:00
Andrew Murray
08b538780d Update CHANGES.rst [ci skip] 2023-08-11 19:49:02 +10:00
TheNooB
bc658e1791
Add session type check in grabclipboard for Linux 2023-08-11 17:47:36 +08:00
Andrew Murray
39d866b17d
Merge pull request #7311 from k128/main
Read WebP duration after opening
2023-08-11 19:46:49 +10:00
Andrew Murray
f39f74fb82 Update CHANGES.rst [ci skip] 2023-08-11 07:42:24 +10:00
Andrew Murray
6651a31436
Merge pull request #7329 from radarhere/gif
Allow "loop=None" when saving GIF images
2023-08-10 18:08:00 +10:00
Andrew Murray
bfafa460e3 Allow "loop=None" when saving 2023-08-09 10:31:34 +10:00
Andrew Murray
c98a7994da Update CHANGES.rst [ci skip] 2023-08-08 21:33:55 +10:00
Andrew Murray
649ad8a804
Merge pull request #7323 from radarhere/pdf_p_transparency
Fixed transparency when saving P mode images to PDF
2023-08-08 21:30:23 +10:00
Hugo van Kemenade
796bb1801d
Merge pull request #7326 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-08-08 10:41:22 +02:00
Andrew Murray
241a012804
Merge pull request #7325 from Yay295/Yay295-patch-1
Fix param in test_image.py function
2023-08-08 12:12:46 +10:00
Andrew Murray
15930be644 Use "is" when comparing types 2023-08-08 08:44:03 +10:00
pre-commit-ci[bot]
24a19e5b37
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)
- [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.3](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.1...v1.5.3)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)
- [github.com/tox-dev/pyproject-fmt: 0.12.1 → 0.13.0](https://github.com/tox-dev/pyproject-fmt/compare/0.12.1...0.13.0)
2023-08-07 19:39:13 +00:00
Yay295
5b6b6346bb
Fix param in test_image.py function 2023-08-07 09:49:20 -05:00
Andrew Murray
73bd40babe Test for relevant characters before and after "SMask" 2023-08-07 20:49:29 +10:00
Andrew Murray
5c59807216 Removed unused decoders 2023-08-07 13:54:11 +10:00
Andrew Murray
a70ea82eb5 Write P transparency as SMask 2023-08-07 13:53:19 +10:00
Andrew Murray
c9147c9c85 Moved writing of object into separate function 2023-08-06 22:14:32 +10:00
Andrew Murray
a5b0256290 Update CHANGES.rst [ci skip] 2023-08-04 23:57:56 +10:00
Andrew Murray
6bd3ed439a Ignore IPTC field that is only zero bytes 2023-08-04 23:54:48 +10:00
Andrew Murray
fc99a5871e
Merge pull request #7317 from radarhere/pdf_alpha
Set SMaskInData to 1 for LA PDFs
2023-08-04 23:54:20 +10:00
Andrew Murray
c5b4ad94e8 Do not set ColorSpace for JPXDecode since it is optional 2023-08-04 18:47:28 +10:00
Andrew Murray
bc11b2d6a9 Set SMaskInData to 1 for PDFs with alpha 2023-08-04 18:46:58 +10:00
Hugo van Kemenade
95257dff87
Merge pull request #7299 from radarhere/pdf 2023-08-04 11:43:09 +03:00
Hugo van Kemenade
917769bd9f
Merge pull request #7316 from radarhere/pdf_alpha 2023-08-04 11:42:08 +03:00
Andrew Murray
54aecc6c4a
Merge pull request #7315 from radarhere/xz
Updated xz to 5.4.4
2023-08-03 22:27:47 +10:00
Andrew Murray
6ca38552c9 Do not set ColorSpace for JPXDecode since it is optional 2023-08-03 22:07:36 +10:00
Andrew Murray
ddfb7ef14b Do not set BitsPerComponent for JPXDecode since it is ignored 2023-08-03 22:05:11 +10:00
Andrew Murray
022e650d18 Set SMaskInData to 1 for PDFs with alpha 2023-08-03 19:11:35 +10:00
Andrew Murray
57f45be765 Updated xz to 5.4.4 2023-08-03 09:04:18 +10:00
Andrew Murray
c54f57c93f Updated harfbuzz to 8.1.1 2023-08-03 08:57:55 +10:00
k128
9c6b8c423e
Merge pull request #1 from radarhere/webp
_decoder.get_next() may return None
2023-08-01 09:54:11 -04:00
Andrew Murray
60433d5f37 Added test 2023-08-01 19:17:54 +10:00
Andrew Murray
6115d5957f _decoder.get_next() may return None 2023-08-01 19:16:28 +10:00
Andrew Murray
230a2e3a33 If "reset" is always true, then the argument can be removed 2023-08-01 19:15:15 +10:00
Andrew Murray
6d3630d406 Update CHANGES.rst [ci skip] 2023-08-01 08:31:16 +10:00
k128
15e5229030
Update WebPImagePlugin.py 2023-07-31 15:32:05 -04:00
pre-commit-ci[bot]
2f5493a5f0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-07-31 19:19:57 +00:00
k128
27a0339d64
Update WebPImagePlugin.py
Automatically load duration
2023-07-31 15:14:22 -04:00
Hugo van Kemenade
c1c474a1f2
Merge pull request #7307 from radarhere/mode 2023-07-31 17:14:10 +03:00
Andrew Murray
8eee457725 Added release notes 2023-07-31 21:06:16 +10:00
Andrew Murray
1aa0ade1b6 Update CHANGES.rst [ci skip] 2023-07-31 11:45:00 +10:00
Andrew Murray
07038d7e89
Merge pull request #7266 from mtreinish/handle-repr-exceptions
Handle exceptions in _repr_jpeg_ and _repr_png_
2023-07-31 11:42:44 +10:00
Andrew Murray
00cec60c35 Added CMYK to RGB unpacker 2023-07-29 21:05:33 +10:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
9bd574058e Support BGR;15, BGR;16 and BGR;24 in putdata 2023-07-26 20:09:40 +10:00
Andrew Murray
5fa05623ff Added BGR;15, BGR;16 and BGR;24 unpacking 2023-07-26 20:09:40 +10:00
Andrew Murray
3230270aa7 Added BGR;15, BGR;16 and BGR;24 access 2023-07-26 20:09:40 +10:00
Andrew Murray
07623d1a7c
Merge pull request #7305 from hugovk/docs-clarify-textlength-return
Docs: Clarify that a single value is returned, and depends on the text direction
2023-07-26 08:16:34 +10:00
Hugo van Kemenade
62cd236d1a Clarify that a single value is returned, and depends on the text direction 2023-07-25 12:31:58 +03:00
Matthew Treinish
2a55b140b1
Merge pull request #1 from radarhere/handle-repr-exceptions
Simplified code
2023-07-24 19:16:38 -04:00
Andrew Murray
2db354af43 Allow saving I;16B images as PNG 2023-07-24 17:17:15 +10:00
Hugo van Kemenade
3c5324b07c
Merge pull request #7300 from radarhere/test
Parametrized test
2023-07-23 09:12:40 +02:00
Andrew Murray
e5c94eced2 Simplified code 2023-07-23 16:26:42 +10:00
Hugo van Kemenade
06e66f7f5c
Merge pull request #7296 from radarhere/access 2023-07-22 22:02:15 +02:00
Andrew Murray
0a0a3fc51f Added saving LA images as PDFs 2023-07-22 20:16:45 +10:00
Andrew Murray
26ca569cbe Parametrized test 2023-07-22 20:15:40 +10:00
Andrew Murray
c108d9ddb0 Set alpha channel when saving LA in OpenJPEG 2023-07-22 20:05:31 +10:00
Andrew Murray
ea0abb94cc
Merge pull request #7298 from radarhere/ppm
Added more information about PPM formats
2023-07-22 20:04:17 +10:00
Andrew Murray
064cd6fb83 Added more information about PPM formats 2023-07-22 18:47:55 +10:00
Andrew Murray
577a4d8bf8 Change get_pixel to be specific to images with 2 bands 2023-07-21 21:08:20 +10:00
Andrew Murray
7ffad80294 Removed put_pixel 2023-07-21 20:59:28 +10:00
Andrew Murray
32eec53c43 Removed comment 2023-07-17 23:50:59 +10:00
Andrew Murray
fd310512b9 Set C palette to be empty by default 2023-07-17 23:04:43 +10:00
Andrew Murray
7bfc6f16dc Set undefined palette values to black 2023-07-17 09:26:24 +10:00
Andrew Murray
b945154097
Merge pull request #7286 from radarhere/numpy_cygwin
Include NumPy version in Cygwin pip cache key
2023-07-15 18:22:45 +10:00
Andrew Murray
f965b9a81f Update CHANGES.rst [ci skip] 2023-07-14 22:45:29 +10:00
Andrew Murray
1f3ec1b8c9 Include NumPy version in Cygwin pip cache key 2023-07-14 18:25:26 +10:00
Hugo van Kemenade
7a2510cf6b
Merge pull request #7284 from radarhere/gif 2023-07-13 16:05:05 +03:00
Hugo van Kemenade
5b3c20430b
Merge pull request #7285 from radarhere/python312 2023-07-13 16:02:43 +03:00
Andrew Murray
7d7bc2671d
Merge pull request #7280 from hugovk/add-3.12
Declare support for Python 3.12
2023-07-13 20:20:02 +10:00
Andrew Murray
414694e190 Increment Python version check to support Python 3.12 2023-07-13 17:21:06 +10:00
Hugo van Kemenade
7b2c803c56
Fix 3.1 to 3.10
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-07-13 08:32:44 +03:00
Andrew Murray
a682ceaf47 Do not use transparency if it has been removed when normalizing mode 2023-07-13 15:20:44 +10:00
Hugo van Kemenade
ab990fab77 Add support for Python 3.12 2023-07-12 16:31:45 +03:00
Andrew Murray
3f78ba80f9 Do not require curly bracket in tag name 2023-07-10 22:05:28 +10:00
Andrew Murray
2488167f33 Allow for zero-byte padding at end of XMP data 2023-07-10 22:00:30 +10:00
mergify[bot]
cfd5c8a3d2
Merge pull request #395 from radarhere/harfbuzz
Updated harfbuzz to 8.0.0
2023-07-09 14:55:33 +00:00
mergify[bot]
7a1e28404d
Merge pull request #7272 from radarhere/harfbuzz
Updated harfbuzz to 8.0.0
2023-07-09 13:11:21 +00:00
Andrew Murray
16f5c6d5d7 Updated harfbuzz to 8.0.0 2023-07-09 21:51:42 +10:00
Andrew Murray
9cf3d73b1d Updated harfbuzz to 8.0.0 2023-07-09 21:46:29 +10:00
Andrew Murray
1953e43538
Update CHANGES.rst [ci skip] 2023-07-09 15:00:41 +10:00
Andrew Murray
e96f217c60
Merge pull request #7270 from heitbaum/libtiff
Fix missing symbols as libtiff can depend on libjpeg
2023-07-09 14:57:58 +10:00
Rudi Heitbaum
d17947e802 Fix missing symbols as libtiff can depend on libjpeg
when compiling Pillow with libtiff and libjpeg (with jpeg12 enabled -
which is the default with libjpeg-3.0.0) the libtiff object
tif_jpeg_12.c.o uses the following libjpeg12 functions:
jpeg12_read_raw_data, jpeg12_read_scanlines, jpeg12_write_raw_data,
jpeg12_write_scanlines.

update the ordering of libs.append(feature.tiff) to be before
libs.append(feature.jpeg) to allow the linker to include the required
functions.

this issue occurs when the libtiff and libjpeg libraries are static
(not shared.)

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2023-07-08 12:46:34 +00:00
mergify[bot]
535b4378e1
Merge pull request #394 from radarhere/py2app_libwebp
Fix py2app "New Mach-O header is too large" error
2023-07-08 08:11:21 +00:00
Andrew Murray
ac0a8513d0 Fix py2app "New Mach-O header is too large" error 2023-07-08 16:25:44 +10:00
Andrew Murray
ba9c830b03 Corrected writing I;16 text 2023-07-08 11:30:48 +10:00
Matthew Treinish
6215cd3e0f
Update tests to handle no longer raising 2023-07-06 09:28:35 -04:00
Matthew Treinish
9517feccd9
Update src/PIL/Image.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-07-06 09:00:00 -04:00
Matthew Treinish
6d440ac995
Handle exceptions in _repr_jpeg_ and _repr_png_
In 10.0.0 a _repr_jpeg_ implementation was added to the Image object to
enable the use of display_jpeg() in IPython environments. However, in
some cases the implementation of this method could result in an
exception being raised while trying to generate the jpeg data. The best
example is if the image data is in an RGBA format as a result of the
object being created by opening a PNG file. In this case trying to save
the Image object as a jpeg will error because the jpeg format can't
represent the transparency in the alpha channel. This results in an
exception being raised in the IPython/Jupyter context when outputing the
image object. However, in cases like this IPython allows the repr
methods to return None to indicate there is no representation in that
format available. [1] This commit updates the _repr_png_ and _repr_jpeg_
methods to catch any exception that might be raised while trying to
generate the image data. If an exception is raised we treat that as not
being able to generate image data in that format and return None
instead.

Related to #7259

[1] https://ipython.readthedocs.io/en/stable/config/integrating.html#custom-methods
2023-07-06 08:42:37 -04:00
Hugo van Kemenade
f089c2db8c
Merge pull request #7264 from radarhere/macos 2023-07-06 09:25:29 +03:00
Andrew Murray
e6beb81523 Updated macOS tested Pillow versions 2023-07-06 13:22:50 +10:00
Hugo van Kemenade
3ffa8dca44
Merge pull request #7262 from daimrod/doc-wal-add-link-to-putpalette 2023-07-05 14:43:51 +03:00
Grégoire Jadi
9a32c0f821
doc WAL: Add link to PIL.Image.Image.putpalette
[ci skip]
2023-07-05 11:26:46 +02:00
Andrew Murray
5e2332a200 Corrected drawing I;16 points 2023-07-05 08:49:56 +10:00
mergify[bot]
3ee9259150
Merge pull request #7258 from radarhere/libjpeg
Updated libjpeg shared library name
2023-07-04 14:17:51 +00:00
Andrew Murray
5a9c2321b4 Updated libjpeg shared library name 2023-07-04 22:39:41 +10:00
Hugo van Kemenade
be828f4d62
Merge pull request #7254 from radarhere/libjpeg_turbo
Updated libjpeg-turbo to 3.0.0
2023-07-04 07:44:58 +03:00
Hugo van Kemenade
55de09ae95
Merge pull request #393 from radarhere/libjpeg_turbo
Updated libjpeg-turbo to 3.0.0
2023-07-04 07:44:37 +03:00
mergify[bot]
84af332bf1
Merge pull request #7253 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-07-03 22:37:52 +00:00
Andrew Murray
082c43656d Updated libjpeg-turbo to 3.0.0 2023-07-04 08:29:17 +10:00
Andrew Murray
99a03d403f Updated libjpeg-turbo to 3.0.0 2023-07-04 08:26:50 +10:00
pre-commit-ci[bot]
9e31a677b9
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/yesqa: v1.4.0 → v1.5.0](https://github.com/asottile/yesqa/compare/v1.4.0...v1.5.0)
- [github.com/tox-dev/tox-ini-fmt: 1.3.0 → 1.3.1](https://github.com/tox-dev/tox-ini-fmt/compare/1.3.0...1.3.1)
2023-07-03 19:29:28 +00:00
Andrew Murray
a97422d2fe
Merge pull request #7249 from Yay295/update_c_type_obj
Update PyTypeObject slot names
2023-07-03 19:43:50 +10:00
Hugo van Kemenade
6b0b905a88
Merge pull request #7248 from mgorny/wheel 2023-07-02 19:27:23 +03:00
Yay295
e7398c7888 update PyTypeObject slot names
tp_print was renamed to tp_vectorcall_offset with Python 3.8, and tp_compare was renamed to tp_as_async with Python 3.5.
tp_size has always been tp_basicsize; I don't know why that one was wrong.
2023-07-02 00:52:08 -05:00
Michał Górny
d56fb2435d Remove redundant wheel dep from pyproject.toml
Remove the redundant `wheel` dependency, as it is added by the backend
automatically.  Listing it explicitly in the documentation was
a historical mistake and has been fixed since, see:
f7d30a9529

While Pillow uses a custom backend that modifies the `bdist_wheel`
method, it does not import `wheel` or use it in a way that would rely
on setuptools implementation details.
2023-07-02 04:13:02 +02:00
Andrew Murray
1ffe3354d7 10.1.0.dev0 version bump 2023-07-02 00:59:40 +10:00
Andrew Murray
b2eed6e689 Pillow -> 10.0.0 2023-07-01 23:05:00 +10:00
Andrew Murray
74859e965d Moved MAX_IMAGE_PIXELS check to Python 2023-07-01 20:52:44 +10:00
Hugo van Kemenade
36fb14cee7
Merge pull request #391 from radarhere/libtiff 2023-06-29 13:56:07 +03:00
Hugo van Kemenade
c4f3984987
Merge pull request #392 from radarhere/libwebp 2023-06-29 13:54:52 +03:00
Andrew Murray
d49f36b9a9 Updated libwebp to 1.3.1 2023-06-29 15:11:55 +10:00
Andrew Murray
92fb054ba7 Updated libtiff to 4.5.1 2023-06-27 08:19:57 +10:00
Hugo van Kemenade
83b9a466b1
Merge pull request #390 from radarhere/freetype 2023-06-25 14:17:02 +03:00
Andrew Murray
629e4585f2 Updated freetype to 2.13.1 2023-06-25 13:18:37 +10:00
Andrew Murray
d5cd1c4dea
Merge pull request #389 from radarhere/build
Use --config-settings
2023-06-25 13:15:27 +10:00
Andrew Murray
02ae9d12d5 Use --config-settings 2023-06-24 19:48:30 +10:00
Hugo van Kemenade
b1f01c006b
Merge pull request #388 from radarhere/32bit
Removed 32-bit wheels
2023-06-24 09:51:10 +03:00
Andrew Murray
5220c30ef9 Removed 32-bit wheels 2023-06-23 23:12:29 +10:00
mergify[bot]
6f8bdd6418
Merge pull request #387 from radarhere/libpng
Updated libpng to 1.6.40
2023-06-22 08:15:33 +00:00
Andrew Murray
013599434d Updated libpng to 1.6.40 2023-06-22 14:07:22 +10:00
Hugo van Kemenade
d0cf972d7a
Merge pull request #380 from radarhere/xz 2023-06-21 11:07:19 +03:00
Hugo van Kemenade
c92b62bdff
Merge pull request #386 from radarhere/python 2023-06-21 10:47:30 +03:00
Andrew Murray
9155b33611 Updated Python 3.12 on macOS to beta 3 2023-06-21 13:52:02 +10:00
Hugo van Kemenade
1fbd4434fe
Merge pull request #385 from radarhere/pypy310
Added PyPy 3.10 and removed PyPy 3.8
2023-06-17 09:58:00 +03:00
Andrew Murray
f3a9a93386 Added PyPy 3.10 and removed PyPy 3.8 2023-06-17 00:28:08 +10:00
pre-commit-ci[bot]
777c54a4d1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 00:09:03 +00:00
REDxEYE
9165771d5e Add BC5U support. Seen in Amnesia: The Bunker 2023-06-15 03:08:04 +03:00
Andrew Murray
bd4826591b Removed INVALID enum 2023-06-15 02:49:09 +03:00
Andrew Murray
cadac4aad2 Corrected error messages 2023-06-15 02:47:30 +03:00
Andrew Murray
78756cd17b Simplified imports 2023-06-15 02:46:32 +03:00
Andrew Murray
9a7bd0d10b Fixed big-endian bug 2023-06-15 02:45:46 +03:00
Andrew Murray
b87d4e075e Restored formatting 2023-06-15 02:45:46 +03:00
Andrew Murray
eda4192618 Fixed typo 2023-06-15 02:45:46 +03:00
Andrew Murray
b6b7a7bfa4 Simplified test code 2023-06-15 02:45:46 +03:00
REDxEYE
15c90ac9bb Simplified save code
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-06-15 02:45:46 +03:00
REDxEYE
9369a48457 Revert, i didn't meant to commit it 2023-06-15 02:45:46 +03:00
pre-commit-ci[bot]
1c9a84d760 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 02:45:46 +03:00
REDxEYE
91664c9d8e Small refactor 2023-06-15 02:45:43 +03:00
REDxEYE
7c25e0bbda Small refactor 2023-06-15 02:43:42 +03:00
REDxEYE
d1b1f30cef Fix file extensions in tests not matching real names 2023-06-15 02:42:43 +03:00
REDxEYE
34760736a5 Add missing LA test textures 2023-06-15 02:42:43 +03:00
pre-commit-ci[bot]
a63fdc2235 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 02:42:43 +03:00
REDxEYE
de8b89c823 Add support for writing LA dds textures 2023-06-15 02:42:41 +03:00
REDxEYE
8e8a67ef3e Fix incorect file name 2023-06-15 02:37:38 +03:00
REDxEYE
429dc2850e Remove unnecessary tuple creation 2023-06-15 02:37:38 +03:00
pre-commit-ci[bot]
3602e35818 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 02:37:36 +03:00
REDxEYE
19887374ae Add support for single channel textures 2023-06-15 02:33:55 +03:00
REDxEYE
3f77a9e235 Remove unused constants 2023-06-15 02:30:34 +03:00
REDxEYE
de2b4be9b9 Add Tile namedtuple for code readability.
Add typing info to Image.tile
2023-06-15 02:30:31 +03:00
REDxEYE
f2d91fcdaa Add IntEnum/IntFlag for most of DDS members 2023-06-15 02:27:18 +03:00
Hugo van Kemenade
8829c6852f
Merge pull request #384 from radarhere/licenses
Updated licenses
2023-06-08 08:17:00 +03:00
Andrew Murray
8467fbae25 Updated licenses [ci skip] 2023-06-08 08:36:40 +10:00
Hugo van Kemenade
73b28de7d7
Merge pull request #383 from radarhere/python312 2023-05-31 13:04:30 +03:00
Andrew Murray
8f22604ea0 Added Python 3.12 2023-05-31 17:41:41 +10:00
Hugo van Kemenade
899d7c5005
Merge pull request #382 from radarhere/ubuntu-latest 2023-05-12 13:43:35 +03:00
Andrew Murray
8c6187e75d Run on latest Ubuntu 2023-05-12 16:15:31 +10:00
Hugo van Kemenade
f83bb5452a
Merge pull request #381 from radarhere/harfbuzz 2023-05-10 10:14:09 +03:00
Andrew Murray
a247d9d892 Updated harfbuzz to 7.3.0 2023-05-10 12:34:25 +10:00
Andrew Murray
6e3c730b15 Updated xz to 5.4.3 2023-05-05 07:19:58 +10:00
Hugo van Kemenade
63d24af3bd
Merge pull request #379 from radarhere/harfbuzz
Updated harfbuzz to 7.2.0
2023-04-27 10:01:46 +03:00
Andrew Murray
3c54ba7e9d Updated harfbuzz to 7.2.0 2023-04-27 13:33:26 +10:00
Andrew Murray
3eaa1f3a34
Merge pull request #378 from hugovk/rm-3.7
Drop support for soon-EOL Python 3.7
2023-04-02 06:54:15 +10:00
Hugo van Kemenade
a738d5d053 Drop support for soon-EOL Python 3.7 2023-04-01 16:06:02 +03:00
Hugo van Kemenade
dbe75582a7 Pillow -> 9.5.0 2023-04-01 11:02:46 +03:00
mergify[bot]
b99866c328
Merge pull request #377 from radarhere/xz
Updated xz to 5.4.2
2023-03-18 23:42:54 +00:00
Andrew Murray
2d8ff40446 Updated xz to 5.4.2 2023-03-19 06:46:57 +11:00
mergify[bot]
a53194eeaa
Merge pull request #376 from radarhere/harfbuzz
Updated harfbuzz to 7.1.0
2023-03-03 07:35:10 +00:00
Andrew Murray
9330a2a981 Updated harfbuzz to 7.1.0 2023-03-03 14:40:13 +11:00
Hugo van Kemenade
3235bb33a1
Merge pull request #375 from radarhere/lcms2
Updated lcms2 to 2.15
2023-03-01 07:04:10 +02:00
Andrew Murray
29575e3373 Updated lcms2 to 2.15 2023-03-01 11:03:23 +11:00
mergify[bot]
bc3e5c922e
Merge pull request #374 from radarhere/harfbuzz
Updated harfbuzz to 7.0.1
2023-02-21 11:57:22 +00:00
Andrew Murray
602b1ed032 Updated harfbuzz to 7.0.1 2023-02-21 20:34:28 +11:00
Hugo van Kemenade
1af86c25e9
Merge pull request #373 from radarhere/macos
brew install pkg-config
2023-02-21 09:54:44 +02:00
Andrew Murray
84fca8a673 brew install pkg-config 2023-02-21 13:29:13 +11:00
mergify[bot]
848d081685
Merge pull request #372 from radarhere/harfbuzz
Updated harfbuzz to 7.0.0
2023-02-12 23:02:45 +00:00
Andrew Murray
38925358d4 Updated harfbuzz to 7.0.0 2023-02-12 22:06:33 +11:00
mergify[bot]
f708a2451f
Merge pull request #370 from radarhere/test-images
Use test-images repository
2023-02-11 09:56:28 +00:00
Andrew Murray
f3368eac3a Use test-images repository 2023-02-11 18:22:28 +11:00
mergify[bot]
4fed5a6a8d
Merge pull request #369 from radarhere/freetype
Updated freetype to 2.13
2023-02-09 22:46:04 +00:00
Andrew Murray
0f6913d734 Updated freetype to 2.13 2023-02-09 20:32:19 +11:00
Hugo van Kemenade
a9f3d74f66
Merge pull request #368 from radarhere/turbo
Updated libjpeg-turbo to 2.1.5.1
2023-02-09 07:19:18 +02:00
Andrew Murray
6747f869fa Updated libjpeg-turbo to 2.1.5.1 2023-02-09 08:37:28 +11:00
Hugo van Kemenade
34cd467d4a
Merge pull request #366 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.5
2023-02-01 07:05:33 +02:00
Andrew Murray
1ab85c942e Updated libjpeg-turbo to 2.1.5 2023-02-01 08:35:03 +11:00
Hugo van Kemenade
187fef60fb
Merge pull request #364 from radarhere/xmlto 2023-01-26 12:55:09 +02:00
Andrew Murray
21a17d068d Instead of removing libpng directly, use brew 2023-01-26 16:37:40 +11:00
Andrew Murray
01e0676506 Do not attempt to remove xmlto 2023-01-26 13:00:22 +11:00
Hugo van Kemenade
2dac23efcd
Merge pull request #362 from radarhere/libxdmcp 2023-01-16 15:18:21 +02:00
Andrew Murray
76bd0ab79e Revert "Downgraded libXau to 1.0.10 when targeting macOS 10.10"
This reverts commit 6368e4be5a.
2023-01-14 17:45:34 +11:00
Andrew Murray
0b1c4dc614 Removed libxdmcp 2023-01-14 17:45:34 +11:00
mergify[bot]
d51893c238
Merge pull request #361 from radarhere/libwebp
Updated libwebp to 1.3.0
2023-01-14 00:34:13 +00:00
Andrew Murray
9749611ab2 Updated libwebp to 1.3.0 2023-01-13 23:27:10 +11:00
Hugo van Kemenade
64a77ca3c9
Merge pull request #360 from radarhere/xz 2023-01-12 09:27:52 +02:00
Andrew Murray
e06cee580f Updated xz to 5.4.1 2023-01-12 08:33:25 +11:00
Hugo van Kemenade
a53f934846
Merge pull request #358 from radarhere/libxau_x86_64
Downgraded libXau to 1.0.10 when targeting macOS 10.10
2023-01-05 08:52:31 +02:00
Andrew Murray
6368e4be5a Downgraded libXau to 1.0.10 when targeting macOS 10.10 2023-01-04 18:18:06 +11:00
Hugo van Kemenade
8995e5d318
Merge pull request #356 from radarhere/readme 2023-01-03 12:39:57 +02:00
Andrew Murray
bf7e8a38dd Link to Windows wheels [ci skip] 2023-01-03 21:32:12 +11:00
Andrew Murray
1e2eb50cf7
Merge pull request #355 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-01-03 13:02:50 +11:00
Hugo van Kemenade
150dbb5089 Update unfrozen 2023-01-02 23:37:25 +02:00
pre-commit-ci[bot]
b505e4e569
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: 3298ddab3c13dd77d6ce1fc0baf97691430d84b0 → f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9](3298ddab3c...f71fa2c1f9)
2023-01-02 18:34:21 +00:00
Andrew Murray
7f069e01c3 Pillow -> 9.4.0 2023-01-02 11:21:01 +11:00
Hugo van Kemenade
2e8e7c490d
Merge pull request #354 from radarhere/pypy 2022-12-30 14:38:55 +02:00
Andrew Murray
15069e9b38 Revert "tkinter is disabled for macOS PyPy"
This reverts commit 0b624c6b4b.
2022-12-30 12:11:07 +11:00
Andrew Murray
d7333b3d42 Updated PyPy to 7.3.11 2022-12-30 11:23:47 +11:00
Hugo van Kemenade
a4983e6ce4
Merge pull request #353 from radarhere/libtiff
Updated libtiff to 4.5.0
2022-12-24 09:33:34 +02:00
Andrew Murray
146941c7ca Updated libtiff to 4.5.0 2022-12-24 12:57:59 +11:00
Hugo van Kemenade
77b463f7b3
Merge pull request #352 from radarhere/harfbuzz 2022-12-19 12:00:12 +02:00
Andrew Murray
626139f8ed Updated harfbuzz to 6.0.0 2022-12-19 07:03:11 +11:00
Hugo van Kemenade
5deb11db57
Merge pull request #351 from radarhere/xz
Updated xz to 5.4.0
2022-12-14 07:58:41 +02:00
Andrew Murray
0766fa245e Updated xz to 5.4.0 2022-12-14 09:49:28 +11:00
Andrew Murray
b4eb01220e
Merge pull request #349 from hugovk/add-pypy-3.9
Add support for PyPy3.9, drop PyPy3.7
2022-12-13 18:59:04 +11:00
Hugo van Kemenade
cde82a1367
Merge pull request #7 from radarhere/add-pypy-3.9
tkinter is disabled for macOS PyPy
2022-12-13 07:11:25 +02:00
Andrew Murray
0b624c6b4b tkinter is disabled for macOS PyPy 2022-12-13 09:25:02 +11:00
Hugo van Kemenade
c449ed5df6
Bump to pypy3.9-7.3.10
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-12-12 12:44:42 +02:00
Andrew Murray
b0d3dcf288 Merge branch 'main' into add-pypy-3.9 2022-12-12 17:19:48 +11:00
Hugo van Kemenade
81498094a5
Merge pull request #347 from radarhere/musllinux_aarch64
Added musllinux aarch64
2022-12-12 06:47:29 +02:00
Andrew Murray
f8937bd492 Added musllinux aarch64 2022-12-12 11:52:31 +11:00
Hugo van Kemenade
5bb8032462
Merge pull request #350 from radarhere/libxau 2022-12-09 07:56:28 +02:00
Andrew Murray
35d6cb293d Updated libXau to 1.0.11 2022-12-09 08:31:06 +11:00
Hugo van Kemenade
a5a9f25bb2
Merge pull request #6 from radarhere/add-pypy-3.9
PyPy3.7 is no longer supported
2022-12-07 00:35:08 +02:00
Andrew Murray
053c275628 PyPy3.7 is no longer supported 2022-12-07 09:17:45 +11:00
Hugo van Kemenade
342ed6e21f Add support for PyPy3.9, drop PyPy3.7 2022-12-06 21:00:22 +02:00
mergify[bot]
25ad4e51bf
Merge pull request #348 from radarhere/xz
Updated xz to 5.2.9
2022-11-30 23:29:20 +00:00
Andrew Murray
0aec23f9c5 Updated xz to 5.2.9 2022-12-01 07:55:35 +11:00
Hugo van Kemenade
226105d334
Merge pull request #345 from radarhere/python311 2022-11-23 00:00:11 +02:00
Andrew Murray
fbedc9eb0a Updated to Python 3.11 2022-11-23 08:44:25 +11:00
Hugo van Kemenade
99923e3388
Merge pull request #344 from radarhere/libpng 2022-11-21 12:38:08 +02:00
Andrew Murray
318587f95b Updated libpng to 1.6.39 2022-11-21 15:41:52 +11:00
Hugo van Kemenade
865e4b5b54
Merge pull request #343 from radarhere/python311 2022-11-18 13:39:57 +02:00
Andrew Murray
0902854855 Use latest stable Python version 2022-11-18 19:29:54 +11:00
mergify[bot]
7419863b68
Merge pull request #342 from radarhere/xz
Updated xz to 5.2.8
2022-11-14 00:27:08 +00:00
Andrew Murray
7e4c5af9a5 Updated xz to 5.2.8 2022-11-14 08:17:48 +11:00
Hugo van Kemenade
e0c14b9b95
Merge pull request #341 from radarhere/numpy
Do not install OpenBLAS on macOS for NumPy
2022-11-10 08:11:03 +02:00
Andrew Murray
5a727bae1c Do not install OpenBLAS on macOS for NumPy 2022-11-10 10:43:01 +11:00
Hugo van Kemenade
1358349df1
Merge pull request #340 from radarhere/python 2022-11-09 11:26:20 +02:00
Andrew Murray
a99bd64bd0 Specify Python version 2022-11-09 20:09:56 +11:00
Hugo van Kemenade
80dedcead8
Merge pull request #339 from radarhere/lcms2
Updated lcms2 to 2.14
2022-11-02 09:29:27 +02:00
Andrew Murray
c115ba2349 Updated lcms2 to 2.14 2022-11-02 00:09:33 +11:00
Hugo van Kemenade
564361a714 Pillow -> 9.3.0 2022-10-29 15:32:43 +03:00
Andrew Murray
ac76a0546a
Merge pull request #338 from hugovk/cancel-builds-in-progress
Add concurrency so old workflows are cancelled in favour of new ones
2022-10-28 07:57:15 +11:00
Andrew Murray
ede54eb131
Merge pull request #337 from radarhere/test_images
Updated multibuild to include Python 3.11.0
2022-10-27 23:31:40 +11:00
Hugo van Kemenade
659c178f78 Add concurrency so old workflows are cancelled in favour of new ones 2022-10-27 14:47:59 +03:00
Andrew Murray
678f162a9d Updated multibuild to include Python 3.11.0 2022-10-27 20:33:44 +11:00
Hugo van Kemenade
2ee3cd2007
Merge pull request #336 from radarhere/python311
Python 3.11 has been released
2022-10-25 07:07:27 +03:00
Andrew Murray
badd6a76d6 Python 3.11 has been released 2022-10-25 09:01:27 +11:00
Hugo van Kemenade
61d40c91cc
Merge pull request #335 from radarhere/auditwheel
Updated auditwheel to 5.2.0
2022-10-23 06:39:33 +02:00
Andrew Murray
0ee3af8422 Revert "Updated auditwheel to include auditwheel#376"
This reverts commit 0fb76f92d0.
2022-10-22 20:06:17 +11:00
Hugo van Kemenade
c9fbde35b5
Merge pull request #334 from radarhere/harfbuzz
Updated harfbuzz to 5.3.1
2022-10-20 08:41:12 +02:00
Andrew Murray
6f5256c0f7 Updated harfbuzz to 5.3.1 2022-10-20 13:11:49 +11:00
mergify[bot]
eaf0db475e
Merge pull request #333 from radarhere/zlib
Updated zlib to 1.2.13
2022-10-14 00:52:33 +00:00
Andrew Murray
fdc6ddc81c Updated zlib to 1.2.13 2022-10-13 20:29:09 +11:00
Hugo van Kemenade
4d07f21e24
Merge pull request #332 from radarhere/harfbuzz
Updated harfbuzz to 5.3.0
2022-10-09 06:36:08 +02:00
Andrew Murray
d46a2af347 Updated harfbuzz to 5.3.0 2022-10-09 08:12:21 +11:00
Hugo van Kemenade
889ec17d90
Merge pull request #331 from radarhere/xz
Updated xz to 5.2.7
2022-10-01 11:33:58 +03:00
Andrew Murray
d0cefec6e1 Updated xz to 5.2.7 2022-10-01 08:38:24 +10:00
Andrew Murray
a3c492a1b7
Merge pull request #330 from radarhere/libpng
Updated libpng to 1.6.38
2022-09-20 17:56:50 +10:00
Andrew Murray
8815684ba1
Merge pull request #329 from python-pillow/renovate/github-actions
Update github-actions
2022-09-20 14:25:36 +10:00
Andrew Murray
c108f7969a Updated libpng to 1.6.38 2022-09-20 14:07:33 +10:00
renovate[bot]
6dedc686e0
Update github-actions 2022-09-19 22:13:22 +00:00
mergify[bot]
8a140d6a2b
Merge pull request #321 from python-pillow/renovate/configure
Configure Renovate
2022-09-19 18:23:28 +00:00
Hugo van Kemenade
ad3e483a96
Fix schedule parsing 2022-09-19 17:26:02 +03:00
Hugo van Kemenade
3cec8842e6
Merge pull request #327 from radarhere/xcb
Updated libxcb and xcb-proto
2022-09-18 07:51:06 +03:00
Andrew Murray
3ca0352795 Updated xcb-proto to 1.15.2 2022-09-17 23:37:23 +10:00
Andrew Murray
249b6a8b47 Updated libxcb to 1.15 2022-09-17 21:40:37 +10:00
mergify[bot]
399d371a38
Merge pull request #326 from radarhere/xcb
Updated libXau and xorgproto
2022-09-17 11:33:35 +00:00
mergify[bot]
91ff8a4090
Merge pull request #325 from radarhere/harfbuzz
Updated harfbuzz to 5.2.0
2022-09-17 09:56:08 +00:00
Andrew Murray
85290d86ef Updated harfbuzz to 5.2.0 2022-09-17 16:02:13 +10:00
Andrew Murray
129cb11f52 Updated xorgproto to 2022.2 2022-09-16 22:07:52 +10:00
Andrew Murray
413b348e65 Updated libXau to 1.0.10 2022-09-16 22:07:48 +10:00
Hugo van Kemenade
9bda174be3
Merge pull request #324 from radarhere/rc2 2022-09-12 16:57:03 +03:00
Andrew Murray
a9ef399b11 Updated Python 3.11 to rc2 2022-09-12 14:31:29 +10:00
Andrew Murray
3be714f814
Merge pull request #323 from radarhere/fix-license
Updated bzip2 license to 1.0.8
2022-09-12 14:30:00 +10:00
Andrew Murray
7802283e52
Merge pull request #319 from nulano/fix-license
Update dependency licenses
2022-09-12 11:08:17 +10:00
Hugo van Kemenade
b381dc3c0c
Avoid busy days to keep the CI free
Release days can be 1st, 2nd or 15th:
https://github.com/python-pillow/Pillow/blob/main/RELEASING.md

Also Renovate can run on the main repo on the 3rd.
2022-09-09 16:26:08 +03:00
Hugo van Kemenade
4c70308031 Group GHA updates into a single PR, run once a month 2022-09-09 15:13:15 +03:00
Hugo van Kemenade
fa1f33a81b Move config to .github to keep root tidy 2022-09-09 15:09:54 +03:00
Hugo van Kemenade
a4a08a1d43
Merge pull request #322 from radarhere/brotli 2022-09-09 15:07:14 +03:00
Andrew Murray
9dad3bba65 Updated bzip2 license to 1.0.8 2022-09-09 18:47:56 +10:00
Andrew Murray
e9fdd0439b Fixed brotli detection on 64-bit manylinux 2022-09-09 12:16:23 +10:00
mergify[bot]
3abe51742c
Merge pull request #320 from radarhere/brotli
Added brotli
2022-09-09 00:47:46 +00:00
Andrew Murray
2bd80a05b8 Added brotli 2022-09-09 08:05:44 +10:00
renovate[bot]
2ba18acecb
Add renovate.json 2022-09-07 14:23:48 +00:00
nulano
47d501386a
update dependency licenses 2022-09-05 07:23:26 +02:00
Andrew Murray
8c65e05daa
Merge pull request #318 from radarhere/rc1
Updated Python 3.11 to rc1
2022-09-01 21:46:51 +10:00
Andrew Murray
6a2129786f Updated Python 3.11 to rc1 2022-09-01 18:39:08 +10:00
Hugo van Kemenade
2e3c52ce5b
Merge pull request #317 from radarhere/python311 2022-09-01 08:49:56 +03:00
Andrew Murray
09dee863fe Restored _PYTHON_HOST_PLATFORM for Python 3.11 2022-09-01 10:20:49 +10:00
mergify[bot]
a2cfd50022
Merge pull request #315 from radarhere/numpy
NumPy now supports Python 3.11
2022-08-26 08:08:22 +00:00
Andrew Murray
fd5f61618d NumPy now supports Python 3.11 2022-08-26 14:15:59 +10:00
Hugo van Kemenade
4c346c6fec
Merge pull request #314 from radarhere/giflib 2022-08-15 09:10:47 +03:00
Andrew Murray
8165ad55e0 Updated multibuild to include build_giflib for giflib >= 5.1.5 2022-08-15 11:42:35 +10:00
mergify[bot]
98c6102882
Merge pull request #313 from radarhere/xz
Updated xz to 5.2.6
2022-08-13 12:34:35 +00:00
mergify[bot]
392a625603
Merge pull request #312 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.4
2022-08-13 11:10:48 +00:00
Andrew Murray
1ce40a3aab Updated xz to 5.2.6 2022-08-13 16:35:56 +10:00
Andrew Murray
24f9c63906 Updated libjpeg-turbo to 2.1.4 2022-08-13 16:35:22 +10:00
Hugo van Kemenade
e9d6acf695
Merge pull request #311 from radarhere/readme
Use python3 when calling twine
2022-08-10 13:31:23 +03:00
Andrew Murray
b0ae777d17 Use python3 [ci skip] 2022-08-10 19:11:21 +10:00
mergify[bot]
97311b365f
Merge pull request #310 from radarhere/webp
Updated libwebp to 1.2.4
2022-08-06 09:50:31 +00:00
Andrew Murray
9751c5fe41 Updated libwebp to 1.2.4 2022-08-06 15:39:11 +10:00
Hugo van Kemenade
818227046f
Merge pull request #309 from radarhere/editorconfig
Remove redundant property already defined in another section
2022-08-06 08:04:20 +03:00
Andrew Murray
3b21279cf0
Remove redundant property already defined in another section 2022-08-06 12:32:33 +10:00
Hugo van Kemenade
9ed16c62cf
Merge pull request #308 from radarhere/harfbuzz
Updated harfbuzz to 5.1.0
2022-08-01 07:34:03 +03:00
Andrew Murray
f7f26e4f92 Updated harfbuzz to 5.1.0 2022-08-01 08:45:53 +10:00
Hugo van Kemenade
0b8837f67c
Merge pull request #307 from radarhere/harfbuzz 2022-07-25 09:32:51 +03:00
Andrew Murray
b47046a641 Updated harfbuzz to 5.0.1 2022-07-25 07:57:00 +10:00
mergify[bot]
bf091e0fee
Merge pull request #306 from radarhere/libwebp
Updated libwebp to 1.2.3
2022-07-16 10:14:59 +00:00
Andrew Murray
97a7444687 Updated libwebp to 1.2.3 2022-07-16 17:21:22 +10:00
Hugo van Kemenade
2eb7e000dc
Merge pull request #305 from python-pillow/pre-commit-ci-update-config 2022-07-04 22:42:02 +03:00
pre-commit-ci[bot]
242ae7e0e5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: 8fe62d14e0b4d7d845a7022c5c2c3ae41bdd3f26 → 3298ddab3c13dd77d6ce1fc0baf97691430d84b0](8fe62d14e0...3298ddab3c)
2022-07-04 17:57:19 +00:00
Hugo van Kemenade
799ae5b88d Pillow -> 9.2.0 2022-07-01 16:50:09 +03:00
Andrew Murray
8add9d5c5b
Merge pull request #300 from radarhere/libtiff
Updated libtiff to 4.4.0
2022-06-30 00:09:37 +10:00
Andrew Murray
187e742632
Merge pull request #304 from radarhere/harfbuzz
Updated harfbuzz to 4.4.1
2022-06-30 00:02:09 +10:00
Andrew Murray
700d64a98e Updated harfbuzz to 4.4.1 2022-06-29 18:59:04 +10:00
Andrew Murray
1fadcf6dab
Merge pull request #285 from radarhere/fribidi
Removed symlink as Pillow now checks /usr/local/lib/libfribidi.dylib
2022-06-29 12:36:02 +10:00
Andrew Murray
4d853f5608
Merge pull request #298 from radarhere/auditwheel
Updated auditwheel to include auditwheel#376
2022-06-28 20:41:54 +10:00
Hugo van Kemenade
451cca0088
Merge pull request #303 from radarhere/harfbuzz
Updated harfbuzz to 4.4.0
2022-06-28 08:25:47 +03:00
Andrew Murray
95b989383e Updated harfbuzz to 4.4.0 2022-06-28 09:49:02 +10:00
Hugo van Kemenade
d931de75d2
Merge pull request #302 from radarhere/python3.11
Added Python 3.11.0b3
2022-06-26 10:02:26 +03:00
Andrew Murray
252c61757f Added Python 3.11.0b3 2022-06-26 15:33:09 +10:00
Hugo van Kemenade
a3062e30d6
Merge pull request #301 from radarhere/manylinux
Added manylinux_2_28
2022-05-31 08:38:18 +03:00
Andrew Murray
e98de970fb Added manylinux_2_28 2022-05-31 10:12:20 +10:00
Andrew Murray
6bb6f93702 Updated libtiff to 4.4.0 2022-05-28 21:18:48 +10:00
Andrew Murray
0fb76f92d0 Updated auditwheel to include auditwheel#376 2022-05-23 23:06:52 +10:00
Hugo van Kemenade
a7f3b8e93b
Merge pull request #297 from radarhere/harfbuzz
Updated harfbuzz to 4.3.0
2022-05-21 07:20:35 +03:00
Andrew Murray
cd9595e611 Updated harfbuzz to 4.3.0 2022-05-21 10:16:00 +10:00
Andrew Murray
fc036f44ab
Merge pull request #296 from python-pillow/tags-true
Deploy to GitHub Releases when a tag is set
2022-05-19 08:51:02 +10:00
Hugo van Kemenade
17d0473583 Deploy to GitHub Releases when a tag is set 2022-05-18 09:35:24 +03:00
Hugo van Kemenade
1ed3e6132c Pillow -> 9.1.1 2022-05-17 14:44:10 +03:00
Hugo van Kemenade
3378ab4942
Merge pull request #294 from radarhere/openjpeg
Updated openjpeg to 2.5.0 on macOS x86_64
2022-05-15 08:21:11 +03:00
Andrew Murray
341d9b1fd2 Upgrade openjpeg to 2.5.0 on macOS x86_64 2022-05-14 20:54:49 +10:00
Hugo van Kemenade
cc6c04f6bf
Merge pull request #293 from radarhere/openjpeg
Updated openjpeg to 2.5.0, except on macOS x86_64
2022-05-14 07:35:39 +03:00
Andrew Murray
f9283718f0
Downgrade openjpeg to 2.4.0 on macOS x86_64 2022-05-14 12:34:11 +10:00
Andrew Murray
9323426f73 Updated openjpeg to 2.5.0 2022-05-14 10:08:34 +10:00
Andrew Murray
a68030be7f
Merge pull request #292 from radarhere/brew
brew remove lcms2 xmlto ghostscript
2022-05-14 10:03:18 +10:00
Andrew Murray
3468a424c7 brew remove ghostscript 2022-05-13 23:47:44 +10:00
Andrew Murray
60f497ffea brew remove lcms2 xmlto 2022-05-13 23:13:04 +10:00
mergify[bot]
f94c707b74
Merge pull request #291 from radarhere/numpy
Updated NumPy to latest 1.21 on 32-bit
2022-05-09 21:58:07 +00:00
Andrew Murray
4737154415 Simplified logic since NumPy 1.22 dropped support for Python 3.7 2022-05-09 21:53:47 +10:00
Andrew Murray
7d74e7c0c0 Updated NumPy to latest 1.21 on 32-bit 2022-05-09 21:53:41 +10:00
mergify[bot]
f0205f9385
Merge pull request #290 from radarhere/freetype
Updated freetype to 2.12.1
2022-05-01 14:10:08 +00:00
Andrew Murray
9f5eafd3ab Updated freetype to 2.12.1 2022-05-01 21:56:20 +10:00
mergify[bot]
440dd9f810
Merge pull request #289 from radarhere/harfbuzz
Updated harfbuzz to 4.2.1
2022-04-24 06:39:41 +00:00
Andrew Murray
83281c778d Updated harfbuzz to 4.2.1 2022-04-24 14:12:25 +10:00
Andrew Murray
d39ccfcecb
Merge pull request #288 from radarhere/default
multibuild now considers PLAT when selecting focal test images
2022-04-19 09:15:02 +10:00
Andrew Murray
6674ee6f5a multibuild now considers PLAT when selecting focal test images 2022-04-19 07:21:32 +10:00
Hugo van Kemenade
e2c73f7f5f
Merge pull request #283 from radarhere/cflags
Fixed restoring original CFLAGS
2022-04-10 11:32:17 +03:00
Hugo van Kemenade
e9bb5dd131
Merge pull request #287 from radarhere/clean
Cleanup code
2022-04-10 11:29:35 +03:00
Andrew Murray
d006407c66 Removed unnecessary arguments to multibuild functions 2022-04-10 15:59:15 +10:00
Andrew Murray
00f6624338 UNICODE_WIDTH is 32 by default 2022-04-10 15:59:10 +10:00
Andrew Murray
cf7fff47bf BUILD_DEPENDS is empty by default 2022-04-10 15:58:48 +10:00
Andrew Murray
0afce316c0 DOCKER_TEST_IMAGE is always multibuild/focal_{PLAT} 2022-04-10 15:58:14 +10:00
Andrew Murray
c387e2ec33 Travis PLAT is always aarch64 2022-04-10 15:57:37 +10:00
Andrew Murray
0b3e0124ab LATEST is never set 2022-04-10 15:57:02 +10:00
Hugo van Kemenade
7ad1f4a57f
Merge pull request #286 from radarhere/test_focal 2022-04-09 21:19:04 +03:00
Andrew Murray
3ec765d2a4 Install fribidi on manylinux 2022-04-09 22:47:09 +10:00
Andrew Murray
66eef8a3db Test 64-bit manylinux on default focal 2022-04-09 22:18:09 +10:00
Andrew Murray
87b8dc0965 Removed symlink as Pillow now checks /usr/local/lib/libfribidi.dylib 2022-04-09 19:22:26 +10:00
Hugo van Kemenade
e3f88713bc
Merge pull request #284 from radarhere/codecs
Simplified code
2022-04-09 08:26:46 +03:00
Andrew Murray
f6c1f7d840 Simplified code 2022-04-09 10:06:37 +10:00
Andrew Murray
2807a53718 Fixed restoring original CFLAGS 2022-04-09 09:46:13 +10:00
Hugo van Kemenade
68b95e3782
Merge pull request #280 from radarhere/zlib 2022-04-08 13:24:35 +03:00
Andrew Murray
fd9f83364a
Merge pull request #282 from radarhere/deployment
Fixed setting MACOSX_DEPLOYMENT_TARGET
2022-04-08 18:39:26 +10:00
Hugo van Kemenade
e3045433d6
Merge pull request #281 from radarhere/macos 2022-04-06 16:59:56 +03:00
Andrew Murray
6470199028 Fixed setting MACOSX_DEPLOYMENT_TARGET 2022-04-05 20:55:13 +10:00
Andrew Murray
78927dd5c6 Test fribidi, harfbuzz and raqm on macOS 2022-04-04 20:46:36 +10:00
Andrew Murray
ce097fadd2 Updated zlib on musllinux to 1.2.12 2022-04-03 12:12:40 +10:00
Andrew Murray
d3649a32ca Updated zlib on macOS to 1.2.12 2022-04-03 07:51:10 +10:00
mergify[bot]
6e18edb2c8
Merge pull request #279 from radarhere/fork
Switched back to main multibuild repository
2022-04-02 12:34:09 +00:00
Andrew Murray
20ae1f4019 Switched back to main multibuild repository 2022-04-02 22:26:39 +11:00
Hugo van Kemenade
c00e9d94b5
Merge pull request #278 from radarhere/release
Corrected release runs-on
2022-04-02 09:00:40 +03:00
Andrew Murray
c0dabe9b5a
Corrected release runs-on 2022-04-02 13:57:09 +11:00
Hugo van Kemenade
75c618ab50 Pillow -> 9.1.0 2022-04-01 11:04:11 +03:00
Hugo van Kemenade
62bea22987
Merge pull request #275 from radarhere/freetype
Updated freetype to 2.12
2022-04-01 08:07:48 +03:00
Andrew Murray
5000b9b731 Updated freetype to 2.12 2022-04-01 08:10:02 +11:00
Hugo van Kemenade
8ee683d26c
Merge pull request #274 from nulano/fribidi 2022-03-31 22:58:28 +03:00
Andrew Murray
e5b4a63080
Merge pull request #273 from radarhere/harfbuzz
Updated harfbuzz to 4.2.0
2022-03-31 17:20:16 +11:00
Hugo van Kemenade
00f4639e52
Merge pull request #272 from radarhere/pypy
Updated PyPy to 7.3.9
2022-03-31 07:40:08 +03:00
Ondrej Baranovič
d930cff66b
test with FriBiDi on Alpine 2022-03-31 04:28:50 +02:00
Andrew Murray
30ca3ba215 Updated harfbuzz to 4.2.0 2022-03-31 07:58:31 +11:00
Andrew Murray
4028b11f37 Updated PyPy to 7.3.9 2022-03-31 07:56:32 +11:00
Hugo van Kemenade
d579370ccb
Merge pull request #271 from radarhere/musllinux 2022-03-30 23:26:54 +03:00
Andrew Murray
0148bd8175
Run faster builds first
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-03-30 21:19:24 +11:00
Andrew Murray
19dd635918 Exclude macOS builds rather than include 2022-03-30 18:39:13 +11:00
Andrew Murray
1d53ac8b1d Run faster builds first 2022-03-30 18:36:38 +11:00
Andrew Murray
dc26810199 Moved python config above platform 2022-03-30 18:35:11 +11:00
Andrew Murray
2471dbdd75 Renamed Ubuntu builds to Linux 2022-03-30 18:33:30 +11:00
Andrew Murray
ca8565ebac Temporarily switch to multibuild fork 2022-03-30 11:36:51 +11:00
Andrew Murray
eee4a21370 Added musllinux 2022-03-30 11:36:47 +11:00
Hugo van Kemenade
55c6d6758c
Merge pull request #270 from radarhere/turbo
multibuild now includes build_libjpeg_turbo
2022-03-25 23:37:15 +02:00
Andrew Murray
081da2c7c7 multibuild now includes build_libjpeg_turbo 2022-03-26 06:21:35 +11:00
Hugo van Kemenade
a0853faec2
Merge pull request #268 from radarhere/python
Use Python 3.10 for setup-python
2022-03-24 07:32:23 +02:00
Andrew Murray
80f1a3c9bb Use Python 3.10 for setup-python 2022-03-24 09:47:04 +11:00
mergify[bot]
6d60fc5926
Merge pull request #267 from radarhere/harfbuzz
Updated harfbuzz to 4.1.0
2022-03-23 11:12:11 +00:00
Andrew Murray
13579d7757 Updated harfbuzz to 4.1.0 2022-03-23 18:30:12 +11:00
Hugo van Kemenade
5c9cab437b
Merge pull request #265 from radarhere/exclude 2022-03-20 11:25:05 +02:00
Andrew Murray
f59b20d731 Refactored arm64 jobs to exclude rather than include 2022-03-20 06:09:46 +11:00
Hugo van Kemenade
6230b11e3b
Merge pull request #264 from radarhere/test_depends
Removed unused pytest-cov
2022-03-19 15:43:33 +02:00
Andrew Murray
a2302a44e3 Added pytest-timeout 2022-03-19 23:06:19 +11:00
Andrew Murray
20b1355788 Removed unused pytest-cov 2022-03-19 23:05:56 +11:00
mergify[bot]
893eea6265
Merge pull request #262 from radarhere/harfbuzz
Updated harfbuzz to 4.0.1
2022-03-11 22:46:58 +00:00
Andrew Murray
4afcd8eb83 Updated harfbuzz to 4.0.1 2022-03-12 07:33:23 +11:00
Andrew Murray
8769c9ed28
Merge pull request #261 from radarhere/actions
Updated actions/* to v3
2022-03-04 23:02:44 +11:00
Andrew Murray
1a36551bd4 Updated actions/* to v3 2022-03-04 20:57:39 +11:00
Hugo van Kemenade
4601f14aae
Merge pull request #260 from radarhere/harfbuzz
Updated harfbuzz to 4.0.0
2022-03-02 07:59:45 +02:00
Andrew Murray
09eb579de8 Updated harfbuzz to 4.0.0 2022-03-02 11:00:58 +11:00
Hugo van Kemenade
8dafc8a333
Merge pull request #259 from radarhere/libjpeg_turbo 2022-02-26 22:27:40 +02:00
Andrew Murray
0edc65a385 Updated libjpeg-turbo to 2.1.3 2022-02-26 15:23:05 +11:00
Andrew Murray
4b74b535dd
Merge pull request #258 from hugovk/reusable-workflow
Remove duplication with a reusable workflow
2022-02-22 19:35:35 +11:00
Hugo van Kemenade
3e75a17994 Ignore PyCharm metadata 2022-02-22 09:14:17 +02:00
Hugo van Kemenade
a7fb3c1bbd Move into reusable workflow 2022-02-22 09:14:17 +02:00
Andrew Murray
c4f4c049a2
Merge pull request #256 from radarhere/pypy
Added PyPy3.8
2022-02-21 20:16:11 +11:00
Hugo van Kemenade
54def7682a
Merge pull request #257 from radarhere/pytest 2022-02-21 08:52:41 +02:00
Andrew Murray
c84fbfaa49 Added pytest-timeout 2022-02-21 13:33:24 +11:00
Andrew Murray
edbfb3c6d0 Added PyPy3.8 2022-02-21 12:32:29 +11:00
Hugo van Kemenade
b8ceb43863
Merge pull request #254 from radarhere/auditwheel 2022-02-17 09:56:24 +02:00
Andrew Murray
6e24dc6790 Downgrade zlib to 1.2.8 on Linux 2022-02-16 14:27:07 +11:00
Andrew Murray
9ed4f0ef84 Revert "Downgrade auditwheel on Linux"
This reverts commit 2a03bb74dd.
2022-02-16 14:26:28 +11:00
Hugo van Kemenade
0163e70c87
Merge pull request #253 from radarhere/readme 2022-02-15 09:11:05 +02:00
Andrew Murray
604c0aa2c1 Removed NumPy instructions [ci skip] 2022-02-14 12:36:46 +11:00
Hugo van Kemenade
f7648bccfc
Merge pull request #252 from radarhere/harfbuzz 2022-02-13 22:06:19 +02:00
Andrew Murray
72f93aeca7 Updated harfbuzz to 3.4.0 2022-02-13 21:57:14 +11:00
Hugo van Kemenade
a0483efe34
Merge pull request #251 from radarhere/harfbuzz
Updated harfbuzz to 3.3.2
2022-02-07 07:12:17 +02:00
Andrew Murray
d9a328c02e Updated harfbuzz to 3.3.2 2022-02-07 08:14:09 +11:00
Hugo van Kemenade
a57b83c1b5
Merge pull request #250 from radarhere/lcms2
Updated lcms2 to 2.13.1
2022-02-04 07:08:56 +02:00
Hugo van Kemenade
fb5bd19ac0
Merge pull request #249 from nulano/patch-1
brew remove libxcb libxdmcp
2022-02-04 07:06:39 +02:00
Andrew Murray
a1543bcdad Do not remove libxdmcp 2022-02-04 11:32:55 +11:00
Andrew Murray
107d4c820d Updated lcms2 to 2.13.1 2022-02-04 03:30:37 +11:00
Ondrej Baranovič
249728197e
brew remove libxcb libxdmcp 2022-02-03 15:27:39 +00:00
Andrew Murray
41f6533a9c Pillow -> 9.0.1 2022-02-03 11:39:21 +11:00
mergify[bot]
97fc22ffff
Merge pull request #248 from radarhere/lcms2
Updated lcms2 to 2.13
2022-01-29 23:33:22 +00:00
Andrew Murray
b1885f27f0 Updated lcms2 to 2.13 2022-01-30 07:59:00 +11:00
Hugo van Kemenade
c5ac495263
Merge pull request #246 from radarhere/lint
Added Lint badge to README
2022-01-28 07:28:56 +02:00
Andrew Murray
546573fa3d Added Lint badge 2022-01-28 11:13:54 +11:00
Hugo van Kemenade
3ffa7507c0
Merge pull request #245 from radarhere/giflib 2022-01-25 09:05:19 +02:00
Andrew Murray
df1ac80fdd Updated giflib to 5.2.1 on Linux 2022-01-25 09:54:24 +11:00
Hugo van Kemenade
460084debf
Merge pull request #244 from radarhere/libwebp
Updated libwebp to 1.2.2
2022-01-24 07:47:45 +02:00
Andrew Murray
3c631797de Updated libwebp to 1.2.2 2022-01-24 10:18:32 +11:00
Andrew Murray
06bb17abbd
Merge pull request #243 from hugovk/travis-3.10
Travis CI: Use Python 3.10
2022-01-24 09:46:42 +11:00
Hugo van Kemenade
bf169f75b6
Use Python 3.10 2022-01-23 23:33:43 +02:00
Hugo van Kemenade
2a69567eb1
Merge pull request #242 from radarhere/link
Updated link
2022-01-18 09:20:07 +02:00
Andrew Murray
b38f4e7c33 Updated link [ci skip] 2022-01-18 14:29:56 +11:00
Andrew Murray
a684a25c74
Merge pull request #241 from hugovk/update-mergify
Add GHA CI to Mergify
2022-01-05 08:34:13 +11:00
Hugo van Kemenade
24f282af79
Merge pull request #4 from radarhere/update-mergify 2022-01-04 14:02:35 +02:00
Andrew Murray
1359e70d7e Updated names for mergify 2022-01-04 09:29:34 +11:00
Hugo van Kemenade
f7d4154067 Add GHA CI to Mergify 2022-01-03 21:03:43 +02:00
mergify[bot]
266283abeb
Merge pull request #240 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-01-03 17:20:06 +00:00
pre-commit-ci[bot]
a8a3b3c0f0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: 38b88246ccc552bffaaf54259d064beeee434539 → 8fe62d14e0b4d7d845a7022c5c2c3ae41bdd3f26](38b88246cc...8fe62d14e0)
2022-01-03 17:11:25 +00:00
Andrew Murray
71d4f05db4
Merge pull request #239 from hugovk/main
Add workflow_dispatch to allow triggering builds
2022-01-03 09:09:43 +11:00
Hugo van Kemenade
6eddd4bbb4 Add workflow_dispatch to allow triggering builds 2022-01-02 21:47:56 +02:00
Andrew Murray
3c1f014f8b Pillow -> 9.0.0 2022-01-02 21:00:06 +11:00
Hugo van Kemenade
9e81644097
Merge pull request #238 from radarhere/numpy_versions
Limit numpy on 32-bit to 1.21.5 for Python 3.8 and 3.9
2022-01-02 08:55:54 +02:00
Andrew Murray
5b1d6a8753 Limit numpy on 32-bit to 1.21.5 for Python 3.8 and 3.9 2022-01-02 15:18:37 +11:00
mergify[bot]
02f9db5ce9
Merge pull request #237 from radarhere/libjpeg-turbo
Switched to libjpeg-turbo
2021-12-31 06:46:54 +00:00
Andrew Murray
4e2c5709ec Switched to libjpeg-turbo 2021-12-31 15:53:19 +11:00
mergify[bot]
b5387b4e5a
Merge pull request #236 from radarhere/fixes
Fix failing main build
2021-12-29 17:18:50 +00:00
Andrew Murray
136ab890c0 Limit numpy on 32-bit to 1.21.4 for Python 3.10 and 1.20.3 for PyPy 2021-12-29 23:46:38 +11:00
Andrew Murray
de4d6249ef Do not use libtiff 4.3.0 on macOS builds 2021-12-29 22:22:11 +11:00
Hugo van Kemenade
aec595a10c
Merge pull request #235 from radarhere/harfbuzz 2021-12-12 11:15:50 +02:00
Andrew Murray
97afc0daeb Updated harfbuzz to 3.2.0 2021-12-12 16:00:01 +11:00
mergify[bot]
4f65b52e5c
Merge pull request #234 from radarhere/freetype
Updated freetype to 2.11.1
2021-12-05 02:30:27 +00:00
Andrew Murray
37339ce9ed Updated freetype to 2.11.1 2021-12-05 00:57:36 +11:00
Hugo van Kemenade
c13a0310a9
Merge pull request #233 from radarhere/harfbuzz
Updated harfbuzz to 3.1.0
2021-11-15 08:26:23 +02:00
Andrew Murray
50a9db6c3b Updated harfbuzz to 3.1.0 2021-11-15 10:27:52 +11:00
Hugo van Kemenade
c5005dfd12
Merge pull request #232 from radarhere/pypy
Updated PyPy 3.7 to 7.3.7
2021-11-11 08:02:31 +02:00
Andrew Murray
91c38e8d52 Updated PyPy 3.7 to 7.3.7 2021-11-11 12:16:28 +11:00
Andrew Murray
13f4459802
Merge pull request #230 from hugovk/https
Update GitHub git:// to https://
2021-11-06 13:34:08 +11:00
Hugo van Kemenade
aecfdb8f32 Update GitHub git:// to https:// 2021-11-06 11:23:59 +11:00
Andrew Murray
d884cd9aca
Merge pull request #231 from hugovk/rm-3.6
Drop support for EOL Python 3.6
2021-11-06 11:21:57 +11:00
Hugo van Kemenade
abb278c833 Drop support for EOL Python 3.6 2021-11-05 18:46:53 +02:00
mergify[bot]
706f721b23
Merge pull request #229 from radarhere/multi-build
Changed multibuild remote from matthew-brett to multi-build
2021-10-31 08:48:35 +00:00
Andrew Murray
26c1adc300 Changed multibuild remote from matthew-brett to multi-build 2021-10-31 18:54:31 +11:00
Andrew Murray
73924dc8cf
Merge pull request #228 from hugovk/rename-master-to-main
Rename master to main
2021-10-16 21:01:52 +11:00
Hugo van Kemenade
fd50dc2dc5 Rename master to main 2021-10-15 16:02:27 +03:00
Hugo van Kemenade
a2a4245e92 Pillow -> 8.4.0 2021-10-15 09:41:07 +03:00
Hugo van Kemenade
a74bcf353a
Merge pull request #227 from radarhere/python310 2021-10-12 10:27:35 +03:00
Andrew Murray
378a44e17b Updated to Python 3.10 in multibuild 2021-10-12 17:20:40 +11:00
Hugo van Kemenade
464d0b1174
Merge pull request #225 from radarhere/zlib_auditwheel 2021-10-11 15:27:46 +03:00
Andrew Murray
2a03bb74dd Downgrade auditwheel on Linux 2021-09-24 21:11:13 +10:00
Andrew Murray
73e3a55996 Uninstall existing zlib on Linux 2021-09-24 20:59:29 +10:00
Hugo van Kemenade
87bb94fd94
Merge pull request #224 from radarhere/travis 2021-09-22 14:38:27 +03:00
Andrew Murray
4ead991afa Updated README for new API key location [ci skip] 2021-09-22 21:31:41 +10:00
Hugo van Kemenade
daf59dfd9d
Merge pull request #223 from radarhere/harfbuzz
Updated harfbuzz to 3.0.0
2021-09-18 10:10:15 +03:00
Andrew Murray
3c8056a6cb Updated harfbuzz to 3.0.0 2021-09-18 08:17:44 +10:00
Andrew Murray
741ae4ef19
Merge pull request #222 from python-pillow/update-gh-releases-key
Update GH Releases key
2021-09-16 08:03:30 +10:00
Hugo van Kemenade
edb4da2579
Update GH Releases key 2021-09-15 16:39:03 +03:00
Andrew Murray
f72da91f77
Merge pull request #221 from python-pillow/update-api-key
Update GitHub Releases API token
2021-09-15 08:27:26 +10:00
Hugo van Kemenade
d6378da213 Reference rotated API key 2021-09-14 15:39:39 +03:00
Hugo van Kemenade
2efb3469f2
Merge pull request #220 from radarhere/harfbuzz
Updated harfbuzz to 2.9.1
2021-09-08 08:36:18 +03:00
Andrew Murray
a0e13805d3 Updated harfbuzz to 2.9.1 2021-09-08 07:46:21 +10:00
Hugo van Kemenade
ff9fccafbb
Merge pull request #219 from radarhere/numpy_pypy 2021-09-06 10:52:02 +03:00
Andrew Murray
83c01b702f Upgraded numpy on 32-bit PyPy3.7 to match 64-bit 2021-09-06 12:18:03 +10:00
Hugo van Kemenade
59be686276 Pillow -> 8.3.2 2021-09-02 16:23:33 +03:00
Andrew Murray
883a7d7b52
Merge pull request #218 from radarhere/plat
Test 64-bit Linux PyPy on focal
2021-08-28 09:41:09 +10:00
Andrew Murray
510512e9eb Simplified code 2021-08-27 22:30:36 +10:00
Andrew Murray
35e0e57a38 Test 64-bit Linux PyPy on focal 2021-08-27 22:28:29 +10:00
Hugo van Kemenade
7fc35c0c64
Merge pull request #217 from radarhere/python310_linux 2021-08-26 16:09:54 +03:00
Andrew Murray
2d6ba5f444 Stopped specifying MB_ML_VER=2014 as it is now the default 2021-08-26 18:41:07 +10:00
Andrew Murray
6472d1fdf7 Updated Linux PyPy jobs to new default MB_ML_VER of 2014 2021-08-26 18:40:22 +10:00
Andrew Murray
f7b523e255 Updated multibuild to set the default manylinux version to 2014 2021-08-26 09:54:57 +10:00
Andrew Murray
49b847ba95 Added Python 3.10 Linux jobs 2021-08-26 09:54:30 +10:00
Hugo van Kemenade
fac34051ea
Merge pull request #216 from radarhere/harfbuzz 2021-08-18 18:35:26 +03:00
Andrew Murray
bd773bb277 Updated harfbuzz to 2.9.0 2021-08-18 21:55:44 +10:00
Hugo van Kemenade
668fa3d2c7
Merge pull request #215 from radarhere/python310 2021-08-15 15:58:23 +03:00
Andrew Murray
812155d68c Do not install numpy for Python 3.10 on x86_64 2021-08-15 20:03:16 +10:00
Andrew Murray
198dd1ae66 Added Python 3.10 macOS jobs 2021-08-15 20:03:09 +10:00
Hugo van Kemenade
d2eeaa5286
Merge pull request #214 from radarhere/libwebp
Updated libwebp to 1.2.1
2021-08-15 11:09:06 +03:00
Andrew Murray
d23b263335 Updated libwebp to 1.2.1 2021-08-14 19:53:28 +10:00
Hugo van Kemenade
f27fe2a316
Merge pull request #213 from hugovk/add-3.10-travis 2021-08-12 21:22:43 +03:00
Hugo van Kemenade
091746b307
Merge pull request #3 from radarhere/add-3.10-travis
pre-commit autoupdate --freeze
2021-08-12 15:43:01 +03:00
Hugo van Kemenade
b2983b18b3
Autoupdate quarterly 2021-08-12 15:40:05 +03:00
Andrew Murray
0a6334416c pre-commit autoupdate --freeze 2021-08-12 21:17:51 +10:00
Hugo van Kemenade
4e66275075
Merge pull request #211 from radarhere/build_xz
Added build_xz
2021-08-12 13:59:45 +03:00
Hugo van Kemenade
c0626ba28e Add linting 2021-08-12 11:09:50 +03:00
Hugo van Kemenade
520fa0858a Build on Python 3.10-dev 2021-08-12 11:06:43 +03:00
Hugo van Kemenade
2c3983ae5b Replace EOL Xenial with Focal 2021-08-12 11:05:35 +03:00
Hugo van Kemenade
0968401acc
Merge pull request #212 from radarhere/freetype
Updated freetype to 2.11.0
2021-07-20 08:33:48 +03:00
Andrew Murray
449491e8d2 Updated freetype to 2.11.0 2021-07-20 07:45:55 +10:00
Andrew Murray
6ad12e69ec Added build_xz 2021-07-12 22:25:23 +10:00
Hugo van Kemenade
90fdd92a9e
Merge pull request #210 from radarhere/harfbuzz
Updated harfbuzz to 2.8.2
2021-07-09 09:11:44 +03:00
Andrew Murray
4cb095670b Updated harfbuzz to 2.8.2 2021-07-09 10:07:44 +10:00
Andrew Murray
59030211cd Pillow -> 8.3.1 2021-07-07 00:12:47 +10:00
Hugo van Kemenade
e3704b1a66
Merge pull request #209 from radarhere/workaround
Removed multibuild workaround
2021-07-04 16:11:47 +03:00
Andrew Murray
8bc5d8e8d8 Removed multibuild workaround 2021-07-03 19:05:46 +10:00
Hugo van Kemenade
eb0b407724
Merge pull request #208 from radarhere/untar
Updated multibuild
2021-07-02 22:57:01 +03:00
Andrew Murray
b424d2fc3a Added multibuild workaround 2021-07-02 22:13:16 +10:00
Andrew Murray
113eecfa22 Removed multibuild workaround 2021-07-02 18:13:22 +10:00
Andrew Murray
8e12a09081 Pillow -> 8.3.0 2021-07-01 14:02:42 +10:00
Hugo van Kemenade
e168f90e0f
Merge pull request #207 from radarhere/pypy_numpy
Limit numpy on 64-bit pypy 3.7 as well
2021-06-25 09:25:25 +03:00
Andrew Murray
172a58d54c Limit numpy on 64-bit pypy 3.7 as well 2021-06-25 11:03:16 +10:00
Hugo van Kemenade
d70abd593f
Merge pull request #206 from radarhere/m1 2021-06-24 12:03:12 +03:00
Andrew Murray
ace38ddbb9 Enabled macos-11 2021-06-24 00:45:12 +10:00
Andrew Murray
54a83e2cb9
Merge pull request #205 from nulano/osx-error
OSX: brew remove php
2021-06-17 23:58:46 +10:00
nulano
189334bae9 add comment for brew remove 2021-06-16 22:55:22 +02:00
nulano
decd59a691 brew remove php 2021-06-16 22:29:36 +02:00
Hugo van Kemenade
97aa3624de
Merge pull request #204 from radarhere/zlib 2021-06-16 21:57:14 +03:00
Andrew Murray
ce07009282 Build zlib on Linux as well 2021-06-16 21:27:59 +10:00
Hugo van Kemenade
fd81da7e32
Merge pull request #203 from radarhere/travis 2021-06-14 15:11:03 +03:00
Andrew Murray
2c2a7211f5 Updated to Ubuntu 20.04 2021-05-30 15:30:48 +10:00
Andrew Murray
153cb9e1be Removed unused variable 2021-05-30 15:30:48 +10:00
Hugo van Kemenade
91204438ec
Merge pull request #202 from radarhere/python38_untar 2021-05-29 21:11:42 +03:00
Andrew Murray
34b2e34ea0 Disable macos-11.0 whilst not available for this repo 2021-05-29 17:37:51 +10:00
Andrew Murray
88a8459b41 Fixed untar on macOS 11 2021-05-19 22:25:36 +10:00
Andrew Murray
6bb4dfcf90 Updated multibuild to upgrade Python 3.8 default to 3.8.10 2021-05-19 20:30:06 +10:00
Andrew Murray
8b9b95bf5c Added Python 3.8 for arm64 2021-05-19 19:10:44 +10:00
Hugo van Kemenade
6773a6af35
Merge pull request #201 from radarhere/editorconfig
Added .editorconfig file
2021-05-16 09:44:11 +03:00
Andrew Murray
6a81c1879c Added .editorconfig file 2021-05-16 11:58:25 +10:00
Andrew Murray
70fb68c093
Merge pull request #200 from radarhere/xcb
Migrated from deprecated xproto to xorgproto
2021-05-16 11:02:06 +10:00
Andrew Murray
dc1f619337 Replaced tabs with spaces 2021-05-16 08:18:02 +10:00
Andrew Murray
e27728f24a Migrated from deprecated xproto to xorgproto 2021-05-15 12:15:56 +10:00
Andrew Murray
678e69f0cd
Merge pull request #199 from nulano/travis
Fix expected features list on Travis
2021-05-11 11:45:56 +10:00
nulano
0c62cffdd8 fix expected features list on Travis 2021-05-11 02:26:35 +02:00
Hugo van Kemenade
3b8d91552f
Merge pull request #197 from radarhere/libtiff
Do not use libtiff 4.3.0 on macOS 11 builds
2021-05-09 18:39:44 +03:00
Andrew Murray
99993ca972
Merge pull request #196 from nulano/gha-ubuntu
Change workflow to use ubuntu-20.04
2021-05-09 15:26:26 +10:00
Andrew Murray
a80c2de3ab Do not use libtiff 4.3.0 on macOS 11 builds 2021-05-09 14:38:00 +10:00
nulano
fde98992f6 update OS names 2021-05-04 18:25:19 +02:00
nulano
49160d4c2d upgrade to ubuntu-20.04 2021-05-04 18:21:38 +02:00
Hugo van Kemenade
2b95a2fbfc
Merge pull request #195 from radarhere/harfbuzz
Updated harfbuzz to 2.8.1
2021-05-04 14:41:08 +03:00
Andrew Murray
f4862597f8 Updated harfbuzz to 2.8.1 2021-05-04 13:24:06 +10:00
Hugo van Kemenade
669b4ffe0b
Merge pull request #194 from radarhere/libtiff
Updated libtiff to 4.3.0
2021-04-25 15:19:21 +03:00
Andrew Murray
82165c0e9c Updated libtiff to 4.3.0 2021-04-16 22:56:34 +10:00
Hugo van Kemenade
15916a39dd Pillow -> 8.2.0 2021-04-01 23:08:33 +03:00
Hugo van Kemenade
c0f9f98ec7 Disable macos-11.0 whilst not available for this repo 2021-04-01 23:07:37 +03:00
wiredfool
4d91cd8485
Merge pull request #181 from nulano/for-5062
Update config for FriBiDi dynamic linking
2021-03-31 22:57:59 +01:00
Ondrej Baranovič
f2afbdac02
update HarfBuzz to 2.8.0
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-31 10:51:19 +02:00
nulano
5f04e4a6df replace IS_OSX with IS_MACOS 2021-03-25 02:14:51 +01:00
nulano
a41f5578ad add HarfBuzz license 2021-03-25 02:13:17 +01:00
Andrew Murray
63bbc48b67 Pillow -> 8.1.2 2021-03-06 14:28:54 +11:00
Andrew Murray
e28e44cf27
Merge pull request #183 from radarhere/travis
Updated Travis to Python 3.9
2021-03-02 18:48:00 +11:00
Andrew Murray
d8f85273ab Pillow -> 8.1.1 2021-03-01 20:24:21 +11:00
Hugo van Kemenade
1dc894dc93
Merge pull request #192 from radarhere/openjpeg
Removed existing libpng to fix arm64 OpenJPEG
2021-02-13 12:52:41 +02:00
Andrew Murray
e962cd86df Removed existing libpng to fix arm64 OpenJPEG 2021-02-09 12:23:09 +11:00
Hugo van Kemenade
a90a2bf3bb
Merge pull request #191 from radarhere/pypy733
Updated PyPy 3.6 to 7.3.3
2021-02-08 15:09:56 +02:00
Andrew Murray
48e219ff21 Updated PyPy 3.6 to 7.3.3 2021-02-08 20:54:53 +11:00
Hugo van Kemenade
d46d549814
Merge pull request #190 from radarhere/libwebp
Updated lcms2 to 2.12
2021-02-07 15:14:59 +02:00
Andrew Murray
51ca11de79
Merge branch 'master' into for-5062 2021-02-07 15:57:00 +11:00
Andrew Murray
a5fc70eea0 Updated lcms2 to 2.12 2021-02-07 06:54:08 +11:00
Hugo van Kemenade
3d0dba7c62
Merge pull request #189 from radarhere/pypy73
multibuild now includes PyPy 7.3.3
2021-02-06 08:36:10 +02:00
Hugo van Kemenade
5e86561c68
Merge pull request #188 from radarhere/submodule
Combined git submodule commands
2021-02-06 08:34:28 +02:00
Andrew Murray
d69138f4b7 multibuild now includes PyPy 7.3.3 2021-02-06 14:52:34 +11:00
Andrew Murray
988ac607d2 Combined git submodule commands 2021-02-06 08:49:59 +11:00
Andrew Murray
c98b027204
Merge pull request #186 from radarhere/libwebp
Updated libwebp to 1.2.0
2021-02-02 22:01:06 +11:00
Andrew Murray
335488e4ba Updated libwebp to 1.2.0 2021-02-02 20:34:31 +11:00
Hugo van Kemenade
56316e22e8
Merge pull request #187 from radarhere/numpy
Limit numpy to 1.19.5 on 32-bit pypy 3.7
2021-02-02 11:33:02 +02:00
Andrew Murray
398f2d8af5 Limit numpy to 1.19.5 on 32-bit pypy 3.7 2021-01-31 15:57:24 +11:00
Hugo van Kemenade
4e74d04f26
Merge pull request #185 from radarhere/arm64
Build arm64 wheel
2021-01-30 11:33:21 +02:00
Andrew Murray
faeb4599e5 Build arm64 wheel 2021-01-30 10:38:55 +11:00
Hugo van Kemenade
b851ec87f1
Merge pull request #184 from radarhere/is_macos
Move from multibuild IS_OSX to IS_MACOS
2021-01-10 16:54:47 +02:00
Andrew Murray
b380ff3ad2 Move from multibuild IS_OSX to IS_MACOS 2021-01-10 22:19:26 +11:00
Andrew Murray
afb6cd5721 Updated to Python 3.9 2021-01-10 15:10:10 +11:00
Hugo van Kemenade
24a518bb51
Merge pull request #182 from hugovk/rm-travis-latest 2021-01-06 10:51:17 +02:00
Hugo van Kemenade
33cecd6036 Remove 'tags: true' to upload wheels for manually triggered builds 2021-01-03 13:37:43 +02:00
Hugo van Kemenade
f7243c7ce8 Remove 'latest' jobs from Travis CI 2021-01-03 11:08:32 +02:00
nulano
357c884eb4 add raqm license 2021-01-02 19:06:08 +01:00
nulano
303bf0bc5c expected features with dynamic raqm/fribidi 2021-01-02 18:14:37 +01:00
nulano
1794fcad90 compile in c99 mode due to raqm 2021-01-02 18:14:37 +01:00
nulano
5fa0403b3b manually config freetype 2021-01-02 18:14:36 +01:00
nulano
283913826a add wheel build options to vendor raqm, fribidi shim 2021-01-02 18:14:36 +01:00
nulano
557562b6e6 install harfbuzz 2021-01-02 18:11:30 +01:00
Andrew Murray
74cd3585a0 Pillow -> 8.1.0 2021-01-02 23:26:12 +11:00
Andrew Murray
1ce6762c29
Merge pull request #180 from radarhere/libtiff
Updated libtiff to 4.2.0
2021-01-01 09:46:46 +11:00
Andrew Murray
e3bbc30fa8 Updated libtiff to 4.2.0 2020-12-29 19:13:05 +11:00
Hugo van Kemenade
96283c0c89
Merge pull request #178 from radarhere/licenses 2020-12-29 10:00:34 +02:00
Hugo van Kemenade
96a26ae430
Merge pull request #179 from radarhere/openjpeg
Updated openjpeg to 2.4.0
2020-12-29 07:15:04 +02:00
Andrew Murray
dea7485bf1 Updated openjpeg to 2.4.0 2020-12-29 10:42:21 +11:00
Andrew Murray
434acc7508 Split dependency licenses into individual files 2020-12-29 10:39:51 +11:00
Andrew Murray
3c115d9fe7 Append dependencies licenses 2020-12-28 09:29:25 +11:00
Andrew Murray
802195dd3b
Merge pull request #177 from radarhere/pypy
Updated PyPy to 7.3.3
2020-12-28 07:54:22 +11:00
Andrew Murray
7817c0c4b8 Updated PyPy to 7.3.3 2020-12-28 07:02:24 +11:00
Hugo van Kemenade
da43be83bc
Merge pull request #176 from radarhere/python3
Use python3
2020-12-26 17:12:42 +02:00
Andrew Murray
ef03126481 Use python3 2020-12-26 21:40:59 +11:00
Andrew Murray
f1238f0a11
Merge pull request #175 from mattip/pypy
Add PyPy3.7 wheels
2020-12-25 18:01:52 +11:00
Matti Picus
5fff825bed
Merge pull request #5 from radarhere/pypy
Removed PyPy-specific install command
2020-12-25 07:45:51 +02:00
Andrew Murray
800c03068b Removed PyPy-specific install command 2020-12-22 12:44:54 +11:00
mattip
27ca1176fa multibuild does not yet recognize pypy version 7.3.3 2020-12-20 12:13:08 +02:00
mattip
3523f04293 multibuild does not yet recognize pypy version 7.3.3 2020-12-20 11:49:18 +02:00
mattip
35a68d028a generalize test for any pypy3 version 2020-12-20 10:19:45 +02:00
mattip
7950175485 add pypy3.7 wheels 2020-12-20 08:40:57 +02:00
Hugo van Kemenade
16cab6bae9
Merge pull request #174 from radarhere/pip
Invoke pip using python3
2020-12-18 09:20:02 +02:00
Andrew Murray
9f5c535709 Invoke pip using python3 2020-12-18 16:38:23 +11:00
Andrew Murray
a7fa15bdcb
Merge pull request #173 from nulano/mac
GHA: Fix macOS builds
2020-12-12 07:32:21 +11:00
Hugo van Kemenade
0480e2caa5
Merge pull request #172 from radarhere/badge
Added GitHub Actions badge
2020-12-11 20:32:57 +02:00
nulano
6ef1dd1667 remove curl from brew [CI skip] 2020-12-11 17:12:05 +01:00
Andrew Murray
60e5d538fc Rearranged badges [ci skip] 2020-12-11 21:22:12 +11:00
Andrew Murray
de8ddc8a0c
Updated text [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-11 21:21:12 +11:00
Andrew Murray
6acdbcbf0d
Updated text [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-11 21:20:57 +11:00
Andrew Murray
8108b289eb Added GitHub Actions badge [ci skip] 2020-12-04 00:44:27 +11:00
Hugo van Kemenade
4462509050
Merge pull request #169 from nulano/gha 2020-11-16 20:09:50 +02:00
Andrew Murray
ff8ba318a2 Updated to Python 3.9 2020-11-07 02:30:41 +01:00
nulano
2dc6e41167 install Tcl/Tk for PyPy on macOS 2020-10-31 21:42:25 +00:00
Andrew Murray
bedaf1c62c
Merge pull request #170 from hugovk/update-travis-links
Update for travis-ci.com
2020-10-31 10:48:54 +11:00
Hugo van Kemenade
586ad28c7f Update for travis-ci.com [CI skip] 2020-10-30 21:42:09 +02:00
nulano
b3f1056eaa put PyPy first 2020-10-29 18:24:50 +00:00
nulano
f33661a80f create event is redundant 2020-10-24 03:17:17 +01:00
nulano
39a366203c run both tagged and latest 2020-10-24 02:24:44 +01:00
nulano
6466660f7d move macOS to GHA 2020-10-24 00:41:39 +01:00
nulano
6991e05c68 create release 2020-10-23 18:14:38 +01:00
nulano
0364455bfb move x86 jobs to GHA 2020-10-23 16:27:26 +01:00
Hugo van Kemenade
464f08ee52 Pillow -> 8.0.1 2020-10-22 18:39:23 +03:00
Hugo van Kemenade
b8b5f298d0
Merge pull request #168 from radarhere/freetype
Updated freetype to 2.10.4
2020-10-21 09:54:23 +03:00
Andrew Murray
80494e6f3c Updated freetype to 2.10.4 2020-10-20 19:56:34 +11:00
Hugo van Kemenade
c36f7f69bd Pillow -> 8.0.0 2020-10-14 19:16:05 +03:00
Hugo van Kemenade
05fd447752
Merge pull request #167 from radarhere/freetype
Updated freetype to 2.10.3
2020-10-11 09:47:16 +03:00
Andrew Murray
6af827ea9b Updated freetype to 2.10.3 2020-10-11 08:44:55 +11:00
mergify[bot]
dc797808b6
Merge pull request #165 from radarhere/xcb-proto
Updated xcb-proto to 1.14.1
2020-10-09 14:08:33 +00:00
Andrew Murray
183157dc11 Updated xcb-proto to 1.14.1 2020-10-09 22:49:41 +11:00
Hugo van Kemenade
55e6fe4b6b
Merge pull request #164 from radarhere/python39
Added Python 3.9
2020-10-07 07:08:53 +03:00
Andrew Murray
1f367da315 Use version of xcb-proto patched for Python 3.9 2020-10-07 00:40:23 +11:00
Andrew Murray
9f4daf4347 Updated multibuild for Python 3.9 2020-10-06 23:46:23 +11:00
Andrew Murray
da3c89579f Added Python 3.9 2020-10-06 23:46:17 +11:00
Hugo van Kemenade
234fbfb0e8
Merge pull request #163 from radarhere/order
Changed order of dependency
2020-10-03 20:19:47 +03:00
Andrew Murray
96985e218b Changed order of dependency 2020-10-03 19:31:36 +10:00
mergify[bot]
7d898f24a4
Merge pull request #162 from radarhere/test_images
Use pillow-depends test images
2020-09-23 12:44:34 +00:00
Andrew Murray
8226556bdb Use pillow-depends test images 2020-09-23 19:57:08 +10:00
Andrew Murray
7942355bf4
Merge pull request #161 from hugovk/add-mergify
Add Mergify config
2020-09-22 19:32:06 +10:00
Hugo van Kemenade
aa07d25274
Add Mergify config 2020-09-20 18:30:08 +03:00
Hugo van Kemenade
d55456d975
Merge pull request #160 from radarhere/cmake_xz
Revert "Workaround problems with cmake and xz on manylinux2014"
2020-09-05 17:23:45 +03:00
Andrew Murray
dd82901ec7 Updated multibuild 2020-09-05 19:51:40 +10:00
Andrew Murray
702da87d3f Revert "Workaround problems with cmake and xz on manylinux2014"
This reverts commit 639793e150.
2020-09-05 19:49:39 +10:00
Hugo van Kemenade
a6d0942cc5
Merge pull request #159 from radarhere/pypy_url
Updated multibuild to change PyPy URL
2020-08-24 09:50:27 +03:00
Andrew Murray
86c8553027 Updated multibuild to change PyPy URL 2020-08-24 08:20:59 +10:00
Hugo van Kemenade
fc8286f75b
Merge pull request #158 from radarhere/pypi
Updated PyPI instructions
2020-08-14 16:39:41 +03:00
Andrew Murray
bb83183390 Updated PyPI instructions [ci skip] 2020-08-14 22:20:01 +10:00
Hugo van Kemenade
132bd88aee
Merge pull request #157 from radarhere/releases 2020-08-07 16:07:39 +03:00
Andrew Murray
ae55aed3f0 Updated wheels upload destination [ci skip] 2020-08-07 22:43:45 +10:00
Andrew Murray
f7b53e1ac0 Tag the update commit and push the tag [ci skip] 2020-08-07 22:43:45 +10:00
Andrew Murray
d478f8bcd3
Merge pull request #156 from hugovk/github-releases
Upload wheels to GitHub Releases
2020-08-07 22:43:09 +10:00
Hugo van Kemenade
6690682127
Use variable
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-08-07 14:25:53 +03:00
Hugo
acf191200f Only build latest when tag is blank 2020-07-07 18:03:17 +03:00
Hugo
fc2896f3e2 Upload wheels to GitHub Releases on tags 2020-07-07 18:03:04 +03:00
Andrew Murray
46d3c35734
Merge pull request #155 from hugovk/rm-3.5
Drop Python 3.5
2020-07-07 18:05:54 +10:00
Hugo
6bacbd3706 Drop Python 3.5 2020-06-30 18:18:07 +03:00
Andrew Murray
48d539b9dd Pillow -> 7.2.0 2020-06-30 18:01:37 +10:00
Andrew Murray
cb8441b98a
Merge pull request #147 from mattip/more-wheels
Add aarch64 wheels
2020-06-29 12:33:45 +10:00
Andrew Murray
9dc3415523 Added Python 3.5 aarch64 jobs 2020-06-29 09:41:53 +10:00
Andrew Murray
b41d1f3925 Added LATEST versions of aarch64 jobs 2020-06-28 18:59:15 +10:00
Andrew Murray
639793e150 Workaround problems with cmake and xz on manylinux2014 2020-06-28 17:37:38 +10:00
mattip
c7991158b6 update multibuild, add more wheels 2020-06-28 17:37:35 +10:00
Andrew Murray
3f94666e0e
Merge pull request #154 from radarhere/macos_pypy
Added macOS PyPy
2020-06-28 17:09:17 +10:00
Andrew Murray
505e915516 Install NumPy with OpenBLAS on macOS 2020-06-28 14:57:57 +10:00
Andrew Murray
f995a9ec28 Added macOS PyPy 2020-06-28 14:57:13 +10:00
Hugo van Kemenade
340c5424b2
Merge pull request #153 from radarhere/linux_pypy
Added Linux PyPy
2020-06-27 08:56:21 +03:00
Andrew Murray
57aa99b962 Added Linux PyPy 2020-06-27 09:13:53 +10:00
Hugo van Kemenade
1f33c25576
Merge pull request #152 from radarhere/lcms2
Updated lcms2 to 2.11
2020-06-17 07:45:19 +03:00
Andrew Murray
b7cf57a8f4 Updated lcms2 to 2.11 2020-06-17 07:47:16 +10:00
Hugo van Kemenade
b8d0a485f2
Merge pull request #151 from radarhere/xcb
Compile libxcb on Linux
2020-06-15 08:47:40 +03:00
Andrew Murray
c3c35d059b Compile libxcb on Linux 2020-06-09 21:09:57 +10:00
Hugo van Kemenade
1623504957
Merge pull request #150 from radarhere/features
Test features
2020-06-08 17:17:40 +03:00
Andrew Murray
e0e6f20cc6 Test features 2020-06-08 19:35:35 +10:00
Hugo van Kemenade
3946cb73a9
Merge pull request #149 from radarhere/xcb
Compile libxcb on macOS
2020-06-07 22:01:02 +03:00
Andrew Murray
e102388915 Compile libxcb on macOS 2020-06-07 20:31:05 +10:00
Hugo van Kemenade
88db58ff92
Merge pull request #148 from radarhere/lcms2
Updated lcms2 to 2.10
2020-06-01 06:56:33 +03:00
Andrew Murray
aa102f7959 Updated lcms2 to 2.10 2020-06-01 09:39:01 +10:00
Hugo van Kemenade
801e35c8f3
Merge pull request #145 from radarhere/freetype 2020-05-09 14:43:12 +03:00
Andrew Murray
21290bff86 Updated Freetype to 2.10.2 2020-05-09 19:23:42 +10:00
Hugo van Kemenade
7e0cd89d20
Merge pull request #144 from radarhere/multibuild_update
Updated multibuild to use packaging instead of pip.pep425tags
2020-05-02 09:58:38 +03:00
Andrew Murray
b8c0219c0e Updated multibuild to use packaging instead of pip.pep425tags 2020-05-02 12:21:40 +10:00
Hugo van Kemenade
80148e6170
Merge pull request #143 from radarhere/os_x 2020-04-25 20:55:18 +03:00
Andrew Murray
5c3691fd11 Changed comments to refer to "OS X" 2020-04-25 21:51:55 +10:00
Hugo
250282f980 Pillow -> 7.1.2 2020-04-25 13:15:26 +03:00
Hugo
c03aa7d5ad Pillow -> 7.1.1 2020-04-02 16:56:01 +03:00
Hugo
178d6003aa Pillow -> 7.2.0 2020-04-01 13:32:17 +03:00
Hugo van Kemenade
74e3ce08ba
Merge pull request #141 from radarhere/xz
Updated xz to 5.2.5
2020-03-20 09:17:23 +02:00
Andrew Murray
443097d086 Updated xz to 5.2.5 2020-03-20 06:15:33 +11:00
Andrew Murray
86dbcc6ab8
Merge pull request #142 from hugovk/fix-config
Fix Travis CI config
2020-03-20 06:13:55 +11:00
Hugo van Kemenade
55d3b8f5bd
Merge pull request #2 from radarhere/fix-config
Move osx_image into the individual jobs
2020-03-19 12:46:52 +02:00
Andrew Murray
8a8ba9da1e Move osx_image into the individual jobs 2020-03-19 20:24:29 +11:00
Hugo
0c6f7ffc20 Update comment per https://changelog.travis-ci.com/the-default-python-version-for-your-builds-is-now-3-6-97935 2020-03-18 23:06:32 +02:00
Hugo
56cd6da3b7 Remove exclusion to fix matrix 2020-03-18 22:59:10 +02:00
Hugo
aff805800f Replace 'matrix' alias with 'jobs' to remove validator warning 2020-03-18 11:09:30 +02:00
Hugo van Kemenade
0221aa02e8
Merge pull request #140 from radarhere/rackcdn
Do not download dev wheels
2020-02-15 07:08:26 +02:00
Andrew Murray
904bfc0acb Do not download dev wheels [ci skip] 2020-02-15 13:09:32 +11:00
Hugo van Kemenade
1a08f4f083
Removed customisation of bzip2 build (#139)
Removed customisation of bzip2 build
2020-01-25 17:59:07 +02:00
Andrew Murray
e3a867d9d3 Removed customisation of bzip2 build 2020-01-26 00:50:56 +11:00
Hugo van Kemenade
df0b6771c6
Merge pull request #138 from radarhere/pip
Updated multibuild for pip
2020-01-25 09:01:46 +02:00
Andrew Murray
6538fde4d8 Updated multibuild for pip 2020-01-25 08:56:14 +11:00
Hugo van Kemenade
7da22badf7
Merge pull request #137 from radarhere/jpeg
Updated libjpeg to 9d
2020-01-12 16:44:35 +02:00
Andrew Murray
1728873e8d Updated libjpeg to 9d 2020-01-12 22:40:06 +11:00
Hugo van Kemenade
e33ee98759
Updated libwebp to 1.1.0 (#136)
Updated libwebp to 1.1.0
2020-01-07 15:23:31 +02:00
Andrew Murray
de3d58c8d8 Updated libwebp to 1.1.0 2020-01-07 19:18:56 +11:00
Hugo van Kemenade
2ec2b41610
Merge pull request #135 from radarhere/python2
Removed Python 2 jobs
2020-01-03 23:40:26 +02:00
Andrew Murray
f07ed53a65 Removed Python 2 jobs 2020-01-02 19:48:48 +11:00
Andrew Murray
d2432ae71a Pillow -> 7.0.0 2020-01-02 19:24:04 +11:00
Andrew Murray
237f0c77ab Pillow -> 6.2.2 2020-01-02 16:28:11 +11:00
Andrew Murray
d94e0ef67f
Merge pull request #134 from radarhere/xcode93
Changed Travis osx_image to 9.3
2019-12-27 11:57:06 +11:00
Andrew Murray
91b8de0aa8 Changed Travis osx_image to 9.3 2019-12-24 16:43:26 +11:00
Andrew Murray
2c58724c09
Merge pull request #132 from radarhere/python2stable
Restored Python 2.7 for stable Pillow
2019-12-20 06:25:37 +11:00
Andrew Murray
ce10c35683 Restored Python 2.7 for stable Pillow 2019-12-19 20:01:45 +11:00
Andrew Murray
fe2ef79538
Merge pull request #131 from radarhere/bzip2
Updated bzip2 to 1.0.8 for Linux
2019-12-08 13:06:00 +11:00
Andrew Murray
41dc59c80a Updated bzip2 to 1.0.8 for Linux 2019-12-08 00:02:47 +11:00
Hugo van Kemenade
9fce839682
Merge pull request #130 from radarhere/multibuild
Updated multibuild
2019-12-01 09:57:42 +02:00
Andrew Murray
46fc0f9055 Revert to using defaults, now updated in multibuild 2019-12-01 13:43:13 +11:00
Andrew Murray
792652ac16 Updated multibuild 2019-12-01 07:38:28 +11:00
Andrew Murray
a414cd7729
Merge pull request #126 from radarhere/python
Removed Python 2 jobs
2019-11-16 13:20:45 +11:00
Hugo van Kemenade
3b53cd12e4
Merge pull request #129 from radarhere/libtiff
Updated libtiff to 4.1.0
2019-11-07 21:49:09 +02:00
Andrew Murray
452f46e08a Updated libtiff to 4.1.0 2019-11-04 19:06:16 +11:00
Andrew Murray
b294ec19cf Removed Python 2 jobs 2019-10-23 05:52:45 +11:00
Hugo van Kemenade
8fe9647c7e
Fixed updating to latest from non-master branch (#128)
Fixed updating to latest from non-master branch
2019-10-22 16:50:27 +03:00
Andrew Murray
5c2d69c051 Fixed updating to latest from non-master branch 2019-10-22 20:39:06 +11:00
Hugo
9e7dcea739 Pillow -> 6.2.1 2019-10-21 10:46:27 +03:00
Hugo van Kemenade
b73a9b96a1
Added Python 3.8 (#127)
Added Python 3.8
2019-10-18 15:48:01 +03:00
Andrew Murray
e85bf2e27d Updated multibuild for Python 3.8 2019-10-18 20:47:50 +11:00
Andrew Murray
a28475890a Added Python 3.8 2019-10-18 20:47:40 +11:00
Andrew Murray
c669adc931 Pillow -> 6.2.0 2019-10-01 19:44:05 +10:00
Hugo van Kemenade
9d8a92cb42
Merge pull request #125 from radarhere/webp
Include both multibuild and libwebp default CFLAGS
2019-09-02 22:19:30 +03:00
Andrew Murray
ab91b30687 Include both multibuild and libwebp default CFLAGS 2019-09-02 22:13:42 +10:00
Andrew Murray
2193b83dfb
Merge pull request #124 from radarhere/freetype
Updated freetype to 2.10.1
2019-09-02 20:25:27 +10:00
Andrew Murray
6a3642705e Updated Pillow to include #3936 2019-07-25 06:41:23 +10:00
Andrew Murray
3af2baec08 Updated freetype to 2.10.1 2019-07-25 06:41:23 +10:00
Hugo van Kemenade
d5f36a1544
Merge pull request #123 from radarhere/latest_jobs
Also test latest Pillow
2019-07-24 21:48:02 +03:00
Hugo van Kemenade
03b39e72f6
Updated libwebp to 1.0.3 (#122)
Updated libwebp to 1.0.3
2019-07-23 15:08:52 +03:00
Andrew Murray
4967a81a98 Also test latest Pillow 2019-07-22 22:57:52 +10:00
Andrew Murray
3ea323bfe0 Updated libwebp to 1.0.3 2019-07-13 21:39:47 +10:00
Hugo
ef82570c43 Pillow -> 6.1.0 2019-07-02 22:34:57 +03:00
Hugo
cf6abe589a Pillow -> 6.1.0 2019-07-01 18:51:54 +03:00
Hugo
43fc6642e3 Pillow -> 6.1.0 2019-07-01 15:27:25 +03:00
Andrew Murray
620d602939
Merge pull request #120 from radarhere/selftest
Added selftest
2019-06-26 19:58:49 +10:00
Hugo
8068a2a38f
Merge pull request #121 from radarhere/openjpeg
Removed custom macOS openjpeg command
2019-06-04 00:07:22 +03:00
Andrew Murray
8c6fa93d5f Removed custom macOS openjpeg command 2019-06-03 20:36:43 +10:00
Hugo
1ddbcca33c
Include both multibuild and jpeg default CFLAGS (#117)
Include both multibuild and jpeg default CFLAGS
2019-05-13 09:45:49 +03:00
Andrew Murray
af15efe90f Added selftest 2019-05-13 06:03:56 +10:00
Hugo
caec8e4810
Merge pull request #119 from radarhere/libpng
Updated libpng to 1.6.37
2019-04-19 22:09:50 +03:00
Andrew Murray
332321acf3 Updated libpng to 1.6.37 2019-04-16 20:00:11 +10:00
Hugo
6b2149a551
Merge pull request #118 from radarhere/openjpeg
Updated openjpeg to 2.3.1
2019-04-16 10:11:17 +03:00
Andrew Murray
4baf0984c2 Include both multibuild and jpeg default CFLAGS 2019-04-08 19:07:51 +10:00
Andrew Murray
5bc530fb17 Updated openjpeg to 2.3.1 2019-04-03 15:55:58 +11:00
Hugo
29eb12afc9
Merge pull request #116 from radarhere/freetype
Updated freetype to 2.10.0
2019-04-03 07:55:06 +03:00
Andrew Murray
59962e9db7 Updated freetype to 2.10.0 2019-04-03 11:57:53 +11:00
Andrew Murray
85bc55a345
Merge pull request #115 from hugovk/rm-trusty
Use Xenial as CI base rather than EOL Trusty
2019-04-03 11:56:49 +11:00
Hugo
895832ebda Use Xenial as base rather than EOL Trusty 2019-04-02 11:30:03 +03:00
Andrew Murray
68d79c4c5b Pillow -> 6.0.0 2019-04-02 11:11:09 +11:00
Andrew Murray
0070db36ee
Merge pull request #112 from python-pillow/bash-script
Add script to update Pillow
2019-03-03 12:53:15 +11:00
Hugo
45b98477e5
Merge pull request #113 from hugovk/rm-3.4
Drop support for EOL Python 3.4
2019-01-26 18:48:04 +02:00
Hugo
3ac8fd88ac
Merge pull request #114 from radarhere/libwebp
Updated libwebp to 1.0.2
2019-01-24 13:22:45 +02:00
Andrew Murray
4a0494bfd3 Updated libwebp to 1.0.2 2019-01-19 22:50:33 +11:00
Hugo
bd8cc80411 Group macOS builds in pairs for speed 2019-01-15 21:54:14 +02:00
Hugo
b6e526ac6e Drop support for EOL Python 3.4 2019-01-15 20:49:06 +02:00
Hugo
74b5a25e11 Fix typos 2019-01-06 17:20:03 +02:00
Hugo
917cf31c59 Add script to update Pillow 2019-01-06 17:19:03 +02:00
Hugo
cce90c3bb3 Pillow -> 5.4.1 2019-01-06 14:21:04 +02:00
Hugo
21e232d678 Pillow -> 5.4.1 2019-01-06 14:10:18 +02:00
Hugo
ae16835a39 Pillow -> 5.4.0 2019-01-01 14:02:50 +02:00
Hugo
9ce952ec95
Merge pull request #111 from radarhere/badge
Changed badge image branch to master
2018-12-21 09:20:40 +02:00
Andrew Murray
458ac746c0 Changed badge image branch to master 2018-12-21 17:02:24 +11:00
Hugo
97542c388c
Merge pull request #110 from radarhere/scipy
Removed scipy as test dependency
2018-12-20 16:06:17 +02:00
Andrew Murray
9af4e84262 Removed scipy as test dependency 2018-12-20 20:46:53 +11:00
Hugo
6774ffc930
Merge pull request #107 from radarhere/libwebp
Updated libwebp to 1.0.1
2018-12-09 15:01:58 +02:00
Hugo
c907c256b7
Merge pull request #106 from radarhere/libtiff
Updated libtiff to 4.0.10
2018-12-09 15:01:45 +02:00
Hugo
95d984169d
Merge pull request #104 from radarhere/xcode_94
Updated travis osx_image to 9.4
2018-12-09 14:57:15 +02:00
Hugo
6a50b24120
Merge pull request #109 from radarhere/libpng
Updated libpng to 1.6.36
2018-12-04 16:13:31 +02:00
Andrew Murray
836f827039 Updated libpng to 1.6.36 2018-12-02 20:40:53 +11:00
Hugo
92819f477b
Merge pull request #108 from python-pillow/rm-sudo
'sudo: required' no longer required
2018-11-26 09:34:22 +02:00
Hugo
8cb0256744
'sudo: required' no longer needed
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2018-11-20 12:40:11 +02:00
Andrew Murray
0348bf8821 Updated libwebp to 1.0.1 2018-11-17 19:53:47 +11:00
Andrew Murray
af02f8ea7e Updated libtiff to 4.0.10 2018-11-11 15:40:33 +11:00
Andrew Murray
9f2c20cd66 Updated travis osx_image to 9.4 2018-10-26 21:14:52 +11:00
Hugo
5008a37c0e
Merge pull request #105 from radarhere/wheel
Removed pinning of wheel
2018-10-15 13:33:19 +03:00
Andrew Murray
4eaf8df4c9 Removed pinning of wheel 2018-10-15 19:57:18 +11:00
Andrew Murray
f9a031d1b3 Updated multibuild 2018-10-15 19:56:50 +11:00
Hugo
6958dc8062
Merge pull request #103 from radarhere/wheel
Revert "Resolved auditwheel error by further pinning of wheel to 0.31.1"
2018-10-06 09:04:15 +03:00
Andrew Murray
2ec4beecca Revert "Resolved auditwheel error by further pinning of wheel to 0.31.1"
This reverts commit d30584a21e.
2018-10-06 08:03:30 +10:00
Andrew Murray
d5435c9a73 Pillow -> 5.3.0 2018-10-01 17:19:04 +10:00
Andrew Murray
58e29c2679
Merge pull request #102 from radarhere/wheel
Resolved auditwheel error by further pinning of wheel to 0.31.1
2018-10-01 17:10:03 +10:00
Andrew Murray
d30584a21e Resolved auditwheel error by further pinning of wheel to 0.31.1 2018-10-01 14:30:31 +10:00
Hugo
8f59e6dc5d
Merge pull request #100 from hugovk/pin-wheel
Pin wheel to 0.31.1 to work around API break in 0.32.0
2018-09-30 22:30:54 +03:00
Hugo
0a4aef4e47
Merge pull request #1 from radarhere/pin-wheel
Added custom before_install to temporarily pin wheel to 0.31.1
2018-09-30 16:26:19 +03:00
Andrew Murray
80be691d23 Added custom before_install to temporarily pin wheel to 0.31.1 2018-09-30 22:28:07 +10:00
Hugo
ef47f46ed4 Pin wheel to 0.31.1 to work around API break in 0.32.0 2018-09-29 22:33:30 +03:00
Hugo
9c5255dbe9
Merge pull request #99 from radarhere/multibuild
Updated multibuild
2018-09-25 07:41:53 +03:00
Andrew Murray
0e0c580212 Updated multibuild 2018-09-25 06:08:38 +10:00
Hugo
5e6f41155a
Merge pull request #98 from radarhere/dependencies
Update dependencies
2018-09-16 12:11:52 +03:00
Andrew Murray
efa9d7a054 Updated giflib and xz versions from defaults 2018-09-16 12:12:25 +10:00
Hugo
c6144b9e73
Merge pull request #95 from radarhere/shell
Changed shell commands to better match main repository
2018-08-30 12:38:09 +03:00
Andrew Murray
e13bd99de0 Changed shell commands to better match main repository [ci skip] 2018-08-30 19:31:58 +10:00
Hugo
8c9964516a
Merge pull request #94 from radarhere/shell
Improved shell commands
2018-08-29 13:43:35 +03:00
Andrew Murray
2610e58127 Improved shell commands [ci skip] 2018-08-29 20:38:25 +10:00
Hugo
69082c42a1
Merge pull request #93 from radarhere/multibuild
Updated multibuild
2018-08-11 11:23:11 +03:00
Andrew Murray
b2edad8580 Updated multibuild 2018-08-11 17:18:06 +10:00
Hugo
5b306a3741
Merge pull request #92 from radarhere/freetype
Simplified custom freetype build
2018-08-04 09:30:37 +03:00
Andrew Murray
8ec785099a Simplified custom freetype build 2018-08-04 11:18:39 +10:00
Hugo
26ac843d02
Merge pull request #91 from radarhere/libpng
Updated libpng to 1.6.35
2018-07-17 06:20:41 +03:00
Andrew Murray
7fc90037ba Updated libpng to 1.6.35 2018-07-16 20:07:54 +10:00
Hugo
3620b938aa
Merge pull request #89 from radarhere/depends
Replace archives directory with pillow-depends
2018-07-03 22:14:10 +03:00
Andrew Murray
38f5b4c932 Replaced archives directory with pillow-depends 2018-07-03 19:41:06 +10:00
Hugo
4affc7fe0d
Merge pull request #90 from hugovk/update-multibuild
Add Python 3.7
2018-07-02 23:53:37 +03:00
Hugo
13f11ae98c Pillow -> 5.2.0 2018-07-01 23:22:28 +03:00
Jason R. Coombs
4fe6dbee79 Add Python 3.7 to the travis builds. Ref python-pillow/Pillow#3074 2018-06-28 21:55:27 +03:00
Hugo
c3838408c8 Update multibuild for Python 3.7 2018-06-28 21:50:09 +03:00
Hugo
f25673ee56
Merge pull request #88 from radarhere/libjpeg
Updated libjpeg to 9c
2018-05-18 15:22:37 +03:00
Andrew Murray
d6bb3fb4d8 Updated libjpeg to 9c 2018-05-18 21:40:20 +10:00
Hugo
c9e5be1d9d
Merge pull request #81 from radarhere/libpng1632
Updated libpng to 1.6.32
2018-05-10 17:48:46 +03:00
Hugo
df03a2425a
Merge pull request #82 from radarhere/pkg-config-remove
Removed pkg-config
2018-05-09 23:05:07 +03:00
Hugo
93c9c81fd4
Merge branch 'master' into libpng1632 2018-05-09 23:02:47 +03:00
Hugo
ca08f11425
Merge pull request #87 from radarhere/freetype
Update freetype to 2.9.1
2018-05-09 23:00:31 +03:00
Andrew Murray
44b77b2f28 Updated freetype to 2.9.1 2018-05-02 21:18:43 +10:00
Hugo
827e7307af
Merge pull request #84 from python-pillow/revert_xcode_version
Build on Xcode 6.4
2018-04-25 14:39:12 +03:00
Hugo
a943c4280a
Merge pull request #85 from radarhere/libwebp
Updated libwebp to 1.0.0
2018-04-22 07:56:39 +03:00
Andrew Murray
29bb2dde80 Updated multibuild 2018-04-21 20:57:46 +10:00
Andrew Murray
d922640332 Updated libwebp to 1.0.0 2018-04-21 20:57:34 +10:00
wiredfool
461f823f0c attempt to build on xcode 6.4 2018-04-04 08:06:29 +01:00
Eric Soroos
2e5ff5c0c2 Changes bump 2018-04-02 18:42:18 +00:00
Andrew Murray
e403b3d31c Removed pkg-config 2018-04-02 20:38:53 +10:00
Andrew Murray
e89934e3e2 Updated libpng to 1.6.32 2018-04-02 20:38:30 +10:00
Eric Soroos
1cab7ad46c 5.1.0 version bump 2018-04-02 10:25:19 +00:00
Eric Soroos
befa5b608b Merge branch 'freetype' of https://github.com/radarhere/pillow-wheels into radarhere-freetype 2018-04-02 10:14:56 +00:00
wiredfool
1607738583
Merge pull request #79 from radarhere/multibuild-xcode92
Updated multibuild, updated travis osx_image to 9.2
2018-04-02 11:04:16 +01:00
Eric Soroos
64468284c6 Pre version 5.1.0 bump 2018-04-02 09:10:46 +00:00
Andrew Murray
43ac85b5ec Updated travis osx_image to 9.2 2018-03-29 08:53:45 +11:00
Andrew Murray
3211bb7cc3 Updated multibuild 2018-03-11 23:42:04 +11:00
Andrew Murray
b5f140a0b7 Updated freetype to 2.9 2018-01-27 17:50:50 +11:00
wiredfool
31f13e7058 5.0.0 version bump 2018-01-01 15:04:54 +00:00
wiredfool
130aa42008 Pre 5.0.0 version bump 2018-01-01 14:49:58 +00:00
Hugo
263e9766dd
Merge pull request #74 from radarhere/xcode
Updated travis osx_image to 8
2017-12-30 12:02:09 +02:00
Andrew Murray
1ea60ed28f Updated travis osx_image to 8 2017-12-30 19:14:28 +11:00
wiredfool
1407af2c6d
Merge pull request #73 from python-pillow/pytest
Run tests with pytest
2017-12-29 22:04:24 +00:00
wiredfool
6b1f4d8c70 added src-reorg + pytest 2017-12-28 12:26:20 +00:00
wiredfool
7be01dbdb2 Remove python 3.3 wheel 2017-12-27 19:24:36 +00:00
wiredfool
c2f1d238f8 Updated TEST_DEPENDS 2017-12-27 18:58:58 +00:00
wiredfool
d7580ad556 Run tests with pytest 2017-12-27 14:43:53 +00:00
Hugo
000abe88d6
Merge pull request #72 from radarhere/webp
Updated libwebp to 0.6.1
2017-11-30 10:55:19 +02:00
Hugo
c39c9ca88a
Merge branch 'master' into webp 2017-11-30 08:13:39 +02:00
Hugo
ccc75c85ca
Merge branch 'master' into webp 2017-11-30 08:12:47 +02:00
Hugo
0b660f34cd
Merge pull request #71 from radarhere/lcms
Updated lcms2 to 2.9
2017-11-30 08:07:10 +02:00
Andrew Murray
a33aa140cd Updated libwebp to 0.6.1 2017-11-29 19:59:45 +11:00
Andrew Murray
bf18afaca2 Updated lcms2 to 2.9 2017-11-27 19:38:28 +11:00
Hugo
c8f643952b
Merge pull request #70 from radarhere/tiff
Updated libtiff to 4.0.9
2017-11-19 21:56:47 +02:00
Hugo
7a3ecbec07
Merge pull request #69 from radarhere/pkg-config
Updated pkg-config to 0.29.2
2017-11-19 21:45:48 +02:00
Andrew Murray
33d6437ff9 Updated libtiff to 4.0.9 2017-11-20 06:11:25 +11:00
Andrew Murray
a23e56004f Updated pkg-config to 0.29.2 2017-11-10 08:30:00 +11:00
Hugo
2e3c2781e6
Merge pull request #68 from radarhere/pillow
Update Pillow to fix failing test_high_characters test
2017-11-07 14:59:29 +02:00
Andrew Murray
d45433c714 Updated Pillow to fix failing test_high_characters test 2017-11-07 20:10:22 +11:00
Hugo
f28236f002 Merge pull request #66 from radarhere/patch-1
Removed setting of Linux-specific Freetype version
2017-10-14 13:47:52 +03:00
Andrew Murray
f4ebd0428d Removed setting of Linux-specific Freetype version 2017-10-14 19:28:13 +11:00
Hugo
3cac238404 Merge pull request #64 from python-pillow/reorder
Rearrange OSX builds due to 2 at a time limit
2017-10-05 08:18:55 +03:00
Matthew Brett
de723d81d2 Merge pull request #65 from python-pillow/update-readme
README: Not only OS X wheel builder
2017-10-04 12:32:59 +01:00
Hugo
92d52a284e Update badge label
[CI skip]
2017-10-04 14:19:07 +03:00
Hugo
a46925145a Not only OS X wheel builder
Does Linux too

[CI skip]
2017-10-04 14:17:07 +03:00
wiredfool
a15191b53a typo [ci skip] 2017-10-02 16:24:45 +01:00
wiredfool
23662514f2 Updated cdn url [ci skip] 2017-10-02 16:24:15 +01:00
Eric Soroos
7ea166d054 Rearrange OSX builds due to 2 at a time limit 2017-10-02 14:16:09 +00:00
Eric Soroos
a29f919231 Pillow 4.3.0 Version Bump 2017-10-02 12:25:41 +00:00
Eric Soroos
d506febaf6 Pillow 4.3.0-pre version bump 2017-10-02 10:09:27 +00:00
Hugo
40bbb750ab Merge pull request #62 from radarhere/freetype
Updated freetype to 2.8.1
2017-09-29 17:06:57 +03:00
Andrew Murray
d9c520ba26 Updated freetype to 2.8.1 2017-09-17 11:48:32 +10:00
wiredfool
c7389c03a3 Merge pull request #61 from radarhere/multibuild
Update to latest multibuild
2017-09-09 13:59:30 +01:00
Andrew Murray
7b51d287a7 Update to latest multibuild 2017-08-27 15:44:34 +10:00
wiredfool
fd08ec4e0d 4.2.1 Version Bump 2017-07-06 07:29:19 -07:00
wiredfool
e3d1bb6ff8 4.2.0 version bump 2017-07-01 05:48:40 -07:00
wiredfool
b726c403fa Preflight for 4.2.0 2017-07-01 03:19:42 -07:00
Hugo
02bec5920f Merge pull request #60 from radarhere/tiff
Updated libtiff to 4.0.8
2017-05-22 15:07:03 +03:00
Andrew Murray
0062c438fb Updated libtiff to 4.0.8 2017-05-22 19:37:43 +10:00
Hugo
931c0b2b78 Merge pull request #59 from radarhere/freetype
Update FreeType to 2.8
2017-05-18 14:04:26 +03:00
Andrew Murray
2f4eb06acc Updated freetype to 2.8 2017-05-18 19:00:34 +10:00
wiredfool
39fcc3f90c 4.1.1 version tagged 2017-04-28 08:45:28 -07:00
wiredfool
e321778aa1 Provisional 4.1.1 version bump 2017-04-20 04:55:14 -07:00
wiredfool
b0c0e14b04 4.1.0 Version Bump 2017-04-04 11:16:40 -07:00
wiredfool
d07af7aad1 4.1.0 preflight w/version 2017-04-03 15:50:01 -07:00
wiredfool
067a1fc936 4.1.0 Preflight 2017-04-03 15:39:03 -07:00
wiredfool
5b2fac71ef Pre 4.1.0 trial run 2017-04-03 13:43:51 -07:00
Hugo
7845c1f17c Merge pull request #57 from radarhere/zlib
Removed zlib 1.2.10
2017-03-25 17:33:19 +02:00
Andrew Murray
36122c27f9 Removed zlib 1.2.10 2017-03-25 22:35:21 +11:00
Hugo
e63dcb5c6d Merge pull request #56 from radarhere/zlib
Update zlib to 1.2.11
2017-03-25 10:13:35 +02:00
Andrew Murray
91bb298967 Updated zlib to 1.2.11 2017-03-24 22:27:43 +11:00
Hugo
c805370ec9 Merge pull request #55 from radarhere/libwebp
Updated libwebp to 0.6.0
2017-03-24 13:19:58 +02:00
Hugo
82dcb819c1 Merge pull request #54 from radarhere/zlib
Updated zlib to 1.2.10
2017-03-24 13:19:35 +02:00
Hugo
11d1156a20 Merge pull request #53 from radarhere/freetype
Updated freetype to 2.7.1
2017-03-24 13:19:14 +02:00
Andrew Murray
eb39a6fd60 Updated libwebp to 0.6.0 2017-02-09 19:23:19 +11:00
Andrew Murray
f6bb4764aa Updated zlib to 1.2.10 2017-01-04 11:49:46 +11:00
wiredfool
ada0fe449a Typo version bump 2017-01-02 03:51:35 -08:00
Andrew Murray
1c706dbb02 Updated freetype to 2.7.1 2017-01-02 14:27:46 +11:00
wiredfool
43dfc9f0ac Merge pull request #52 from python-pillow/revert-48-libpng
Revert "Updated libpng to 1.6.26"
2017-01-01 23:32:59 +00:00
wiredfool
04c12e60a2 Revert "Updated libpng to 1.6.26" 2017-01-01 22:01:12 +00:00
wiredfool
8546e381c7 Merge pull request #48 from radarhere/libpng
Updated libpng to 1.6.26
2017-01-01 20:30:18 +00:00
wiredfool
314e715925 Merge branch 'master' into libpng 2017-01-01 20:30:06 +00:00
wiredfool
4bdded90a6 Merge pull request #49 from radarhere/tiff
Updated libtiff to 4.0.7
2017-01-01 20:29:05 +00:00
wiredfool
a2f7b811cb Merge pull request #50 from radarhere/webp
Updated libwebp to 0.5.2
2017-01-01 20:27:18 +00:00
wiredfool
14bbcd58df Merge pull request #51 from matthew-brett/py36-build
NF: add Python 3.6 build to matrix
2017-01-01 20:26:24 +00:00
wiredfool
412920aa19 4.0.0 build 2017-01-01 20:25:12 +00:00
Matthew Brett
be63871248 Update to latest multibuild 2017-01-01 18:12:12 +00:00
Matthew Brett
e83989165a Update to latest zlib version 2017-01-01 17:51:51 +00:00
Matthew Brett
e88f28aa44 Update zlib version for build
zlib does not appear to keep its old archives.
2017-01-01 16:41:07 +00:00
Matthew Brett
b85e3d13ae Try reverting to previous multibuild 2017-01-01 16:02:41 +00:00
Matthew Brett
2e5ac3af75 Add Linux builds for Python 3.6 2017-01-01 15:20:13 +00:00
Matthew Brett
4af81bebaa NF: add Python 3.6 build to matrix 2016-12-30 09:52:06 +00:00
Andrew Murray
761b67de46 Updated libwebp to 0.5.2 2016-12-22 19:47:33 +11:00
Andrew Murray
073a499837 Updated libtiff to 4.0.7 2016-11-23 21:29:12 +11:00
Andrew Murray
92f1c5763d Updated libpng to 1.6.26 2016-10-24 19:04:55 +11:00
wiredfool
41b131e7df 3.4.2 build 2016-10-18 12:15:16 -07:00
wiredfool
199a400fee Merge pull request #46 from matthew-brett/ensure-xcode-64
BF: work round Xcode OSX image change
2016-10-04 19:10:27 +01:00
Matthew Brett
b916f43404 BF: work round Xcode OSX image change
XCode image causing odd bug in bash scripting in OSX:

https://github.com/python-pillow/pillow-wheels/issues/45
2016-10-04 11:02:50 -07:00
wiredfool
cfb9e3f41d 3.4.1 build 2016-10-04 07:19:00 -07:00
wiredfool
8c31fc3b4d 3.3.x test build 2016-10-04 06:40:52 -07:00
wiredfool
ca52264343 3.4.0 build 2016-10-03 08:11:43 -07:00
Alex Clark
37c261b627 Merge pull request #42 from radarhere/libpng
Updated libpng to 1.6.25
2016-09-23 07:32:49 -04:00
Andrew Murray
8e4969de19 Updated libpng to 1.6.25 2016-09-23 20:52:04 +10:00
Alex Clark
187261df53 Merge pull request #43 from radarhere/lcms2
Updated lcms2 to 2.8
2016-09-23 06:49:23 -04:00
Alex Clark
1c094a9c0a Merge pull request #40 from radarhere/freetype
Updated freetype to 2.6.5
2016-09-23 06:48:59 -04:00
Andrew Murray
9e56a2158d Updated freetype to 2.6.5 2016-09-17 17:18:30 +10:00
Andrew Murray
b94d323776 Updated lcms2 to 2.8 2016-08-22 21:53:08 +10:00
wiredfool
f10c0d9eb9 Update .travis.yml 2016-08-18 15:05:45 +01:00
wiredfool
ec44ed09b1 Pillow 3.3.1 2016-08-18 05:56:30 -07:00
Hugo
5642b5cf7a Merge pull request #41 from matthew-brett/recheck-multibuild
MRG: refactor OS X build to same system as Linux
2016-08-03 11:47:18 +03:00
Matthew Brett
e6eea5470a DOC: README to discourage additions to archives
Can usually get away with not downloading archives to the `archives`
directory.
2016-08-02 16:31:09 -07:00
Matthew Brett
a0ed8d5e41 Fix numpy / scipy version for Python 3.3
Set numpy / scipy versions for Python 3.3 build - these aren't on pypi
for the latest versions.
2016-08-02 16:31:09 -07:00
Matthew Brett
754b609628 RF: switch to using multibuild for OSX
Update to latest multibuild

Remove terryfy submodule.

Adapt config.sh to do OSX-specifics for build.

Add tests for installed codecs and modules.
2016-08-02 16:31:04 -07:00
Alex Clark
2ee6f328f8 Merge pull request #39 from radarhere/webp
Updated libwebp to 0.5.1
2016-07-15 06:47:56 -04:00
Andrew Murray
1d2da77055 Updated libwebp to 0.5.1 2016-07-15 19:53:25 +10:00
Alex Clark
4485eb1384 Merge pull request #38 from radarhere/freetype
Updated freetype to 2.6.4
2016-07-09 09:02:23 -04:00
Andrew Murray
56a737cb56 Updated freetype to 2.6.4 2016-07-09 11:09:52 +10:00
wiredfool
10c33dfab9 3.3.0 build 2016-07-01 06:12:28 -07:00
wiredfool
cce7ad8c00 Merge pull request #36 from matthew-brett/refactor-to-multibuild
MRG: refactored repo to build manylinux1 wheels
2016-06-30 18:50:47 +01:00
Matthew Brett
748d79e870 Remove allow_failures for 32-bit builds
32-bit builds should now pass.
2016-06-30 15:45:21 +01:00
Matthew Brett
6393558b83 Add back openjpg for OSX 2016-06-30 13:56:27 +01:00
Matthew Brett
0a04054fa3 Try building with newest multibuild
Allow 32-bit test failures.
2016-06-30 13:53:53 +01:00
Matthew Brett
f059578472 Disable openjpg for OSX - tests hang 2016-06-20 19:01:36 -07:00
Matthew Brett
c45c451417 Build master branch 2016-06-20 18:46:48 -07:00
Matthew Brett
3f83efb103 Update to latest multibuild 2016-06-20 18:46:34 -07:00
Matthew Brett
c4480401cc Add numpy and scipy test dependencies 2016-06-20 17:57:56 -07:00
Matthew Brett
506bf31ff7 Fix openjpg build 2016-06-20 17:51:04 -07:00
Matthew Brett
2f97ef0898 Refactor to multibuild framework 2016-06-20 16:19:47 -07:00
Alex Clark
f03bea18af Merge pull request #35 from radarhere/patch-1
Removed trailing space
2016-06-17 18:38:41 -04:00
Andrew Murray
a718e9f7f1 Removed trailing space 2016-06-17 20:44:35 +10:00
Alex Clark
3aec7dc986 Merge pull request #34 from radarhere/libpng
Updated libpng to 1.6.23
2016-06-16 10:36:05 -04:00
Andrew Murray
0b6a25df2c Updated libpng to 1.6.23 2016-06-16 23:56:00 +10:00
Alex Clark
e9733c2349 Merge pull request #33 from radarhere/libpng
Updated libpng to 1.6.22
2016-06-05 08:07:32 -04:00
Andrew Murray
9d664e48fa Updated libpng to 1.6.22 2016-06-05 11:38:13 +10:00
Alex Clark
2cc8b491c7 Merge pull request #32 from radarhere/pkg-config
Updated pkg-config to 0.29.1
2016-04-17 04:56:01 -04:00
Andrew Murray
b65b4aac05 Updated pkg-config to 0.29.1 2016-04-17 16:02:12 +10:00
wiredfool
13bf7b8b45 Merge remote-tracking branch 'origin/master' 2016-04-01 06:16:08 -07:00
wiredfool
26599528b9 Version 3.2.0 2016-04-01 06:15:41 -07:00
Hugo
f9476e5e68 Merge pull request #31 from radarhere/freetype
Updated freetype to 2.6.3
2016-02-10 16:20:26 +02:00
Hugo
39911e0e70 Merge pull request #29 from radarhere/jpeg
Updated jpeg to 9b
2016-02-10 16:19:53 +02:00
Andrew Murray
4a4ec1c3a7 Updated jpeg to 9b 2016-02-10 22:49:30 +11:00
Andrew Murray
b8b8b25a2a Updated freetype to 2.6.3 2016-02-10 22:41:38 +11:00
wiredfool
84eade12c3 disabling python 3.2 due to pip 2016-02-04 09:45:10 -08:00
wiredfool
0773e0a82c Version 3.1.1 2016-02-04 08:32:51 -08:00
Hugo
45f0c19c6e Merge pull request #28 from radarhere/libpng
Updated libpng to 1.6.21
2016-01-19 10:26:15 +02:00
Hugo
44b1598d77 Merge pull request #27 from radarhere/webp
Updated WebP to 0.5.0
2016-01-19 10:26:01 +02:00
Hugo
823bd8ecad Merge pull request #25 from radarhere/patch
Removed patch
2016-01-19 10:25:30 +02:00
Andrew Murray
2153838ec1 Updated libpng to 1.6.21 2016-01-19 15:48:07 +11:00
Andrew Murray
3b20b35ca5 Updated WebP to 0.5.0 2016-01-05 13:27:47 +11:00
wiredfool
ebd56533c9 3.1.0 release 2016-01-04 02:28:13 -08:00
wiredfool
89e7d225d1 3.1.0-rc1 2016-01-01 16:25:41 +00:00
Andrew Murray
d1dac7f29f Removed patch 2015-12-25 12:40:54 +11:00
Alex Clark
91c4caa89f Merge pull request #24 from radarhere/libpng
Updated libpng to 1.6.20
2015-12-23 06:49:00 -05:00
Andrew Murray
e281027f46 Updated libpng to 1.6.20 2015-12-23 22:16:58 +11:00
Hugo
450f116465 Merge pull request #23 from radarhere/master
Updated freetype to 2.6.2
2015-11-29 22:09:57 +02:00
Andrew Murray
02b5c460ea Updated freetype to 2.6.2 2015-11-29 20:44:05 +11:00
Alex Clark
59063bf7fe Merge pull request #22 from radarhere/libpng
Updated libpng to 1.6.19
2015-11-14 19:49:11 -05:00
Andrew Murray
571183d5cb Updated libpng to 1.6.19 2015-11-15 11:40:44 +11:00
Alex Clark
f2c055d3af Merge pull request #21 from radarhere/webp
Updated WebP to 0.4.4
2015-10-30 04:36:02 -04:00
Andrew Murray
0cd185aa85 Updated WebP to 0.4.4 2015-10-30 19:08:30 +11:00
wiredfool
2570822ca6 Merge pull request #19 from matthew-brett/fix-py35-building
MRG: fix Python 3.5 building; remove workaround
2015-10-02 11:44:28 -07:00
Matthew Brett
5693917fd3 RF: remove workaround for fixed travis-ci bug
Travis-ci Rackspace deployment now fixed:

https://github.com/travis-ci/travis-ci/issues/4853
2015-10-02 10:30:05 -07:00
Matthew Brett
46d2be4c0c NF: add Python 3.5 wheel building
Need to update to latest wheel package within virtualenv
2015-10-02 10:29:06 -07:00
wiredfool
34b5bfd51e Pillow 3.0.0 2015-10-01 22:11:25 +01:00
Alex Clark
c1164b2e2e Merge pull request #18 from matthew-brett/fix-rackspace-deploy
BF: workaround Rackspace deploy bug
2015-09-18 17:37:13 -04:00
Matthew Brett
71ae6efd63 BF: workaround Rackspace deploy bug
Rackspace deploy broken from OSX - use workaround.
2015-09-18 13:41:42 -07:00
Alex Clark
8fa3f9d77d Merge pull request #17 from radarhere/tiff
Updated libtiff to 4.0.6
2015-09-14 06:03:16 -04:00
Andrew Murray
38f89c7122 Updated libtiff to 4.0.6 2015-09-14 19:48:08 +10:00
Alex Clark
92d0fbf081 Merge pull request #16 from radarhere/tiff
Updated libtiff to 4.0.5
2015-08-31 17:15:30 -04:00
Andrew Murray
6636ee5c49 Updated libtiff to 4.0.5 2015-09-01 06:44:54 +10:00
Hugo van Kemenade
0351905e61 Merge pull request #15 from radarhere/patch-1
Added Travis CI badge to README
2015-08-02 10:15:30 +03:00
Andrew Murray
e195a86e08 Added Travis CI badge to README 2015-08-02 14:22:06 +10:00
Hugo van Kemenade
2e8aae4ceb Merge pull request #14 from radarhere/libpng
Updated libpng to 1.6.18
2015-07-31 20:26:44 +03:00
Andrew Murray
0083a365a7 Updated libpng to 1.6.18 2015-08-01 00:23:37 +10:00
Alex Clark
20c7c3900c Wording 2015-07-02 05:12:11 -04:00
Alex Clark
e483bd5852 Wording 2015-07-02 05:10:32 -04:00
Alex Clark
a78567e258 Wording 2015-07-02 05:08:32 -04:00
Alex Clark
dfbe5aea14 Wording 2015-07-02 05:07:50 -04:00
Alex Clark
245d9b76b4 Merge branch 'master' of github.com:python-pillow/pillow-wheels 2015-07-02 05:07:03 -04:00
Alex Clark
f77790f169 Wording 2015-07-02 05:06:55 -04:00
Alex Clark
e29425beaa Merge pull request #13 from radarhere/patch-2
Updated Python versions
2015-07-02 05:03:20 -04:00
Hugo van Kemenade
cf51aabb78 Merge pull request #12 from radarhere/patch-1
Updated package versions
2015-07-02 07:18:26 +03:00
Alex Clark
17ddfba065 Wording 2015-07-01 19:28:41 -04:00
Alex Clark
1c38bd2cf7 Wording 2015-07-01 19:28:11 -04:00
Alex Clark
888c6cb324 Update 2015-07-01 19:26:49 -04:00
Alex Clark
0a7a16a82e Build 2.9.0 wheels 2015-07-01 19:20:01 -04:00
Andrew Murray
841c2e4bcf Updated package versions 2015-06-25 20:34:37 +10:00
Alex Clark
7b7d8ec99a Update 2015-06-07 21:21:06 -04:00
Alex Clark
2338a2f9c9 Update 2015-06-07 20:58:56 -04:00
Alex Clark
be197b19e8 Update 2015-06-07 20:58:36 -04:00
Alex Clark
29d7871196 Update 2015-06-07 20:57:08 -04:00
Alex Clark
b86b1dd9f8 Update 2015-06-07 20:55:50 -04:00
Alex Clark
4b53821964 Build 2.8.2 wheels 2015-06-07 20:51:14 -04:00
Andrew Murray
d975cd6dff Updated Python 2.7 version 2015-05-30 11:03:30 +10:00
Andrew Murray
cbd108c2a9 Updated Python 3.4 version 2015-05-30 10:58:01 +10:00
Alex Clark
ead572c0df Pillow -> 2.8.1 2015-04-02 14:14:59 -04:00
wiredfool
dae0b9aa7b Merge remote-tracking branch 'origin/master' 2015-04-01 14:40:48 -07:00
wiredfool
719f772a00 Pillow -> 2.8.0 2015-04-01 14:39:33 -07:00
Hugo
71f8c6a389 Merge pull request #11 from matthew-brett/new-terryfy
Update to latest terrfy; enable build latest tag
2015-02-21 10:07:15 +02:00
Matthew Brett
f74ff54537 Update to latest terrfy; enable build latest tag
Update to latest terryfy, that has different wording for the
'latest-tag'.  Re-enable build of latest tag by default.
2015-02-20 21:18:23 -08:00
wiredfool
783aeeaa08 Build for 2.6.2 2015-01-01 14:04:29 -08:00
wiredfool
20b3841b35 Build for 2.7.0 2015-01-01 10:56:30 -08:00
Hugo
2c2970cc6d Merge pull request #8 from hugovk/python-versions
Update Python versions
2014-12-29 16:13:31 +02:00
hugovk
fd433cb077 Specify and update to latest micro version, needed for get_python_environment command 2014-12-29 12:12:26 +02:00
hugovk
34caf70545 Only specify major.minor version without .micro to use latest available 2014-12-29 11:59:16 +02:00
Matthew Brett
a16d1e67ad Update to the MacPython canonical terryfy 2014-11-21 10:23:27 -08:00
Matthew Brett
4ea91f58ec Merge pull request #7 from matthew-brett/update-terryfy
Update to latest terryfy
2014-11-20 21:08:17 -08:00
Matthew Brett
2840fd3984 Update to latest terryfy 2014-11-20 18:42:32 -08:00
wiredfool
e039df6c00 Merge branch 'master' of github.com:python-pillow/pillow-wheels 2014-10-13 10:24:08 -07:00
wiredfool
f18fbd54a1 Version Bump - 2.6.1 2014-10-13 10:23:45 -07:00
Alex Clark
06f5193995 Clean up 2014-10-08 07:02:20 -04:00
Alex Clark ☺
b2cf79182d Update README.rst
Nit
2014-10-08 06:57:16 -04:00
wiredfool
1438208cff 2.6.0 release 2014-10-01 10:59:52 -07:00
wiredfool
c04489e09f temp -- disable jpeg2k building 2014-09-30 09:36:55 -07:00
wiredfool
eb4143baaa Tweak nose settings 2014-09-30 07:51:45 -07:00
wiredfool
8e267adf77 2.6.0-rc1 2014-09-29 14:45:15 -07:00
wiredfool
4ae70912b5 Build from python-Pillow 2014-08-18 10:38:21 -07:00
wiredfool
b033573724 New Upstream Version 2014-08-18 10:11:47 -07:00
wiredfool
eaf82c30d9 Merge branch 'master' of github.com:python-pillow/pillow-wheels 2014-08-13 09:44:35 -07:00
wiredfool
580b769b11 New Upstream Version 2014-08-13 09:44:20 -07:00
wiredfool
1d3488100c Update Links, Credentials notes [ci skip] 2014-07-24 22:37:52 -07:00
wiredfool
abf48428aa Tracking 2.5.x branch, + travis patches 2014-07-24 22:34:20 -07:00
Hugo
2cb0ff5149 Merge pull request #4 from matthew-brett/update-terryfy
BF: update to latest terryfy
2014-07-24 10:21:09 +03:00
Matthew Brett
28b96af899 BF: update to latest terryfy
travis-ci mac vms changed to OSX 10.9.4 causing some problems with
Python 2.7 and pip.
2014-07-23 23:51:14 -07:00
wiredfool
38a2004264 YA attempt at cloudfiles 2014-07-23 21:03:40 -07:00
wiredfool
c4dc879470 New Key, New User for travis upload 2014-07-06 22:03:16 -07:00
wiredfool
0bfde3da4c new api key for sending to the org's files bucket 2014-07-06 21:30:20 -07:00
Matthew Brett
e26a6545f4 RF: try openjpeg fixes 2014-07-06 01:06:58 +01:00
Matthew Brett
c52dc4c2bc RF: use function to update to closest tag 2014-07-05 02:53:47 +01:00
Matthew Brett
3caeeea940 Revert "TMP: remove long tests to get wheel build"
This reverts commit 392371688b.
2014-07-05 02:26:11 +01:00
Matthew Brett
392371688b TMP: remove long tests to get wheel build 2014-07-05 02:25:14 +01:00
Matthew Brett
86ef45d0e2 RF: update git-closest-tag test
Update terryfy with git-closest-tag; use in .travis.yml
2014-07-05 02:20:46 +01:00
Matthew Brett
37b0008897 RF: haphazard flag flipping 2014-07-04 14:19:55 +01:00
Matthew Brett
54f4250e45 RF: pump up the timeout to travis max 2014-07-04 13:49:11 +01:00
Matthew Brett
aee70fae14 RF: try another fix for multiprocessing 2014-07-04 13:28:59 +01:00
Matthew Brett
074951f091 RF: refactor library_installers, add zlib 2014-07-04 12:55:11 +01:00
Matthew Brett
7163b90cdf RF: try disabling multiprocess tests
Suggestion from @wiredfool on github
2014-07-04 02:02:42 +01:00
Matthew Brett
6919d6daf3 RF: remove 2.6 build
2.6 build hit a problem with old pip and SSL:
https://github.com/pypa/pip/issues/829

Rather than struggle through, just remove that build.
2014-07-04 01:28:11 +01:00
Matthew Brett
a7f60459ec BF: install nose for more comprehensive tests 2014-07-04 01:01:50 +01:00
Matthew Brett
047bd46391 Merge remote-tracking branch 'wiredfool/more_tests'
* wiredfool/more_tests:
  Run the full test suite
2014-07-04 00:55:11 +01:00
Matthew Brett
9ba52f3471 Merge remote-tracking branch 'hugovk/patch-2'
* hugovk/patch-2:
  Use latest Python 2.7

Conflicts:
	.travis.yml
2014-07-04 00:53:08 +01:00
Hugo
7ae7fd863c Use latest Python 2.7 2014-07-04 00:49:16 +03:00
Hugo
6323ba1d14 Add latest Python 2.6
And use latest 2.7
2014-07-04 00:41:00 +03:00
wiredfool
2396ca7def Run the full test suite 2014-07-03 12:24:06 -07:00
Matthew Brett
8510111de8 NF: make git tag fetching more robust 2014-07-03 17:02:09 +01:00
Matthew Brett
bd8254373d RF: update tag fetching 2014-07-03 12:47:04 +01:00
Matthew Brett
2efbaa41d5 RF: automatically update to latest tag 2014-07-03 12:26:34 +01:00
Matthew Brett
006164972d RF: remove unused variables and installs
[skip ci]
2014-06-30 12:15:18 +01:00
Matthew Brett
6d291480b4 RF: set pkg-config path correctly 2014-06-30 12:07:26 +01:00
Matthew Brett
ed040a10a0 RF: try using pkg-config from homebrew 2014-06-30 11:58:20 +01:00
Matthew Brett
c471b897f9 RF: update to latest terryfy 2014-06-29 02:27:10 +01:00
Matthew Brett
139fb757ec NF: add wheel renaming 2014-06-28 22:37:02 +01:00
Matthew Brett
17760efefb RF: patch for python 3 / windows 2014-06-28 19:33:55 +01:00
Matthew Brett
43d9322b4b RF: reset encrypted key for deploy 2014-06-28 19:18:02 +01:00
Matthew Brett
837f755c37 BF: fixes from first travis run 2014-06-28 18:31:38 +01:00
Matthew Brett
535e89663a Initial commit 2014-06-28 18:09:55 +01:00
768 changed files with 47860 additions and 17003 deletions

View File

@ -1,94 +0,0 @@
version: '{build}'
clone_folder: c:\pillow
init:
- ECHO %PYTHON%
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Uncomment previous line to get RDP access during the build.
environment:
EXECUTABLE: python.exe
TEST_OPTIONS:
DEPLOY: YES
matrix:
- PYTHON: C:/Python311
ARCHITECTURE: x86
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- PYTHON: C:/Python38-x64
ARCHITECTURE: x64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
install:
- '%PYTHON%\%EXECUTABLE% --version'
- '%PYTHON%\%EXECUTABLE% -m pip install --upgrade pip'
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
- 7z x pillow-depends.zip -oc:\
- 7z x pillow-test-images.zip -oc:\
- mv c:\pillow-depends-main c:\pillow-depends
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
- 7z x ..\pillow-depends\nasm-2.16.01-win64.zip -oc:\
- choco install ghostscript --version=10.0.0.20230317
- path c:\nasm-2.16.01;C:\Program Files\gs\gs10.00.0\bin;%PATH%
- cd c:\pillow\winbuild\
- ps: |
c:\python38\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\
c:\pillow\winbuild\build\build_dep_all.cmd
$host.SetShouldExit(0)
- path C:\pillow\winbuild\build\bin;%PATH%
build_script:
- cd c:\pillow
- winbuild\build\build_env.cmd
- '%PYTHON%\%EXECUTABLE% -m pip install -v -C raqm=vendor -C fribidi=vendor .'
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
test_script:
- cd c:\pillow
- '%PYTHON%\%EXECUTABLE% -m pip install pytest pytest-cov pytest-timeout'
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
- '%PYTHON%\%EXECUTABLE% -c "from PIL import Image"'
- '%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests'
#- '%PYTHON%\%EXECUTABLE% test-installed.py -v -s %TEST_OPTIONS%' TODO TEST_OPTIONS with pytest?
after_test:
- curl -Os https://uploader.codecov.io/latest/windows/codecov.exe
- .\codecov.exe --file coverage.xml --name %PYTHON% --flags AppVeyor
matrix:
fast_finish: true
cache:
- '%LOCALAPPDATA%\pip\Cache'
artifacts:
- path: pillow\*.egg
name: egg
- path: pillow\*.whl
name: wheel
before_deploy:
- cd c:\pillow
- '%PYTHON%\%EXECUTABLE% -m pip wheel -v -C raqm=vendor -C fribidi=vendor .'
- ps: Get-ChildItem .\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
deploy:
provider: S3
region: us-west-2
access_key_id: AKIAIRAXC62ZNTVQJMOQ
secret_access_key:
secure: Hwb6klTqtBeMgxAjRoDltiiqpuH8xbwD4UooDzBSiCWXjuFj1lyl4kHgHwTCCGqi
bucket: pillow-nightly
folder: win/$(APPVEYOR_BUILD_NUMBER)/
artifact: /.*egg|wheel/
on:
APPVEYOR_REPO_NAME: python-pillow/Pillow
branch: main
deploy: YES
# Uncomment the following lines to get RDP access after the build/test and block for
# up to the timeout limit (~1hr)
#
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

View File

@ -2,8 +2,4 @@
# gather the coverage data # gather the coverage data
python3 -m pip install coverage python3 -m pip install coverage
if [[ $MATRIX_DOCKER ]]; then python3 -m coverage xml
python3 -m coverage xml --ignore-errors
else
python3 -m coverage xml
fi

View File

@ -3,8 +3,5 @@
set -e set -e
python3 -m coverage erase python3 -m coverage erase
if [ $(uname) == "Darwin" ]; then
export CPPFLAGS="-I/usr/local/miniconda/include";
fi
make clean make clean
make install-coverage make install-coverage

View File

@ -2,12 +2,12 @@
aptget_update() aptget_update()
{ {
if [ ! -z $1 ]; then if [ -n "$1" ]; then
echo "" echo ""
echo "Retrying apt-get update..." echo "Retrying apt-get update..."
echo "" echo ""
fi fi
output=`sudo apt-get update 2>&1` output=$(sudo apt-get update 2>&1)
echo "$output" echo "$output"
if [[ $output == *[WE]:\ * ]]; then if [[ $output == *[WE]:\ * ]]; then
return 1 return 1
@ -20,31 +20,40 @@ fi
set -e set -e
if [[ $(uname) != CYGWIN* ]]; then if [[ $(uname) != CYGWIN* ]]; then
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\ sudo apt-get -qq install libfreetype6-dev liblcms2-dev libtiff-dev python3-tk\
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\ ghostscript libjpeg-turbo8-dev libopenjp2-7-dev\
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\ cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
sway wl-clipboard sway wl-clipboard libopenblas-dev nasm
fi fi
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
python3 -m pip install --upgrade wheel python3 -m pip install --upgrade wheel
PYTHONOPTIMIZE=0 python3 -m pip install cffi
python3 -m pip install coverage python3 -m pip install coverage
python3 -m pip install defusedxml python3 -m pip install defusedxml
python3 -m pip install ipython
python3 -m pip install olefile python3 -m pip install olefile
python3 -m pip install -U pytest python3 -m pip install -U pytest
python3 -m pip install -U pytest-cov python3 -m pip install -U pytest-cov
python3 -m pip install -U pytest-timeout python3 -m pip install -U pytest-timeout
python3 -m pip install pyroma python3 -m pip install pyroma
# optional test dependency, only install if there's a binary package.
# fails on beta 3.14 and PyPy
python3 -m pip install --only-binary=:all: pyarrow || true
if [[ $(uname) != CYGWIN* ]]; then if [[ $(uname) != CYGWIN* ]]; then
# TODO Remove condition when NumPy supports 3.12 python3 -m pip install numpy
if ! [ "$GHA_PYTHON_VERSION" == "3.12-dev" ]; then python3 -m pip install numpy ; fi
# PyQt6 doesn't support PyPy3 # PyQt6 doesn't support PyPy3
if [[ "$GHA_PYTHON_VERSION" != "3.12-dev" && $GHA_PYTHON_VERSION == 3.* ]]; then if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0 sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
python3 -m pip install pyqt6 # TODO Update condition when pyqt6 supports free-threading
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
fi
# Pyroma uses non-isolated build and fails with old setuptools
if [[ $GHA_PYTHON_VERSION == 3.9 ]]; then
# To match pyproject.toml
python3 -m pip install "setuptools>=77"
fi fi
# webp # webp
@ -56,6 +65,9 @@ if [[ $(uname) != CYGWIN* ]]; then
# raqm # raqm
pushd depends && ./install_raqm.sh && popd pushd depends && ./install_raqm.sh && popd
# libavif
pushd depends && ./install_libavif.sh && popd
# extra test images # extra test images
pushd depends && ./install_extra_test_images.sh && popd pushd depends && ./install_extra_test_images.sh && popd
else else

View File

@ -0,0 +1 @@
cibuildwheel==3.0.1

14
.ci/requirements-mypy.txt Normal file
View File

@ -0,0 +1,14 @@
mypy==1.17.0
IceSpringPySideStubs-PyQt6
IceSpringPySideStubs-PySide6
ipython
numpy
packaging
pyarrow-stubs
pybind11
pytest
sphinx
types-atheris
types-defusedxml
types-olefile
types-setuptools

3
.ci/test.cmd Normal file
View File

@ -0,0 +1,3 @@
python.exe -c "from PIL import Image"
IF ERRORLEVEL 1 EXIT /B
python.exe -bb -m pytest -vv -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests

View File

@ -4,4 +4,4 @@ set -e
python3 -c "from PIL import Image" python3 -c "from PIL import Image"
python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests $REVERSE python3 -bb -m pytest -vv -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests $REVERSE

View File

@ -1,16 +1,37 @@
# A clang-format style that approximates Python's PEP 7 # A clang-format style that approximates Python's PEP 7
# Useful for IDE integration # Useful for IDE integration
Language: C
BasedOnStyle: Google BasedOnStyle: Google
AlwaysBreakAfterReturnType: All AlwaysBreakAfterReturnType: All
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: AlwaysBreak AlignAfterOpenBracket: BlockIndent
BinPackArguments: false BinPackArguments: false
BinPackParameters: false BinPackParameters: false
BreakBeforeBraces: Attach BreakBeforeBraces: Attach
ColumnLimit: 88 ColumnLimit: 88
DerivePointerAlignment: false DerivePointerAlignment: false
IndentGotoLabels: false
IndentWidth: 4
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
TabWidth: 4
UseTab: Never
---
Language: Cpp
BasedOnStyle: Google
AlwaysBreakAfterReturnType: All
AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: BlockIndent
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Attach
ColumnLimit: 88
DerivePointerAlignment: false
IndentGotoLabels: false
IndentWidth: 4 IndentWidth: 4
Language: Cpp
PointerAlignment: Right PointerAlignment: Right
ReflowComments: true ReflowComments: true
SortIncludes: false SortIncludes: false

View File

@ -2,19 +2,21 @@
[report] [report]
# Regexes for lines to exclude from consideration # Regexes for lines to exclude from consideration
exclude_lines = exclude_also =
# Have to re-enable the standard pragma: # Don't complain if non-runnable code isn't run
pragma: no cover
# Don't complain if non-runnable code isn't run:
if 0: if 0:
if __name__ == .__main__.: if __name__ == .__main__.:
# Don't complain about debug code # Don't complain about debug code
if DEBUG: if DEBUG:
# Don't complain about compatibility code for missing optional dependencies
except ImportError
if TYPE_CHECKING:
@abc.abstractmethod
# Empty bodies in protocols or abstract methods
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
^\s*\.\.\.(\s*#.*)?$
[run] [run]
omit = omit =
Tests/32bit_segfault_check.py checks/*.py
Tests/bench_cffi_access.py
Tests/check_*.py
Tests/createfontdatachunk.py Tests/createfontdatachunk.py

View File

@ -13,7 +13,7 @@ indent_style = space
trim_trailing_whitespace = true trim_trailing_whitespace = true
[*.yml] [*.{toml,yml}]
# Two-space indentation # Two-space indentation
indent_size = 2 indent_size = 2

6
.git-blame-ignore-revs Normal file
View File

@ -0,0 +1,6 @@
# Flake8
8de95676e0fd89f2326b3953488ab66ff29cd2d0
# Format with Black
53a7e3500437a9fd5826bc04758f7116bd7e52dc
# Format the C code with ClangFormat
46b7e86bab79450ec0a2866c6c0c679afb659d17

View File

@ -9,7 +9,7 @@ Please send a pull request to the `main` branch. Please include [documentation](
- Fork the Pillow repository. - Fork the Pillow repository.
- Create a branch from `main`. - Create a branch from `main`.
- Develop bug fixes, features, tests, etc. - Develop bug fixes, features, tests, etc.
- Run the test suite. You can enable GitHub Actions (https://github.com/MY-USERNAME/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/projects/new) on your repo to catch test failures prior to the pull request, and [Codecov](https://codecov.io/gh) to see if the changed code is covered by tests. - Run the test suite. You can enable GitHub Actions (https://github.com/MY-USERNAME/Pillow/actions) on your repo to catch test failures prior to the pull request, and [Codecov](https://codecov.io/gh) to see if the changed code is covered by tests.
- Create a pull request to pull the changes from your branch to the Pillow `main`. - Create a pull request to pull the changes from your branch to the Pillow `main`.
### Guidelines ### Guidelines
@ -17,9 +17,8 @@ Please send a pull request to the `main` branch. Please include [documentation](
- Separate code commits from reformatting commits. - Separate code commits from reformatting commits.
- Provide tests for any newly added code. - Provide tests for any newly added code.
- Follow PEP 8. - Follow PEP 8.
- When committing only documentation changes please include `[ci skip]` in the commit message to avoid running tests on AppVeyor. - When committing only documentation changes please include `[ci skip]` in the commit message to avoid running extra tests.
- Include [release notes](https://github.com/python-pillow/Pillow/tree/main/docs/releasenotes) as needed or appropriate with your bug fixes, feature additions and tests. - Include [release notes](https://github.com/python-pillow/Pillow/tree/main/docs/releasenotes) as needed or appropriate with your bug fixes, feature additions and tests.
- Do not add to the [changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) for proposed changes, as that is updated after changes are merged.
## Reporting Issues ## Reporting Issues

2
.github/FUNDING.yml vendored
View File

@ -1 +1 @@
tidelift: "pypi/Pillow" tidelift: "pypi/pillow"

View File

@ -48,6 +48,21 @@ Thank you.
* Python: * Python:
* Pillow: * Pillow:
```text
Please paste here the output of running:
python3 -m PIL.report
or
python3 -m PIL --report
Or the output of the following Python code:
from PIL import report
# or
from PIL import features
features.pilinfo(supported_formats=False)
```
<!-- <!--
Please include **code** that reproduces the issue and whenever possible, an **image** that demonstrates the issue. Please upload images to GitHub, not to third-party file hosting sites. If necessary, add the image to a zip or tar archive. Please include **code** that reproduces the issue and whenever possible, an **image** that demonstrates the issue. Please upload images to GitHub, not to third-party file hosting sites. If necessary, add the image to a zip or tar archive.

46
.github/ISSUE_TEMPLATE/RELEASE.md vendored Normal file
View File

@ -0,0 +1,46 @@
---
name: "Maintainers only: Release"
about: For maintainers to schedule a quarterly release
labels: Release
---
## Main release
Released quarterly on January 2nd, April 1st, July 1st and October 15th.
* [ ] Open a release ticket e.g. https://github.com/python-pillow/Pillow/issues/3154
* [ ] Develop and prepare release in `main` branch.
* [ ] Add release notes e.g. https://github.com/python-pillow/Pillow/pull/8885
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) to confirm passing tests in `main` branch.
* [ ] Check that all the wheel builds pass the tests in the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml) jobs by manually triggering them.
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py`
* [ ] Run pre-release check via `make release-test` in a freshly cloned repo.
* [ ] Create branch and tag for release e.g.:
```bash
git branch [[MAJOR.MINOR]].x
git tag [[MAJOR.MINOR]].0
git push --tags
```
* [ ] Check the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml) has passed, including the "Upload release to PyPI" job. This will have been triggered by the new tag.
* [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases).
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), increment and append `.dev0` to version identifier in `src/PIL/_version.py` and then:
```bash
git push --all
```
## Publicize release
* [ ] Announce release availability via [Mastodon](https://fosstodon.org/@pillow) e.g. https://fosstodon.org/@pillow/110639450470725321
## Documentation
* [ ] Make sure the [default version for Read the Docs](https://pillow.readthedocs.io/en/stable/) is up-to-date with the release changes
## Docker images
* [ ] Update Pillow in the Docker Images repository
```bash
git clone https://github.com/python-pillow/docker-images
cd docker-images
./update-pillow-tag.sh [[release tag]]
```

1
.github/mergify.yml vendored
View File

@ -9,7 +9,6 @@ pull_request_rules:
- status-success=Windows Test Successful - status-success=Windows Test Successful
- status-success=MinGW - status-success=MinGW
- status-success=Cygwin Test Successful - status-success=Cygwin Test Successful
- status-success=continuous-integration/appveyor/pr
actions: actions:
merge: merge:
method: merge method: merge

18
.github/problem-matchers/gcc.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"__comment": "Based on vscode-cpptools' Extension/package.json gcc rule",
"problemMatcher": [
{
"owner": "gcc-problem-matcher",
"pattern": [
{
"regexp": "^\\s*(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
]
}

View File

@ -3,16 +3,19 @@ tag-template: "$NEXT_MINOR_VERSION"
change-template: '- $TITLE #$NUMBER [@$AUTHOR]' change-template: '- $TITLE #$NUMBER [@$AUTHOR]'
categories: categories:
- title: "Dependencies" - title: "Removals"
label: "Dependency" label: "Removal"
- title: "Deprecations" - title: "Deprecations"
label: "Deprecation" label: "Deprecation"
- title: "Documentation" - title: "Documentation"
label: "Documentation" label: "Documentation"
- title: "Removals" - title: "Dependencies"
label: "Removal" label: "Dependency"
- title: "Testing" - title: "Testing"
label: "Testing" label: "Testing"
- title: "Type hints"
label: "Type hints"
- title: "Other changes"
exclude-labels: exclude-labels:
- "changelog: skip" - "changelog: skip"
@ -21,6 +24,4 @@ template: |
https://pillow.readthedocs.io/en/stable/releasenotes/$NEXT_MINOR_VERSION.html https://pillow.readthedocs.io/en/stable/releasenotes/$NEXT_MINOR_VERSION.html
## Changes
$CHANGES $CHANGES

12
.github/renovate.json vendored
View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"config:base" "config:recommended"
], ],
"labels": [ "labels": [
"Dependency" "Dependency"
@ -9,9 +9,13 @@
"packageRules": [ "packageRules": [
{ {
"groupName": "github-actions", "groupName": "github-actions",
"matchManagers": ["github-actions"], "matchManagers": [
"separateMajorMinor": "false" "github-actions"
],
"separateMajorMinor": false
} }
], ],
"schedule": ["on the 3rd day of the month"] "schedule": [
"* * 3 * *"
]
} }

View File

@ -2,13 +2,17 @@ name: CIFuzz
on: on:
push: push:
branches:
- "**"
paths: paths:
- ".github/workflows/cifuzz.yml" - ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
- "**.c" - "**.c"
- "**.h" - "**.h"
pull_request: pull_request:
paths: paths:
- ".github/workflows/cifuzz.yml" - ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
- "**.c" - "**.c"
- "**.h" - "**.h"
workflow_dispatch: workflow_dispatch:
@ -40,13 +44,13 @@ jobs:
language: python language: python
dry-run: false dry-run: false
- name: Upload New Crash - name: Upload New Crash
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success' if: failure() && steps.build.outcome == 'success'
with: with:
name: artifacts name: artifacts
path: ./out/artifacts path: ./out/artifacts
- name: Upload Legacy Crash - name: Upload Legacy Crash
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: steps.run.outcome == 'success' if: steps.run.outcome == 'success'
with: with:
name: crash name: crash

View File

@ -2,13 +2,17 @@ name: Docs
on: on:
push: push:
branches:
- "**"
paths: paths:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- "docs/**" - "docs/**"
- "src/PIL/**"
pull_request: pull_request:
paths: paths:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- "docs/**" - "docs/**"
- "src/PIL/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -28,23 +32,35 @@ jobs:
name: Docs name: Docs
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
cache: pip cache: pip
cache-dependency-path: ".ci/*.sh" cache-dependency-path: |
".ci/*.sh"
"pyproject.toml"
- name: Build system information - name: Build system information
run: python3 .github/workflows/system-info.py run: python3 .github/workflows/system-info.py
- name: Cache libimagequant
uses: actions/cache@v4
id: cache-libimagequant
with:
path: ~/cache-libimagequant
key: ${{ runner.os }}-libimagequant-${{ hashFiles('depends/install_imagequant.sh') }}
- name: Install Linux dependencies - name: Install Linux dependencies
run: | run: |
.ci/install.sh .ci/install.sh
env: env:
GHA_PYTHON_VERSION: "3.x" GHA_PYTHON_VERSION: "3.x"
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
- name: Build - name: Build
run: | run: |

View File

@ -2,6 +2,9 @@ name: Lint
on: [push, pull_request, workflow_dispatch] on: [push, pull_request, workflow_dispatch]
env:
FORCE_COLOR: 1
permissions: permissions:
contents: read contents: read
@ -17,10 +20,12 @@ jobs:
name: Lint name: Lint
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with:
persist-credentials: false
- name: pre-commit cache - name: pre-commit cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.cache/pre-commit path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
@ -28,7 +33,7 @@ jobs:
lint-pre-commit- lint-pre-commit-
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
cache: pip cache: pip
@ -46,3 +51,6 @@ jobs:
run: tox -e lint run: tox -e lint
env: env:
PRE_COMMIT_COLOR: always PRE_COMMIT_COLOR: always
- name: Mypy
run: tox -e mypy

View File

@ -2,19 +2,40 @@
set -e set -e
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm if [[ "$ImageOS" == "macos13" ]]; then
brew uninstall gradle maven
fi
brew install \
aom \
dav1d \
freetype \
ghostscript \
jpeg-turbo \
libimagequant \
libraqm \
libtiff \
little-cms2 \
openjpeg \
rav1e \
svt-av1 \
webp
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
PYTHONOPTIMIZE=0 python3 -m pip install cffi
python3 -m pip install coverage python3 -m pip install coverage
python3 -m pip install defusedxml python3 -m pip install defusedxml
python3 -m pip install ipython
python3 -m pip install olefile python3 -m pip install olefile
python3 -m pip install -U pytest python3 -m pip install -U pytest
python3 -m pip install -U pytest-cov python3 -m pip install -U pytest-cov
python3 -m pip install -U pytest-timeout python3 -m pip install -U pytest-timeout
python3 -m pip install pyroma python3 -m pip install pyroma
python3 -m pip install numpy
# optional test dependency, only install if there's a binary package.
# fails on beta 3.14 and PyPy
python3 -m pip install --only-binary=:all: pyarrow || true
# TODO Remove condition when NumPy supports 3.12 # libavif
if ! [ "$GHA_PYTHON_VERSION" == "3.12-dev" ]; then python3 -m pip install numpy ; fi pushd depends && ./install_libavif.sh && popd
# extra test images # extra test images
pushd depends && ./install_extra_test_images.sh && popd pushd depends && ./install_extra_test_images.sh && popd

View File

@ -10,7 +10,7 @@ on:
permissions: permissions:
contents: read contents: read
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@ -23,6 +23,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Drafts your next release notes as pull requests are merged into "main" # Drafts your next release notes as pull requests are merged into "main"
- uses: release-drafter/release-drafter@v5 - uses: release-drafter/release-drafter@v6
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -6,21 +6,23 @@ on:
workflow_dispatch: workflow_dispatch:
permissions: permissions:
issues: write contents: read
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
stale: stale:
if: github.repository_owner == 'python-pillow' if: github.repository_owner == 'python-pillow'
permissions:
issues: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Check issues" - name: "Check issues"
uses: actions/stale@v8 uses: actions/stale@v9
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: "Awaiting OP Action" only-labels: "Awaiting OP Action"

View File

@ -6,6 +6,9 @@ This sort of info is missing from GitHub Actions.
Requested here: Requested here:
https://github.com/actions/virtual-environments/issues/79 https://github.com/actions/virtual-environments/issues/79
""" """
from __future__ import annotations
import os import os
import platform import platform
import sys import sys

View File

@ -2,13 +2,21 @@ name: Test Cygwin
on: on:
push: push:
branches:
- "**"
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -18,13 +26,16 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-minor-version: [8, 9] python-minor-version: [9]
timeout-minutes: 40 timeout-minutes: 40
@ -36,15 +47,17 @@ jobs:
git config --global core.autocrlf input git config --global core.autocrlf input
- name: Checkout Pillow - name: Checkout Pillow
uses: actions/checkout@v3 uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Cygwin - name: Install Cygwin
uses: cygwin/cygwin-install-action@v4 uses: cygwin/cygwin-install-action@v6
with: with:
platform: x86_64
packages: > packages: >
gcc-g++ gcc-g++
ghostscript ghostscript
git
ImageMagick ImageMagick
jpeg jpeg
libfreetype-devel libfreetype-devel
@ -61,9 +74,9 @@ jobs:
make make
netpbm netpbm
perl perl
python3${{ matrix.python-minor-version }}-cffi
python3${{ matrix.python-minor-version }}-cython python3${{ matrix.python-minor-version }}-cython
python3${{ matrix.python-minor-version }}-devel python3${{ matrix.python-minor-version }}-devel
python3${{ matrix.python-minor-version }}-ipython
python3${{ matrix.python-minor-version }}-numpy python3${{ matrix.python-minor-version }}-numpy
python3${{ matrix.python-minor-version }}-sip python3${{ matrix.python-minor-version }}-sip
python3${{ matrix.python-minor-version }}-tkinter python3${{ matrix.python-minor-version }}-tkinter
@ -72,22 +85,18 @@ jobs:
zlib-devel zlib-devel
- name: Add Lapack to PATH - name: Add Lapack to PATH
uses: egor-tensin/cleanup-path@v3 uses: egor-tensin/cleanup-path@v4
with: with:
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack' dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
- name: pip cache - name: pip cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: 'C:\cygwin\home\runneradmin\.cache\pip' path: 'C:\cygwin\home\runneradmin\.cache\pip'
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }} key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}- ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-
- name: Select Python version
run: |
ln -sf c:/cygwin/bin/python3.${{ matrix.python-minor-version }} c:/cygwin/bin/python3
- name: Build system information - name: Build system information
run: | run: |
dash.exe -c "python3 .github/workflows/system-info.py" dash.exe -c "python3 .github/workflows/system-info.py"
@ -96,11 +105,6 @@ jobs:
run: | run: |
bash.exe .ci/install.sh bash.exe .ci/install.sh
- name: Install a different NumPy
shell: dash.exe -l "{0}"
run: |
python3 -m pip install -U numpy
- name: Build - name: Build
shell: bash.exe -eo pipefail -o igncr "{0}" shell: bash.exe -eo pipefail -o igncr "{0}"
run: | run: |
@ -116,7 +120,7 @@ jobs:
dash.exe -c "mkdir -p Tests/errors" dash.exe -c "mkdir -p Tests/errors"
- name: Upload errors - name: Upload errors
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: errors name: errors
@ -125,13 +129,15 @@ jobs:
- name: After success - name: After success
run: | run: |
bash.exe .ci/after_success.sh bash.exe .ci/after_success.sh
rm C:\cygwin\bin\bash.EXE
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
file: ./coverage.xml files: ./coverage.xml
flags: GHA_Cygwin flags: GHA_Cygwin
name: Cygwin Python 3.${{ matrix.python-minor-version }} name: Cygwin Python 3.${{ matrix.python-minor-version }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
success: success:
permissions: permissions:

View File

@ -2,13 +2,21 @@ name: Test Docker
on: on:
push: push:
branches:
- "**"
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -21,53 +29,55 @@ concurrency:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: ["ubuntu-latest"]
docker: [ docker: [
# Run slower jobs first to give them a headstart and reduce waiting time # Run slower jobs first to give them a headstart and reduce waiting time
ubuntu-22.04-jammy-arm64v8, ubuntu-24.04-noble-ppc64le,
ubuntu-22.04-jammy-ppc64le, ubuntu-24.04-noble-s390x,
ubuntu-22.04-jammy-s390x,
# Then run the remainder # Then run the remainder
alpine, alpine,
amazon-2-amd64, amazon-2-amd64,
amazon-2023-amd64, amazon-2023-amd64,
arch, arch,
centos-7-amd64,
centos-stream-8-amd64,
centos-stream-9-amd64, centos-stream-9-amd64,
debian-11-bullseye-amd64, centos-stream-10-amd64,
debian-12-bookworm-x86, debian-12-bookworm-x86,
debian-12-bookworm-amd64, debian-12-bookworm-amd64,
fedora-37-amd64, fedora-41-amd64,
fedora-38-amd64, fedora-42-amd64,
gentoo, gentoo,
ubuntu-20.04-focal-amd64,
ubuntu-22.04-jammy-amd64, ubuntu-22.04-jammy-amd64,
ubuntu-24.04-noble-amd64,
] ]
dockerTag: [main] dockerTag: [main]
include: include:
- docker: "ubuntu-22.04-jammy-arm64v8" - docker: "ubuntu-24.04-noble-ppc64le"
qemu-arch: "aarch64"
- docker: "ubuntu-22.04-jammy-ppc64le"
qemu-arch: "ppc64le" qemu-arch: "ppc64le"
- docker: "ubuntu-22.04-jammy-s390x" - docker: "ubuntu-24.04-noble-s390x"
qemu-arch: "s390x" qemu-arch: "s390x"
- docker: "ubuntu-24.04-noble-arm64v8"
os: "ubuntu-24.04-arm"
dockerTag: main
name: ${{ matrix.docker }} name: ${{ matrix.docker }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build system information - name: Build system information
run: python3 .github/workflows/system-info.py run: python3 .github/workflows/system-info.py
- name: Set up QEMU - name: Set up QEMU
if: "matrix.qemu-arch" if: "matrix.qemu-arch"
run: | uses: docker/setup-qemu-action@v3
docker run --rm --privileged aptman/qus -s -- -p ${{ matrix.qemu-arch }} with:
platforms: ${{ matrix.qemu-arch }}
- name: Docker pull - name: Docker pull
run: | run: |
@ -75,29 +85,29 @@ jobs:
- name: Docker build - name: Docker build
run: | run: |
# The Pillow user in the docker container is UID 1000 # The Pillow user in the docker container is UID 1001
sudo chown -R 1000 $GITHUB_WORKSPACE sudo chown -R 1001 $GITHUB_WORKSPACE
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
sudo chown -R runner $GITHUB_WORKSPACE sudo chown -R runner $GITHUB_WORKSPACE
- name: After success - name: After success
run: | run: |
PATH="$PATH:~/.local/bin"
docker start pillow_container docker start pillow_container
sudo docker cp pillow_container:/Pillow /Pillow
sudo chown -R runner /Pillow
pil_path=`docker exec pillow_container /vpy3/bin/python -c 'import os, PIL;print(os.path.realpath(os.path.dirname(PIL.__file__)))'` pil_path=`docker exec pillow_container /vpy3/bin/python -c 'import os, PIL;print(os.path.realpath(os.path.dirname(PIL.__file__)))'`
docker stop pillow_container docker stop pillow_container
sudo mkdir -p $pil_path sudo mkdir -p $pil_path
sudo cp src/PIL/*.py $pil_path sudo cp src/PIL/*.py $pil_path
cd /Pillow
.ci/after_success.sh .ci/after_success.sh
env:
MATRIX_DOCKER: ${{ matrix.docker }}
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
flags: GHA_Docker flags: GHA_Docker
name: ${{ matrix.docker }} name: ${{ matrix.docker }}
gcov: true token: ${{ secrets.CODECOV_ORG_TOKEN }}
success: success:
permissions: permissions:

View File

@ -2,13 +2,21 @@ name: Test MinGW
on: on:
push: push:
branches:
- "**"
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -18,6 +26,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
@ -34,7 +45,9 @@ jobs:
steps: steps:
- name: Checkout Pillow - name: Checkout Pillow
uses: actions/checkout@v3 uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up shell - name: Set up shell
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH
@ -47,35 +60,35 @@ jobs:
mingw-w64-x86_64-gcc \ mingw-w64-x86_64-gcc \
mingw-w64-x86_64-ghostscript \ mingw-w64-x86_64-ghostscript \
mingw-w64-x86_64-lcms2 \ mingw-w64-x86_64-lcms2 \
mingw-w64-x86_64-libavif \
mingw-w64-x86_64-libimagequant \ mingw-w64-x86_64-libimagequant \
mingw-w64-x86_64-libjpeg-turbo \ mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-libraqm \ mingw-w64-x86_64-libraqm \
mingw-w64-x86_64-libtiff \ mingw-w64-x86_64-libtiff \
mingw-w64-x86_64-libwebp \ mingw-w64-x86_64-libwebp \
mingw-w64-x86_64-openjpeg2 \ mingw-w64-x86_64-openjpeg2 \
mingw-w64-x86_64-python3-cffi \ mingw-w64-x86_64-python-numpy \
mingw-w64-x86_64-python3-numpy \ mingw-w64-x86_64-python-olefile \
mingw-w64-x86_64-python3-olefile \ mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-python3-pip \ mingw-w64-x86_64-python-pytest \
mingw-w64-x86_64-python3-setuptools \ mingw-w64-x86_64-python-pytest-cov \
mingw-w64-x86_64-python-pytest-timeout \
mingw-w64-x86_64-python-pyqt6 mingw-w64-x86_64-python-pyqt6
python3 -m pip install pyroma pytest pytest-cov pytest-timeout
pushd depends && ./install_extra_test_images.sh && popd pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow - name: Build Pillow
run: SETUPTOOLS_USE_DISTUTILS="stdlib" CFLAGS="-coverage" python3 -m pip install . run: CFLAGS="-coverage" python3 -m pip install .
- name: Test Pillow - name: Test Pillow
run: | run: |
python3 selftest.py --installed python3 selftest.py --installed
python3 -c "from PIL import Image" .ci/test.sh
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
file: ./coverage.xml files: ./coverage.xml
flags: GHA_Windows flags: GHA_Windows
name: "MSYS2 MinGW" name: "MSYS2 MinGW"
token: ${{ secrets.CODECOV_ORG_TOKEN }}

View File

@ -0,0 +1,60 @@
name: Test Valgrind Memory Leaks
# like the Docker tests, but running valgrind only on *.c/*.h changes.
# this is very expensive. Only run on the pull request.
on:
# push:
# branches:
# - "**"
# paths:
# - ".github/workflows/test-valgrind.yml"
# - "**.c"
# - "**.h"
pull_request:
paths:
- ".github/workflows/test-valgrind.yml"
- "**.c"
- "**.h"
- "depends/docker-test-valgrind-memory.sh"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker: [
ubuntu-22.04-jammy-amd64-valgrind,
]
dockerTag: [main]
name: ${{ matrix.docker }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build system information
run: python3 .github/workflows/system-info.py
- name: Docker pull
run: |
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
- name: Build and Run Valgrind
run: |
# The Pillow user in the docker container is UID 1001
sudo chown -R 1001 $GITHUB_WORKSPACE
docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} /Pillow/depends/docker-test-valgrind-memory.sh
sudo chown -R runner $GITHUB_WORKSPACE

View File

@ -1,9 +1,11 @@
name: Test Valgrind name: Test Valgrind
# like the docker tests, but running valgrind only on *.c/*.h changes. # like the Docker tests, but running valgrind only on *.c/*.h changes.
on: on:
push: push:
branches:
- "**"
paths: paths:
- ".github/workflows/test-valgrind.yml" - ".github/workflows/test-valgrind.yml"
- "**.c" - "**.c"
@ -37,7 +39,9 @@ jobs:
name: ${{ matrix.docker }} name: ${{ matrix.docker }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build system information - name: Build system information
run: python3 .github/workflows/system-info.py run: python3 .github/workflows/system-info.py
@ -48,7 +52,7 @@ jobs:
- name: Build and Run Valgrind - name: Build and Run Valgrind
run: | run: |
# The Pillow user in the docker container is UID 1000 # The Pillow user in the docker container is UID 1001
sudo chown -R 1000 $GITHUB_WORKSPACE sudo chown -R 1001 $GITHUB_WORKSPACE
docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
sudo chown -R runner $GITHUB_WORKSPACE sudo chown -R runner $GITHUB_WORKSPACE

View File

@ -2,13 +2,21 @@ name: Test Windows
on: on:
push: push:
branches:
- "**"
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -18,56 +26,79 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["pypy3.10", "pypy3.9", "3.8", "3.9", "3.10", "3.11", "3.12-dev"] python-version: ["pypy3.11", "3.10", "3.11", "3.12", ">=3.13.5", "3.14"]
architecture: ["x64"]
include:
# Test the oldest Python on 32-bit
- { python-version: "3.9", architecture: "x86" }
timeout-minutes: 30 timeout-minutes: 45
name: Python ${{ matrix.python-version }} name: Python ${{ matrix.python-version }} (${{ matrix.architecture }})
steps: steps:
- name: Checkout Pillow - name: Checkout Pillow
uses: actions/checkout@v3 uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout cached dependencies - name: Checkout cached dependencies
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
persist-credentials: false
repository: python-pillow/pillow-depends repository: python-pillow/pillow-depends
path: winbuild\depends path: winbuild\depends
- name: Checkout extra test images - name: Checkout extra test images
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
persist-credentials: false
repository: python-pillow/test-images repository: python-pillow/test-images
path: Tests\test-images path: Tests\test-images
# sets env: pythonLocation # sets env: pythonLocation
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
allow-prereleases: true
architecture: ${{ matrix.architecture }}
cache: pip cache: pip
cache-dependency-path: ".github/workflows/test-windows.yml" cache-dependency-path: ".github/workflows/test-windows.yml"
- name: Print build system information - name: Print build system information
run: python3 .github/workflows/system-info.py run: python3 .github/workflows/system-info.py
- name: python3 -m pip install pytest pytest-cov pytest-timeout defusedxml - name: Upgrade pip
run: python3 -m pip install pytest pytest-cov pytest-timeout defusedxml run: |
python3 -m pip install --upgrade pip
- name: Install CPython dependencies
if: "!contains(matrix.python-version, 'pypy') && !contains(matrix.python-version, '3.14') && matrix.architecture != 'x86'"
run: |
python3 -m pip install PyQt6
- name: Install PyArrow dependency
run: |
python3 -m pip install --only-binary=:all: pyarrow || true
- name: Install dependencies - name: Install dependencies
id: install id: install
run: | run: |
7z x winbuild\depends\nasm-2.16.01-win64.zip "-o$env:RUNNER_WORKSPACE\" choco install nasm --no-progress
echo "$env:RUNNER_WORKSPACE\nasm-2.16.01" >> $env:GITHUB_PATH echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
choco install ghostscript --version=10.0.0.20230317 choco install ghostscript --version=10.5.1 --no-progress
echo "C:\Program Files\gs\gs10.00.0\bin" >> $env:GITHUB_PATH echo "C:\Program Files\gs\gs10.05.1\bin" >> $env:GITHUB_PATH
# Install extra test images # Install extra test images
xcopy /S /Y Tests\test-images\* Tests\images xcopy /S /Y Tests\test-images\* Tests\images
@ -80,7 +111,7 @@ jobs:
- name: Cache build - name: Cache build
id: build-cache id: build-cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: winbuild\build path: winbuild\build
key: key:
@ -117,6 +148,10 @@ jobs:
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libpng.cmd" run: "& winbuild\\build\\build_dep_libpng.cmd"
- name: Build dependencies / libavif
if: steps.build-cache.outputs.cache-hit != 'true' && matrix.architecture == 'x64'
run: "& winbuild\\build\\build_dep_libavif.cmd"
# for FreeType WOFF2 font support # for FreeType WOFF2 font support
- name: Build dependencies / brotli - name: Build dependencies / brotli
if: steps.build-cache.outputs.cache-hit != 'true' if: steps.build-cache.outputs.cache-hit != 'true'
@ -158,8 +193,7 @@ jobs:
- name: Build Pillow - name: Build Pillow
run: | run: |
$FLAGS="-C raqm=vendor -C fribidi=vendor" $FLAGS="-C raqm=vendor -C fribidi=vendor"
if ('${{ github.event_name }}' -ne 'pull_request') { $FLAGS+=" -C imagequant=disable" } cmd /c "winbuild\build\build_env.cmd && $env:pythonLocation\python.exe -m pip install -v $FLAGS .[tests]"
cmd /c "winbuild\build\build_env.cmd && $env:pythonLocation\python.exe -m pip install -v $FLAGS ."
& $env:pythonLocation\python.exe selftest.py --installed & $env:pythonLocation\python.exe selftest.py --installed
shell: pwsh shell: pwsh
@ -171,8 +205,8 @@ jobs:
- name: Test Pillow - name: Test Pillow
run: | run: |
path %GITHUB_WORKSPACE%\\winbuild\\build\\bin;%PATH% path %GITHUB_WORKSPACE%\winbuild\build\bin;%PATH%
python.exe -m pytest -vx -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests .ci\test.cmd
shell: cmd shell: cmd
- name: Prepare to upload errors - name: Prepare to upload errors
@ -182,7 +216,7 @@ jobs:
shell: bash shell: bash
- name: Upload errors - name: Upload errors
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: errors name: errors
@ -194,52 +228,12 @@ jobs:
shell: pwsh shell: pwsh
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
file: ./coverage.xml files: ./coverage.xml
flags: GHA_Windows flags: GHA_Windows
name: ${{ runner.os }} Python ${{ matrix.python-version }} name: ${{ runner.os }} Python ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Build wheel
id: wheel
if: "github.event_name != 'pull_request'"
run: |
mkdir fribidi
copy winbuild\build\bin\fribidi* fribidi
setlocal EnableDelayedExpansion
for %%f in (winbuild\build\license\*) do (
set x=%%~nf
rem Skip FriBiDi license, it is not included in the wheel.
set fribidi=!x:~0,7!
if NOT !fribidi!==fribidi (
rem Skip imagequant license, it is not included in the wheel.
set libimagequant=!x:~0,13!
if NOT !libimagequant!==libimagequant (
echo. >> LICENSE
echo ===== %%~nf ===== >> LICENSE
echo. >> LICENSE
type %%f >> LICENSE
)
)
)
for /f "tokens=3 delims=/" %%a in ("${{ github.ref }}") do echo dist=dist-%%a >> %GITHUB_OUTPUT%
call winbuild\\build\\build_env.cmd
%pythonLocation%\python.exe -m pip wheel -v -C raqm=vendor -C fribidi=vendor -C imagequant=disable .
shell: cmd
- name: Upload wheel
uses: actions/upload-artifact@v3
if: "github.event_name != 'pull_request'"
with:
name: ${{ steps.wheel.outputs.dist }}
path: "*.whl"
- name: Upload fribidi.dll
if: "github.event_name != 'pull_request' && matrix.python-version == 3.11"
uses: actions/upload-artifact@v3
with:
name: fribidi
path: fribidi\*
success: success:
permissions: permissions:

View File

@ -2,13 +2,21 @@ name: Test
on: on:
push: push:
branches:
- "**"
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
pull_request: pull_request:
paths-ignore: paths-ignore:
- ".github/workflows/docs.yml" - ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**" - "docs/**"
- "wheels/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -18,6 +26,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
FORCE_COLOR: 1
jobs: jobs:
build: build:
@ -29,43 +41,68 @@ jobs:
"ubuntu-latest", "ubuntu-latest",
] ]
python-version: [ python-version: [
"pypy3.10", "pypy3.11",
"pypy3.9", "3.14t",
"3.12-dev", "3.14",
"3.13t",
"3.13",
"3.12",
"3.11", "3.11",
"3.10", "3.10",
"3.9", "3.9",
"3.8",
] ]
include: include:
- python-version: "3.9" - { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
PYTHONOPTIMIZE: 1 - { python-version: "3.10", PYTHONOPTIMIZE: 2 }
REVERSE: "--reverse" # Free-threaded
- python-version: "3.8" - { python-version: "3.14t", disable-gil: true }
PYTHONOPTIMIZE: 2 - { python-version: "3.13t", disable-gil: true }
# M1 only available for 3.10+
- { os: "macos-13", python-version: "3.9" }
exclude:
- { os: "macos-latest", python-version: "3.9" }
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }} name: ${{ matrix.os }} Python ${{ matrix.python-version }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip cache: pip
cache-dependency-path: ".ci/*.sh" cache-dependency-path: |
".ci/*.sh"
"pyproject.toml"
- name: Set PYTHON_GIL
if: "${{ matrix.disable-gil }}"
run: |
echo "PYTHON_GIL=0" >> $GITHUB_ENV
- name: Build system information - name: Build system information
run: python3 .github/workflows/system-info.py run: python3 .github/workflows/system-info.py
- name: Cache libimagequant
if: startsWith(matrix.os, 'ubuntu')
uses: actions/cache@v4
id: cache-libimagequant
with:
path: ~/cache-libimagequant
key: ${{ runner.os }}-libimagequant-${{ hashFiles('depends/install_imagequant.sh') }}
- name: Install Linux dependencies - name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: | run: |
.ci/install.sh .ci/install.sh
env: env:
GHA_PYTHON_VERSION: ${{ matrix.python-version }} GHA_PYTHON_VERSION: ${{ matrix.python-version }}
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
- name: Install macOS dependencies - name: Install macOS dependencies
if: startsWith(matrix.os, 'macOS') if: startsWith(matrix.os, 'macOS')
@ -74,6 +111,10 @@ jobs:
env: env:
GHA_PYTHON_VERSION: ${{ matrix.python-version }} GHA_PYTHON_VERSION: ${{ matrix.python-version }}
- name: Register gcc problem matcher
if: "matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'"
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
- name: Build - name: Build
run: | run: |
.ci/build.sh .ci/build.sh
@ -100,7 +141,7 @@ jobs:
mkdir -p Tests/errors mkdir -p Tests/errors
- name: Upload errors - name: Upload errors
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: errors name: errors
@ -111,11 +152,11 @@ jobs:
.ci/after_success.sh .ci/after_success.sh
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v5
with: with:
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }} flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }} name: ${{ matrix.os }} Python ${{ matrix.python-version }}
gcov: true token: ${{ secrets.CODECOV_ORG_TOKEN }}
success: success:
permissions: permissions:

403
.github/workflows/wheels-dependencies.sh vendored Executable file
View File

@ -0,0 +1,403 @@
#!/bin/bash
# Safety check - Pillow builds require that CIBW_ARCHS is set, and that it only
# contains a single value (even though cibuildwheel allows multiple values in
# CIBW_ARCHS). This check doesn't work on Linux because of how the CIBW_ARCHS
# variable is exposed.
function check_cibw_archs {
if [[ -z "$CIBW_ARCHS" ]]; then
echo "ERROR: Pillow builds require CIBW_ARCHS be defined."
exit 1
fi
if [[ "$CIBW_ARCHS" == *" "* ]]; then
echo "ERROR: Pillow builds only support a single architecture in CIBW_ARCHS."
exit 1
fi
}
# Setup that needs to be done before multibuild utils are invoked. Process
# potential cross-build platforms before native platforms to ensure that we pick
# up the cross environment.
PROJECTDIR=$(pwd)
if [[ "$CIBW_PLATFORM" == "ios" ]]; then
check_cibw_archs
# On iOS, CIBW_ARCHS is actually a multi-arch - arm64_iphoneos,
# arm64_iphonesimulator or x86_64_iphonesimulator. Split into the CPU
# platform, and the iOS SDK.
PLAT=$(echo $CIBW_ARCHS | sed "s/\(.*\)_\(.*\)/\1/")
IOS_SDK=$(echo $CIBW_ARCHS | sed "s/\(.*\)_\(.*\)/\2/")
# Build iOS builds in `build/iphoneos` or `build/iphonesimulator`
# (depending on the build target). Install them into `build/deps/iphoneos`
# or `build/deps/iphonesimulator`
WORKDIR=$(pwd)/build/$IOS_SDK
BUILD_PREFIX=$(pwd)/build/deps/$IOS_SDK
PATCH_DIR=$(pwd)/patches/iOS
# GNU tooling insists on using aarch64 rather than arm64
if [[ $PLAT == "arm64" ]]; then
GNU_ARCH=aarch64
else
GNU_ARCH=x86_64
fi
IOS_SDK_PATH=$(xcrun --sdk $IOS_SDK --show-sdk-path)
CMAKE_SYSTEM_NAME=iOS
IOS_HOST_TRIPLE=$PLAT-apple-ios$IPHONEOS_DEPLOYMENT_TARGET
if [[ "$IOS_SDK" == "iphonesimulator" ]]; then
IOS_HOST_TRIPLE=$IOS_HOST_TRIPLE-simulator
fi
# GNU Autotools doesn't recognize the existence of arm64-apple-ios-simulator
# as a valid host. However, the only difference between arm64-apple-ios and
# arm64-apple-ios-simulator is the choice of sysroot, and that is
# coordinated by CC, CFLAGS etc. From the perspective of configure, the two
# platforms are identical, so we can use arm64-apple-ios consistently.
# This (mostly) avoids us needing to patch config.sub in dependency sources.
HOST_CONFIGURE_FLAGS="--disable-shared --enable-static --host=$GNU_ARCH-apple-ios --build=$GNU_ARCH-apple-darwin"
# CMake has native support for iOS. However, most of that support is based
# on using the Xcode builder, which isn't very helpful for most of Pillow's
# dependencies. Therefore, we lean on the OSX configurations, plus CC, CFLAGS
# etc. to ensure the right sysroot is selected.
HOST_CMAKE_FLAGS="-DCMAKE_SYSTEM_NAME=$CMAKE_SYSTEM_NAME -DCMAKE_SYSTEM_PROCESSOR=$GNU_ARCH -DCMAKE_OSX_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET -DCMAKE_OSX_SYSROOT=$IOS_SDK_PATH -DBUILD_SHARED_LIBS=NO -DENABLE_SHARED=NO"
# Meson needs to be pointed at a cross-platform configuration file
# This will be generated once CC etc. have been evaluated.
HOST_MESON_FLAGS="--cross-file $WORKDIR/meson-cross.txt -Dprefer_static=true -Ddefault_library=static"
elif [[ "$(uname -s)" == "Darwin" ]]; then
check_cibw_archs
# Build macOS dependencies in `build/darwin`
# Install them into `build/deps/darwin`
PLAT=$CIBW_ARCHS
WORKDIR=$(pwd)/build/darwin
BUILD_PREFIX=$(pwd)/build/deps/darwin
else
# Build prefix will default to /usr/local
PLAT="${CIBW_ARCHS:-$AUDITWHEEL_ARCH}"
WORKDIR=$(pwd)/build
MB_ML_LIBC=${AUDITWHEEL_POLICY::9}
MB_ML_VER=${AUDITWHEEL_POLICY:9}
fi
# Define custom utilities
source wheels/multibuild/common_utils.sh
source wheels/multibuild/library_builders.sh
if [[ -z "$IS_MACOS" ]]; then
source wheels/multibuild/manylinux_utils.sh
fi
ARCHIVE_SDIR=pillow-depends-main
# Package versions for fresh source builds. Version numbers with "Patched"
# annotations have a source code patch that is required for some platforms. If
# you change those versions, ensure the patch is also updated.
FREETYPE_VERSION=2.13.3
HARFBUZZ_VERSION=11.2.1
LIBPNG_VERSION=1.6.50
JPEGTURBO_VERSION=3.1.1
OPENJPEG_VERSION=2.5.3
XZ_VERSION=5.8.1
TIFF_VERSION=4.7.0
LCMS2_VERSION=2.17
ZLIB_VERSION=1.3.1
ZLIB_NG_VERSION=2.2.4
LIBWEBP_VERSION=1.6.0
BZIP2_VERSION=1.0.8
LIBXCB_VERSION=1.17.0
BROTLI_VERSION=1.1.0 # Patched; next release won't need patching. See patch file.
LIBAVIF_VERSION=1.3.0
function build_pkg_config {
if [ -e pkg-config-stamp ]; then return; fi
# This essentially duplicates the Homebrew recipe.
# On iOS, we need a binary that can be executed on the build machine; but we
# can create a host-specific pc-path to store iOS .pc files. To ensure a
# macOS-compatible build, we temporarily clear environment flags that set
# iOS-specific values.
if [[ -n "$IOS_SDK" ]]; then
ORIGINAL_HOST_CONFIGURE_FLAGS=$HOST_CONFIGURE_FLAGS
ORIGINAL_IPHONEOS_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET
unset HOST_CONFIGURE_FLAGS
unset IPHONEOS_DEPLOYMENT_TARGET
fi
CFLAGS="$CFLAGS -Wno-int-conversion" CPPFLAGS="" build_simple pkg-config 0.29.2 https://pkg-config.freedesktop.org/releases tar.gz \
--disable-debug --disable-host-tool --with-internal-glib \
--with-pc-path=$BUILD_PREFIX/share/pkgconfig:$BUILD_PREFIX/lib/pkgconfig \
--with-system-include-path=$(xcrun --show-sdk-path --sdk macosx)/usr/include
if [[ -n "$IOS_SDK" ]]; then
HOST_CONFIGURE_FLAGS=$ORIGINAL_HOST_CONFIGURE_FLAGS
IPHONEOS_DEPLOYMENT_TARGET=$ORIGINAL_IPHONEOS_DEPLOYMENT_TARGET
fi;
export PKG_CONFIG=$BUILD_PREFIX/bin/pkg-config
touch pkg-config-stamp
}
function build_zlib_ng {
if [ -e zlib-stamp ]; then return; fi
# zlib-ng uses a "configure" script, but it's not a GNU autotools script, so
# it doesn't honor the usual flags. Temporarily disable any
# cross-compilation flags.
ORIGINAL_HOST_CONFIGURE_FLAGS=$HOST_CONFIGURE_FLAGS
unset HOST_CONFIGURE_FLAGS
build_github zlib-ng/zlib-ng $ZLIB_NG_VERSION --zlib-compat
HOST_CONFIGURE_FLAGS=$ORIGINAL_HOST_CONFIGURE_FLAGS
if [[ -n "$IS_MACOS" ]] && [[ -z "$IOS_SDK" ]]; then
# Ensure that on macOS, the library name is an absolute path, not an
# @rpath, so that delocate picks up the right library (and doesn't need
# DYLD_LIBRARY_PATH to be set). The default Makefile doesn't have an
# option to control the install_name. This isn't needed on iOS, as iOS
# only builds the static library.
install_name_tool -id $BUILD_PREFIX/lib/libz.1.dylib $BUILD_PREFIX/lib/libz.1.dylib
fi
touch zlib-stamp
}
function build_brotli {
if [ -e brotli-stamp ]; then return; fi
local out_dir=$(fetch_unpack https://github.com/google/brotli/archive/v$BROTLI_VERSION.tar.gz brotli-$BROTLI_VERSION.tar.gz)
(cd $out_dir \
&& cmake -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX -DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib -DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib $HOST_CMAKE_FLAGS . \
&& make install)
touch brotli-stamp
}
function build_harfbuzz {
if [ -e harfbuzz-stamp ]; then return; fi
python3 -m pip install meson ninja
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
(cd $out_dir \
&& meson setup build --prefix=$BUILD_PREFIX --libdir=$BUILD_PREFIX/lib --buildtype=minsize -Dfreetype=enabled -Dglib=disabled -Dtests=disabled $HOST_MESON_FLAGS)
(cd $out_dir/build \
&& meson install)
touch harfbuzz-stamp
}
function build_libavif {
if [ -e libavif-stamp ]; then return; fi
python3 -m pip install meson ninja
if [[ "$PLAT" == "x86_64" ]] || [ -n "$SANITIZER" ]; then
build_simple nasm 2.16.03 https://www.nasm.us/pub/nasm/releasebuilds/2.16.03
fi
local build_type=MinSizeRel
local lto=ON
local libavif_cmake_flags
if [ -n "$IS_MACOS" ]; then
lto=OFF
libavif_cmake_flags=(
-DCMAKE_C_FLAGS_MINSIZEREL="-Oz -DNDEBUG -flto" \
-DCMAKE_CXX_FLAGS_MINSIZEREL="-Oz -DNDEBUG -flto" \
-DCMAKE_SHARED_LINKER_FLAGS_INIT="-Wl,-S,-x,-dead_strip_dylibs" \
)
else
if [[ "$MB_ML_VER" == 2014 ]] && [[ "$PLAT" == "x86_64" ]]; then
build_type=Release
fi
libavif_cmake_flags=(-DCMAKE_SHARED_LINKER_FLAGS_INIT="-Wl,--strip-all,-z,relro,-z,now")
fi
local out_dir=$(fetch_unpack https://github.com/AOMediaCodec/libavif/archive/refs/tags/v$LIBAVIF_VERSION.tar.gz libavif-$LIBAVIF_VERSION.tar.gz)
# CONFIG_AV1_HIGHBITDEPTH=0 is a flag for libaom (included as a subproject
# of libavif) that disables support for encoding high bit depth images.
(cd $out_dir \
&& cmake \
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
-DCMAKE_INSTALL_LIBDIR=$BUILD_PREFIX/lib \
-DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib \
-DBUILD_SHARED_LIBS=ON \
-DAVIF_LIBSHARPYUV=LOCAL \
-DAVIF_LIBYUV=LOCAL \
-DAVIF_CODEC_AOM=LOCAL \
-DCONFIG_AV1_HIGHBITDEPTH=0 \
-DAVIF_CODEC_AOM_DECODE=OFF \
-DAVIF_CODEC_DAV1D=LOCAL \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=$lto \
-DCMAKE_C_VISIBILITY_PRESET=hidden \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DCMAKE_BUILD_TYPE=$build_type \
"${libavif_cmake_flags[@]}" \
. \
&& make install)
touch libavif-stamp
}
function build {
build_xz
if [ -z "$IS_ALPINE" ] && [ -z "$SANITIZER" ] && [ -z "$IS_MACOS" ]; then
yum remove -y zlib-devel
fi
if [[ -n "$IS_MACOS" ]] && [[ "$MACOSX_DEPLOYMENT_TARGET" == "10.10" || "$MACOSX_DEPLOYMENT_TARGET" == "10.13" ]]; then
build_new_zlib
else
build_zlib_ng
fi
build_simple xcb-proto 1.17.0 https://xorg.freedesktop.org/archive/individual/proto
if [[ -n "$IS_MACOS" ]]; then
build_simple xorgproto 2024.1 https://www.x.org/pub/individual/proto
build_simple libXau 1.0.12 https://www.x.org/pub/individual/lib
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
else
sed "s/\${pc_sysrootdir\}//" $BUILD_PREFIX/share/pkgconfig/xcb-proto.pc > $BUILD_PREFIX/lib/pkgconfig/xcb-proto.pc
fi
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
build_libjpeg_turbo
if [[ -n "$IS_MACOS" ]]; then
# Custom tiff build to include jpeg; by default, configure won't include
# headers/libs in the custom macOS/iOS prefix. Explicitly disable webp,
# libdeflate and zstd, because on x86_64 macs, it will pick up the
# Homebrew versions of those libraries from /usr/local.
build_simple tiff $TIFF_VERSION https://download.osgeo.org/libtiff tar.gz \
--with-jpeg-include-dir=$BUILD_PREFIX/include --with-jpeg-lib-dir=$BUILD_PREFIX/lib \
--disable-webp --disable-libdeflate --disable-zstd
else
build_tiff
fi
if [[ -z "$IOS_SDK" ]]; then
# Short term workaround; don't build libavif on iOS
build_libavif
fi
build_libpng
build_lcms2
build_openjpeg
webp_cflags="-O3 -DNDEBUG"
if [[ -n "$IS_MACOS" ]]; then
webp_cflags="$webp_cflags -Wl,-headerpad_max_install_names"
fi
webp_ldflags=""
if [[ -n "$IOS_SDK" ]]; then
webp_ldflags="$webp_ldflags -llzma -lz"
fi
CFLAGS="$CFLAGS $webp_cflags" LDFLAGS="$LDFLAGS $webp_ldflags" build_simple libwebp $LIBWEBP_VERSION \
https://storage.googleapis.com/downloads.webmproject.org/releases/webp tar.gz \
--enable-libwebpmux --enable-libwebpdemux
build_brotli
if [[ -n "$IS_MACOS" ]]; then
# Custom freetype build
build_simple freetype $FREETYPE_VERSION https://download.savannah.gnu.org/releases/freetype tar.gz --with-harfbuzz=no
else
build_freetype
fi
if [[ -z "$IOS_SDK" ]]; then
# On iOS, there's no vendor-provided raqm, and we can't ship it due to
# licensing, so there's no point building harfbuzz.
build_harfbuzz
fi
}
function create_meson_cross_config {
cat << EOF > $WORKDIR/meson-cross.txt
[binaries]
pkg-config = '$BUILD_PREFIX/bin/pkg-config'
cmake = '$(which cmake)'
c = '$CC'
cpp = '$CXX'
strip = '$STRIP'
[built-in options]
c_args = '$CFLAGS -I$BUILD_PREFIX/include'
cpp_args = '$CXXFLAGS -I$BUILD_PREFIX/include'
c_link_args = '$CFLAGS -L$BUILD_PREFIX/lib'
cpp_link_args = '$CFLAGS -L$BUILD_PREFIX/lib'
[host_machine]
system = 'darwin'
subsystem = 'ios'
kernel = 'xnu'
cpu_family = '$(uname -m)'
cpu = '$(uname -m)'
endian = 'little'
EOF
}
# Perform all dependency builds in the build subfolder.
mkdir -p $WORKDIR
pushd $WORKDIR > /dev/null
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
if [[ ! -d $WORKDIR/pillow-depends-main ]]; then
if [[ ! -f $PROJECTDIR/pillow-depends-main.zip ]]; then
echo "Download pillow dependency sources..."
curl -fSL -o $PROJECTDIR/pillow-depends-main.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
fi
echo "Unpacking pillow dependency sources..."
untar $PROJECTDIR/pillow-depends-main.zip
fi
if [[ -n "$IS_MACOS" ]]; then
# Ensure the basic structure of the build prefix directory exists.
mkdir -p "$BUILD_PREFIX/bin"
mkdir -p "$BUILD_PREFIX/lib"
# Ensure pkg-config is available. This is done *before* setting CC, CFLAGS
# etc. to ensure that the build is *always* a macOS build, even when building
# for iOS.
build_pkg_config
# Ensure cmake is available, and that the default prefix used by CMake is
# the build prefix
python3 -m pip install cmake
export CMAKE_PREFIX_PATH=$BUILD_PREFIX
if [[ -n "$IOS_SDK" ]]; then
export AR="$(xcrun --find --sdk $IOS_SDK ar)"
export CPP="$(xcrun --find --sdk $IOS_SDK clang) -E"
export CC=$(xcrun --find --sdk $IOS_SDK clang)
export CXX=$(xcrun --find --sdk $IOS_SDK clang++)
export LD=$(xcrun --find --sdk $IOS_SDK ld)
export STRIP=$(xcrun --find --sdk $IOS_SDK strip)
CPPFLAGS="$CPPFLAGS --sysroot=$IOS_SDK_PATH"
CFLAGS="-target $IOS_HOST_TRIPLE --sysroot=$IOS_SDK_PATH -mios-version-min=$IPHONEOS_DEPLOYMENT_TARGET"
CXXFLAGS="-target $IOS_HOST_TRIPLE --sysroot=$IOS_SDK_PATH -mios-version-min=$IPHONEOS_DEPLOYMENT_TARGET"
# Having IPHONEOS_DEPLOYMENT_TARGET in the environment causes problems
# with some cross-building toolchains, because it introduces implicit
# behavior into clang.
unset IPHONEOS_DEPLOYMENT_TARGET
# Now that we know CC etc., we can create a meson cross-configuration file
create_meson_cross_config
fi
fi
wrap_wheel_builder build
# A safety catch for iOS. iOS can't use dynamic libraries, but clang will prefer
# to link dynamic libraries to static libraries. The only way to reliably
# prevent this is to not have dynamic libraries available in the first place.
# The build process *shouldn't* generate any dylibs... but just in case, purge
# any dylibs that *have* been installed into the build prefix directory.
if [[ -n "$IOS_SDK" ]]; then
find "$BUILD_PREFIX" -name "*.dylib" -exec rm -rf {} \;
fi
# Return to the project root to finish the build
popd > /dev/null
# Append licenses
for filename in wheels/dependency_licenses/*; do
echo -e "\n\n----\n\n$(basename $filename | cut -f 1 -d '.')\n" | cat >> LICENSE
cat $filename >> LICENSE
done

26
.github/workflows/wheels-test.ps1 vendored Normal file
View File

@ -0,0 +1,26 @@
param ([string]$venv, [string]$pillow="C:\pillow")
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
Set-PSDebug -Trace 1
if ("$venv" -like "*\cibw-run-*\pp*-win_amd64\*") {
# unlike CPython, PyPy requires Visual C++ Redistributable to be installed
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
C:\vc_redist.x64.exe /install /quiet /norestart | Out-Null
}
$env:path += ";$pillow\winbuild\build\bin\"
if (Test-Path $venv\Scripts\pypy.exe) {
$python = "pypy.exe"
} else {
$python = "python.exe"
}
& reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\python.exe" /v "GlobalFlag" /t REG_SZ /d "0x02000000" /f
cd $pillow
& $venv\Scripts\$python -VV
if (!$?) { exit $LASTEXITCODE }
& $venv\Scripts\$python selftest.py
if (!$?) { exit $LASTEXITCODE }
& $venv\Scripts\$python -m pytest -vv -x checks\check_wheel.py
if (!$?) { exit $LASTEXITCODE }
& $venv\Scripts\$python -m pytest -vv -x Tests
if (!$?) { exit $LASTEXITCODE }

37
.github/workflows/wheels-test.sh vendored Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
set -e
# Ensure fribidi is installed by the system.
if [[ "$OSTYPE" == "darwin"* ]]; then
# If Homebrew is on the path during the build, it may leak into the wheels.
# However, we *do* need Homebrew to provide a copy of fribidi for
# testing purposes so that we can verify the fribidi shim works as expected.
if [[ "$(uname -m)" == "x86_64" ]]; then
HOMEBREW_PREFIX=/usr/local
else
HOMEBREW_PREFIX=/opt/homebrew
fi
$HOMEBREW_PREFIX/bin/brew install fribidi
# Add the lib folder for fribidi so that the vendored library can be found.
# Don't use $HOMEWBREW_PREFIX/lib directly - use the lib folder where the
# installed copy of fribidi is cellared. This ensures we don't pick up the
# Homebrew version of any other library that we're dependent on (most notably,
# freetype).
export DYLD_LIBRARY_PATH=$(dirname $(realpath $HOMEBREW_PREFIX/lib/libfribidi.dylib))
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then
apk add curl fribidi
else
yum install -y fribidi
fi
if [ ! -d "test-images-main" ]; then
curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
unzip pillow-test-images.zip
mv test-images-main/* Tests/images
fi
# Runs tests
python3 selftest.py
python3 -m pytest -vv -x checks/check_wheel.py
python3 -m pytest -vv -x

289
.github/workflows/wheels.yml vendored Normal file
View File

@ -0,0 +1,289 @@
name: Wheels
on:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
- cron: "42 1 * * 0,3"
push:
paths:
- ".ci/requirements-cibw.txt"
- ".github/workflows/wheel*"
- "pyproject.toml"
- "setup.py"
- "wheels/*"
- "winbuild/build_prepare.py"
- "winbuild/fribidi.cmake"
tags:
- "*"
pull_request:
paths:
- ".ci/requirements-cibw.txt"
- ".github/workflows/wheel*"
- "pyproject.toml"
- "setup.py"
- "wheels/*"
- "winbuild/build_prepare.py"
- "winbuild/fribidi.cmake"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 1
jobs:
build-native-wheels:
if: github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: "macOS 10.10 x86_64"
platform: macos
os: macos-13
cibw_arch: x86_64
build: "cp3{9,10,11}*"
macosx_deployment_target: "10.10"
- name: "macOS 10.13 x86_64"
platform: macos
os: macos-13
cibw_arch: x86_64
build: "cp3{12,13,14}*"
macosx_deployment_target: "10.13"
- name: "macOS 10.15 x86_64"
platform: macos
os: macos-13
cibw_arch: x86_64
build: "pp3*"
macosx_deployment_target: "10.15"
- name: "macOS arm64"
platform: macos
os: macos-latest
cibw_arch: arm64
macosx_deployment_target: "11.0"
- name: "manylinux2014 and musllinux x86_64"
platform: linux
os: ubuntu-latest
cibw_arch: x86_64
manylinux: "manylinux2014"
- name: "manylinux_2_28 x86_64"
platform: linux
os: ubuntu-latest
cibw_arch: x86_64
build: "*manylinux*"
- name: "manylinux2014 and musllinux aarch64"
platform: linux
os: ubuntu-24.04-arm
cibw_arch: aarch64
manylinux: "manylinux2014"
- name: "manylinux_2_28 aarch64"
platform: linux
os: ubuntu-24.04-arm
cibw_arch: aarch64
build: "*manylinux*"
- name: "iOS arm64 device"
platform: ios
os: macos-latest
cibw_arch: arm64_iphoneos
- name: "iOS arm64 simulator"
platform: ios
os: macos-latest
cibw_arch: arm64_iphonesimulator
- name: "iOS x86_64 simulator"
platform: ios
os: macos-13
cibw_arch: x86_64_iphonesimulator
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install cibuildwheel
run: |
python3 -m pip install -r .ci/requirements-cibw.txt
- name: Build wheels
run: |
python3 -m cibuildwheel --output-dir wheelhouse
env:
CIBW_PLATFORM: ${{ matrix.platform }}
CIBW_ARCHS: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.build }}
CIBW_ENABLE: cpython-prerelease cpython-freethreading pypy
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }}
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: ${{ matrix.manylinux }}
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: ${{ matrix.manylinux }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.name }}
path: ./wheelhouse/*.whl
windows:
if: github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
name: Windows ${{ matrix.cibw_arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- cibw_arch: x86
os: windows-latest
- cibw_arch: AMD64
os: windows-latest
- cibw_arch: ARM64
os: windows-11-arm
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout extra test images
uses: actions/checkout@v4
with:
persist-credentials: false
repository: python-pillow/test-images
path: Tests\test-images
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install cibuildwheel
run: |
python.exe -m pip install -r .ci/requirements-cibw.txt
- name: Prepare for build
run: |
choco install nasm --no-progress
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
# Install extra test images
xcopy /S /Y Tests\test-images\* Tests\images
& python.exe winbuild\build_prepare.py -v --no-imagequant --architecture=${{ matrix.cibw_arch }}
shell: pwsh
- name: Build wheels
run: |
setlocal EnableDelayedExpansion
for %%f in (winbuild\build\license\*) do (
set x=%%~nf
rem Skip FriBiDi license, it is not included in the wheel.
set fribidi=!x:~0,7!
if NOT !fribidi!==fribidi (
rem Skip imagequant license, it is not included in the wheel.
set libimagequant=!x:~0,13!
if NOT !libimagequant!==libimagequant (
echo. >> LICENSE
echo ===== %%~nf ===== >> LICENSE
echo. >> LICENSE
type %%f >> LICENSE
)
)
)
call winbuild\\build\\build_env.cmd
%pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse
env:
CIBW_ARCHS: ${{ matrix.cibw_arch }}
CIBW_BEFORE_ALL: "{package}\\winbuild\\build\\build_dep_all.cmd"
CIBW_CACHE_PATH: "C:\\cibw"
CIBW_ENABLE: cpython-prerelease cpython-freethreading pypy
CIBW_TEST_SKIP: "*-win_arm64"
CIBW_TEST_COMMAND: 'docker run --rm
-v {project}:C:\pillow
-v C:\cibw:C:\cibw
-v %CD%\..\venv-test:%CD%\..\venv-test
-e CI -e GITHUB_ACTIONS
mcr.microsoft.com/windows/servercore:ltsc2022
powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
shell: cmd
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: dist-windows-${{ matrix.cibw_arch }}
path: ./wheelhouse/*.whl
- name: Upload fribidi.dll
uses: actions/upload-artifact@v4
with:
name: fribidi-windows-${{ matrix.cibw_arch }}
path: winbuild\build\bin\fribidi*
sdist:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: make sdist
- uses: actions/upload-artifact@v4
with:
name: dist-sdist
path: dist/*.tar.gz
scientific-python-nightly-wheels-publish:
if: github.repository_owner == 'python-pillow' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
needs: [build-native-wheels, windows]
runs-on: ubuntu-latest
name: Upload wheels to scientific-python-nightly-wheels
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true
- name: Upload wheels to scientific-python-nightly-wheels
uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
pypi-publish:
if: github.repository_owner == 'python-pillow' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [build-native-wheels, windows, sdist]
runs-on: ubuntu-latest
name: Upload release to PyPI
environment:
name: release-pypi
url: https://pypi.org/p/Pillow
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true

7
.github/zizmor.yml vendored Normal file
View File

@ -0,0 +1,7 @@
# Configuration for the zizmor static analysis tool, run via pre-commit in CI
# https://woodruffw.github.io/zizmor/configuration/
rules:
unpinned-uses:
config:
policies:
"*": ref-pin

5
.gitignore vendored
View File

@ -19,6 +19,7 @@ lib64/
parts/ parts/
sdist/ sdist/
var/ var/
wheelhouse/
*.egg-info/ *.egg-info/
.installed.cfg .installed.cfg
*.egg *.egg
@ -90,5 +91,9 @@ Tests/images/msp
Tests/images/picins Tests/images/picins
Tests/images/sunraster Tests/images/sunraster
# Test and dependency downloads
pillow-depends-main.zip
pillow-test-images.zip
# pyinstaller # pyinstaller
*.spec *.spec

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "multibuild"]
path = wheels/multibuild
url = https://github.com/multi-build/multibuild.git

View File

@ -1,73 +1,92 @@
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 23.3.0 rev: v0.12.2
hooks:
- id: ruff-check
args: [--exit-non-zero-on-fix]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks: hooks:
- id: black - id: black
args: [--target-version=py38]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.5 rev: 1.8.6
hooks: hooks:
- id: bandit - id: bandit
args: [--severity-level=high] args: [--severity-level=high]
files: ^src/ files: ^src/
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa
- repo: https://github.com/Lucas-C/pre-commit-hooks - repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1 rev: v1.5.5
hooks: hooks:
- id: remove-tabs - id: remove-tabs
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$) exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$|\.patch$)
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/pre-commit/mirrors-clang-format
rev: 6.0.0 rev: v20.1.7
hooks: hooks:
- id: flake8 - id: clang-format
additional_dependencies: types: [c]
[flake8-2020, flake8-errmsg, flake8-implicit-str-concat] exclude: ^src/thirdparty/
- repo: https://github.com/pre-commit/pygrep-hooks - repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 rev: v1.10.0
hooks: hooks:
- id: python-check-blanket-noqa
- id: rst-backticks - id: rst-backticks
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v5.0.0
hooks: hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict - id: check-merge-conflict
- id: check-json - id: check-json
- id: check-toml - id: check-toml
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
exclude: ^Tests/images/|\.patch$
- id: trailing-whitespace
exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/|\.patch$
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.2
hooks:
- id: check-github-workflows
- id: check-readthedocs
- id: check-renovate
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.11.0
hooks:
- id: zizmor
- repo: https://github.com/sphinx-contrib/sphinx-lint - repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.6.7 rev: v1.0.0
hooks: hooks:
- id: sphinx-lint - id: sphinx-lint
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.12.1 rev: v2.6.0
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject - repo: https://github.com/abravalheri/validate-pyproject
rev: v0.13 rev: v0.24.1
hooks: hooks:
- id: validate-pyproject - id: validate-pyproject
additional_dependencies: [trove-classifiers>=2024.10.12]
- repo: https://github.com/tox-dev/tox-ini-fmt - repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.0 rev: 1.5.0
hooks: hooks:
- id: tox-ini-fmt - id: tox-ini-fmt
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
ci: ci:
autoupdate_schedule: monthly autoupdate_schedule: monthly

View File

@ -1,11 +1,18 @@
version: 2 version: 2
sphinx:
configuration: docs/conf.py
formats: [pdf] formats: [pdf]
build: build:
os: ubuntu-22.04 os: ubuntu-lts-latest
tools: tools:
python: "3.11" python: "3"
jobs:
post_checkout:
- git remote add upstream https://github.com/python-pillow/Pillow.git # For forks
- git fetch upstream --tags
python: python:
install: install:

View File

@ -2,6 +2,658 @@
Changelog (Pillow) Changelog (Pillow)
================== ==================
11.1.0 and newer
----------------
See GitHub Releases:
- https://github.com/python-pillow/Pillow/releases
11.0.0 (2024-10-15)
-------------------
- Update licence to MIT-CMU #8460
[hugovk]
- Conditionally define ImageCms type hint to avoid requiring core #8197
[radarhere]
- Support writing LONG8 offsets in AppendingTiffWriter #8417
[radarhere]
- Use ImageFile.MAXBLOCK when saving TIFF images #8461
[radarhere]
- Do not close provided file handles with libtiff when saving #8458
[radarhere]
- Support ImageFilter.BuiltinFilter for I;16* images #8438
[radarhere]
- Use ImagingCore.ptr instead of ImagingCore.id #8341
[homm, radarhere, hugovk]
- Updated EPS mode when opening images without transparency #8281
[Yay295, radarhere]
- Use transparency when combining P frames from APNGs #8443
[radarhere]
- Support all resampling filters when resizing I;16* images #8422
[radarhere]
- Free memory on early return #8413
[radarhere]
- Cast int before potentially exceeding INT_MAX #8402
[radarhere]
- Check image value before use #8400
[radarhere]
- Improved copying imagequant libraries #8420
[radarhere]
- Use Capsule for WebP saving #8386
[homm, radarhere]
- Fixed writing multiple StripOffsets to TIFF #8317
[Yay295, radarhere]
- Fix dereference before checking for NULL in ImagingTransformAffine #8398
[PavlNekrasov]
- Use transposed size after opening for TIFF images #8390
[radarhere, homm]
- Improve ImageFont error messages #8338
[yngvem, radarhere, hugovk]
- Mention MAX_TEXT_CHUNK limit in PNG error message #8391
[radarhere]
- Cast Dib handle to int #8385
[radarhere]
- Accept float stroke widths #8369
[radarhere]
- Deprecate ICNS (width, height, scale) sizes in favour of load(scale) #8352
[radarhere]
- Improved handling of RGBA palettes when saving GIF images #8366
[radarhere]
- Deprecate isImageType #8364
[radarhere]
- Support converting more modes to LAB by converting to RGBA first #8358
[radarhere]
- Deprecate support for FreeType 2.9.0 #8356
[hugovk, radarhere]
- Removed unused TiffImagePlugin IFD_LEGACY_API #8355
[radarhere]
- Handle duplicate EXIF header #8350
[zakajd, radarhere]
- Return early from BoxBlur if either width or height is zero #8347
[radarhere]
- Check text is either string or bytes #8308
[radarhere]
- Added writing XMP bytes to JPEG #8286
[radarhere]
- Support JPEG2000 RGBA palettes #8256
[radarhere]
- Expand C image to match GIF frame image size #8237
[radarhere]
- Allow saving I;16 images as PPM #8231
[radarhere]
- When IFD is missing, connect get_ifd() dictionary to Exif #8230
[radarhere]
- Skip truncated ICO mask if LOAD_TRUNCATED_IMAGES is enabled #8180
[radarhere]
- Treat unknown JPEG2000 colorspace as unspecified #8343
[radarhere]
- Updated error message when saving WebP with invalid width or height #8322
[radarhere, hugovk]
- Remove warning if NumPy failed to raise an error during conversion #8326
[radarhere]
- If left and right sides meet in ImageDraw.rounded_rectangle(), do not draw rectangle to fill gap #8304
[radarhere]
- Remove WebP support without anim, mux/demux, and with buggy alpha #8213
[homm, radarhere]
- Add missing TIFF CMYK;16B reader #8298
[homm]
- Remove all WITH_* flags from _imaging.c and other flags #8211
[homm]
- Improve ImageDraw2 shape methods #8265
[radarhere]
- Lock around usages of imaging memory arenas #8238
[lysnikolaou]
- Deprecate JpegImageFile huffman_ac and huffman_dc #8274
[radarhere]
- Deprecate ImageMath lambda_eval and unsafe_eval options argument #8242
[radarhere]
- Changed ContainerIO to subclass IO #8240
[radarhere]
- Move away from APIs that use borrowed references under the free-threaded build #8216
[hugovk, lysnikolaou]
- Allow size argument to resize() to be a NumPy array #8201
[radarhere]
- Drop support for Python 3.8 #8183
[hugovk, radarhere]
- Add support for Python 3.13 #8181
[hugovk, radarhere]
- Fix incompatibility with NumPy 1.20 #8187
[neutrinoceros, radarhere]
- Remove PSFile, PyAccess and USE_CFFI_ACCESS #8182
[hugovk, radarhere]
10.4.0 (2024-07-01)
-------------------
- Raise FileNotFoundError if show_file() path does not exist #8178
[radarhere]
- Improved reading 16-bit TGA images with colour #7965
[Yay295, radarhere]
- Deprecate non-image ImageCms modes #8031
[radarhere]
- Fixed processing multiple JPEG EXIF markers #8127
[radarhere]
- Do not preserve EXIFIFD tag by default when saving TIFF images #8110
[radarhere]
- Added ImageFont.load_default_imagefont() #8086
[radarhere]
- Added Image.WARN_POSSIBLE_FORMATS #8063
[radarhere]
- Remove zero-byte end padding when parsing any XMP data #8171
[radarhere]
- Do not detect Ultra HDR images as MPO #8056
[radarhere]
- Raise SyntaxError specific to JP2 #8146
[Yay295, radarhere]
- Do not use first frame duration for other frames when saving APNG images #8104
[radarhere]
- Consider I;16 pixel size when using a 1 mode mask #8112
[radarhere]
- When saving multiple PNG frames, convert to mode rather than raw mode #8087
[radarhere]
- Added byte support to FreeTypeFont #8141
[radarhere]
- Allow float center for rotate operations #8114
[radarhere]
- Do not read layers immediately when opening PSD images #8039
[radarhere]
- Restore original thread state #8065
[radarhere]
- Read IM and TIFF images as RGB, rather than RGBX #7997
[radarhere]
- Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED #7948
[radarhere]
- Clarify ImageDraw2 error message when size is missing #8165
[radarhere]
- Support unpacking more rawmodes to RGBA palettes #7966
[radarhere]
- Removed support for Qt 5 #8159
[radarhere]
- Improve ``ImageFont.freetype`` support for XDG directories on Linux #8135
[mamg22, radarhere]
- Improved consistency of XMP handling #8069
[radarhere]
- Use pkg-config to help find libwebp and raqm #8142
[radarhere]
- Accept 't' suffix for libtiff version #8126, #8129
[radarhere]
- Deprecate ImageDraw.getdraw hints parameter #8124
[radarhere, hugovk]
- Added ImageDraw circle() #8085
[void4, hugovk, radarhere]
- Add mypy target to Makefile #8077
[Yay295]
- Added more modes to Image.MODES #7984
[radarhere]
- Deprecate BGR;15, BGR;16 and BGR;24 modes #7978
[radarhere, hugovk]
- Fix ImagingAccess for I;16N on big-endian #7921
[Yay295, radarhere]
- Support reading P mode TIFF images with padding #7996
[radarhere]
- Deprecate support for libtiff < 4 #7998
[radarhere, hugovk]
- Corrected ImageShow UnixViewer command #7987
[radarhere]
- Use functools.cached_property in ImageStat #7952
[nulano, hugovk, radarhere]
- Add support for reading BITMAPV2INFOHEADER and BITMAPV3INFOHEADER #7956
[Cirras, radarhere]
- Support reading CMYK JPEG2000 images #7947
[radarhere]
10.3.0 (2024-04-01)
-------------------
- CVE-2024-28219: Use ``strncpy`` to avoid buffer overflow #7928
[radarhere, hugovk]
- Deprecate ``eval()``, replacing it with ``lambda_eval()`` and ``unsafe_eval()`` #7927
[radarhere, hugovk]
- Raise ``ValueError`` if seeking to greater than offset-sized integer in TIFF #7883
[radarhere]
- Add ``--report`` argument to ``__main__.py`` to omit supported formats #7818
[nulano, radarhere, hugovk]
- Added RGB to I;16, I;16L, I;16B and I;16N conversion #7918, #7920
[radarhere]
- Fix editable installation with custom build backend and configuration options #7658
[nulano, radarhere]
- Fix putdata() for I;16N on big-endian #7209
[Yay295, hugovk, radarhere]
- Determine MPO size from markers, not EXIF data #7884
[radarhere]
- Improved conversion from RGB to RGBa, LA and La #7888
[radarhere]
- Support FITS images with GZIP_1 compression #7894
[radarhere]
- Use I;16 mode for 9-bit JPEG 2000 images #7900
[scaramallion, radarhere]
- Raise ValueError if kmeans is negative #7891
[radarhere]
- Remove TIFF tag OSUBFILETYPE when saving using libtiff #7893
[radarhere]
- Raise ValueError for negative values when loading P1-P3 PPM images #7882
[radarhere]
- Added reading of JPEG2000 palettes #7870
[radarhere]
- Added alpha_quality argument when saving WebP images #7872
[radarhere]
- Fixed joined corners for ImageDraw rounded_rectangle() non-integer dimensions #7881
[radarhere]
- Stop reading EPS image at EOF marker #7753
[radarhere]
- PSD layer co-ordinates may be negative #7706
[radarhere]
- Use subprocess with CREATE_NO_WINDOW flag in ImageShow WindowsViewer #7791
[radarhere]
- When saving GIF frame that restores to background color, do not fill identical pixels #7788
[radarhere]
- Fixed reading PNG iCCP compression method #7823
[radarhere]
- Allow writing IFDRational to UNDEFINED tag #7840
[radarhere]
- Fix logged tag name when loading Exif data #7842
[radarhere]
- Use maximum frame size in IHDR chunk when saving APNG images #7821
[radarhere]
- Prevent opening P TGA images without a palette #7797
[radarhere]
- Use palette when loading ICO images #7798
[radarhere]
- Use consistent arguments for load_read and load_seek #7713
[radarhere]
- Turn off nullability warnings for macOS SDK #7827
[radarhere]
- Fix shift-sign issue in Convert.c #7838
[r-barnes, radarhere]
- Open 16-bit grayscale PNGs as I;16 #7849
[radarhere]
- Handle truncated chunks at the end of PNG images #7709
[lajiyuan, radarhere]
- Match mask size to pasted image size in GifImagePlugin #7779
[radarhere]
- Release GIL while calling ``WebPAnimDecoderGetNext`` #7782
[evanmiller, radarhere]
- Fixed reading FLI/FLC images with a prefix chunk #7804
[twolife]
- Update wl-paste handling and return None for some errors in grabclipboard() on Linux #7745
[nik012003, radarhere]
- Remove execute bit from ``setup.py`` #7760
[hugovk]
- Do not support using test-image-results to upload images after test failures #7739
[radarhere]
- Changed ImageMath.ops to be static #7721
[radarhere]
- Fix APNG info after seeking backwards more than twice #7701
[esoma, radarhere]
- Deprecate ImageCms constants and versions() function #7702
[nulano, radarhere]
- Added PerspectiveTransform #7699
[radarhere]
- Add support for reading and writing grayscale PFM images #7696
[nulano, hugovk]
- Add LCMS2 flags to ImageCms #7676
[nulano, radarhere, hugovk]
- Rename x64 to AMD64 in winbuild #7693
[nulano]
10.2.0 (2024-01-02)
-------------------
- Add ``keep_rgb`` option when saving JPEG to prevent conversion of RGB colorspace #7553
[bgilbert, radarhere]
- Trim glyph size in ImageFont.getmask() #7669, #7672
[radarhere, nulano]
- Deprecate IptcImagePlugin helpers #7664
[nulano, hugovk, radarhere]
- Allow uncompressed TIFF images to be saved in chunks #7650
[radarhere]
- Concatenate multiple JPEG EXIF markers #7496
[radarhere]
- Changed IPTC tile tuple to match other plugins #7661
[radarhere]
- Do not assign new fp attribute when exiting context manager #7566
[radarhere]
- Support arbitrary masks for uncompressed RGB DDS images #7589
[radarhere, akx]
- Support setting ROWSPERSTRIP tag #7654
[radarhere]
- Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() #7662
[radarhere]
- Optimise ``ImageColor`` using ``functools.lru_cache`` #7657
[hugovk]
- Restricted environment keys for ImageMath.eval() #7655
[wiredfool, radarhere]
- Optimise ``ImageMode.getmode`` using ``functools.lru_cache`` #7641
[hugovk, radarhere]
- Fix incorrect color blending for overlapping glyphs #7497
[ZachNagengast, nulano, radarhere]
- Attempt memory mapping when tile args is a string #7565
[radarhere]
- Fill identical pixels with transparency in subsequent frames when saving GIF #7568
[radarhere]
- Corrected duration when combining multiple GIF frames into single frame #7521
[radarhere]
- Handle disposing GIF background from outside palette #7515
[radarhere]
- Seek past the data when skipping a PSD layer #7483
[radarhere]
- Import plugins relative to the module #7576
[deliangyang, jaxx0n]
- Translate encoder error codes to strings; deprecate ``ImageFile.raise_oserror()`` #7609
[bgilbert, radarhere]
- Support reading BC4U and DX10 BC1 images #6486
[REDxEYE, radarhere, hugovk]
- Optimize ImageStat.Stat.extrema #7593
[florath, radarhere]
- Handle pathlib.Path in FreeTypeFont #7578
[radarhere, hugovk, nulano]
- Added support for reading DX10 BC4 DDS images #7603
[sambvfx, radarhere]
- Optimized ImageStat.Stat.count #7599
[florath]
- Correct PDF palette size when saving #7555
[radarhere]
- Fixed closing file pointer with olefile 0.47 #7594
[radarhere]
- Raise ValueError when TrueType font size is not greater than zero #7584, #7587
[akx, radarhere]
- If absent, do not try to close fp when closing image #7557
[RaphaelVRossi, radarhere]
- Allow configuring JPEG restart marker interval on save #7488
[bgilbert, radarhere]
- Decrement reference count for PyObject #7549
[radarhere]
- Implement ``streamtype=1`` option for tables-only JPEG encoding #7491
[bgilbert, radarhere]
- If save_all PNG only has one frame, do not create animated image #7522
[radarhere]
- Fixed frombytes() for images with a zero dimension #7493
[radarhere]
10.1.0 (2023-10-15)
-------------------
- Added TrueType default font to allow for different sizes #7354
[radarhere]
- Fixed invalid argument warning #7442
[radarhere]
- Added ImageOps cover method #7412
[radarhere, hugovk]
- Catch struct.error from truncated EXIF when reading JPEG DPI #7458
[radarhere]
- Consider default image when selecting mode for PNG save_all #7437
[radarhere]
- Support BGR;15, BGR;16 and BGR;24 access, unpacking and putdata #7303
[radarhere]
- Added CMYK to RGB unpacker #7310
[radarhere]
- Improved flexibility of XMP parsing #7274
[radarhere]
- Support reading 8-bit YCbCr TIFF images #7415
[radarhere]
- Allow saving I;16B images as PNG #7302
[radarhere]
- Corrected drawing I;16 points and writing I;16 text #7257
[radarhere]
- Set blue channel to 128 for BC5S #7413
[radarhere]
- Increase flexibility when reading IPTC fields #7319
[radarhere]
- Set C palette to be empty by default #7289
[radarhere]
- Added gs_binary to control Ghostscript use on all platforms #7392
[radarhere]
- Read bounding box information from the trailer of EPS files if specified #7382
[nopperl, radarhere]
- Added reading 8-bit color DDS images #7426
[radarhere]
- Added has_transparency_data #7420
[radarhere, hugovk]
- Fixed bug when reading BC5S DDS images #7401
[radarhere]
- Prevent TIFF orientation from being applied more than once #7383
[radarhere]
- Use previous pixel alpha for QOI_OP_RGB #7357
[radarhere]
- Added BC5U reading #7358
[radarhere]
- Allow getpixel() to accept a list #7355
[radarhere, homm]
- Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii #7336
[radarhere]
- Expand JPEG buffer size when saving optimized or progressive #7345
[radarhere]
- Added session type check for Linux in ImageGrab.grabclipboard() #7332
[TheNooB2706, radarhere, hugovk]
- Allow "loop=None" when saving GIF images #7329
[radarhere]
- Fixed transparency when saving P mode images to PDF #7323
[radarhere]
- Added saving LA images as PDFs #7299
[radarhere]
- Set SMaskInData to 1 for PDFs with alpha #7316, #7317
[radarhere]
- Changed Image mode property to be read-only by default #7307
[radarhere]
- Silence exceptions in _repr_jpeg_ and _repr_png_ #7266
[mtreinish, radarhere]
- Do not use transparency when saving GIF if it has been removed when normalizing mode #7284
[radarhere]
- Fix missing symbols when libtiff depends on libjpeg #7270
[heitbaum]
10.0.1 (2023-09-15)
-------------------
- Updated libwebp to 1.3.2 #7395
[radarhere]
- Updated zlib to 1.3 #7344
[radarhere]
10.0.0 (2023-07-01) 10.0.0 (2023-07-01)
------------------- -------------------
@ -2077,7 +2729,7 @@ Changelog (Pillow)
- Cache EXIF information #3498 - Cache EXIF information #3498
[Glandos] [Glandos]
- Added transparency for all PNG greyscale modes #3744 - Added transparency for all PNG grayscale modes #3744
[radarhere] [radarhere]
- Fix deprecation warnings in Python 3.8 #3749 - Fix deprecation warnings in Python 3.8 #3749
@ -3986,7 +4638,7 @@ Changelog (Pillow)
- Documentation changes, URL update, transpose, release checklist - Documentation changes, URL update, transpose, release checklist
[radarhere] [radarhere]
- Fixed saving to nonexistant files specified by pathlib.Path objects #1748 (fixes #1747) - Fixed saving to nonexistent files specified by pathlib.Path objects #1748 (fixes #1747)
[radarhere] [radarhere]
- Round Image.crop arguments to the nearest integer #1745 (fixes #1744) - Round Image.crop arguments to the nearest integer #1745 (fixes #1744)
@ -4579,7 +5231,7 @@ Changelog (Pillow)
- Fix Bicubic interpolation #970 - Fix Bicubic interpolation #970
[homm] [homm]
- Support for 4-bit greyscale TIFF images #980 - Support for 4-bit grayscale TIFF images #980
[hugovk] [hugovk]
- Updated manifest #957 - Updated manifest #957
@ -5729,8 +6381,8 @@ http://svn.effbot.org/public/pil/
a polyline, independent of line angle. a polyline, independent of line angle.
- Fixed bearing calculation and clipping in the ImageFont truetype - Fixed bearing calculation and clipping in the ImageFont truetype
renderer; this could lead to clipped text, or crashes in the low- renderer; this could lead to clipped text, or crashes in the low-level
level _imagingft module. (based on input from Adam Twardoch and _imagingft module. (based on input from Adam Twardoch and
others). others).
- Added ImageQt wrapper module, for converting PIL Image objects to - Added ImageQt wrapper module, for converting PIL Image objects to
@ -5811,8 +6463,7 @@ http://svn.effbot.org/public/pil/
1.1.5c2 and 1.1.5 final 1.1.5c2 and 1.1.5 final
----------------------- -----------------------
- Added experimental PERSPECTIVE transform method (from Jeff Breiden- - Added experimental PERSPECTIVE transform method (from Jeff Breidenbach).
bach).
1.1.5c1 1.1.5c1
------- -------
@ -5884,8 +6535,8 @@ http://svn.effbot.org/public/pil/
- Fixed BILINEAR/BICUBIC/ANTIALIAS filtering for mode "LA". - Fixed BILINEAR/BICUBIC/ANTIALIAS filtering for mode "LA".
- Added "getcolors()" method. This is similar to the existing histo- - Added "getcolors()" method. This is similar to the existing histogram
gram method, but looks at color values instead of individual layers, method, but looks at color values instead of individual layers,
and returns an unsorted list of (count, color) tuples. and returns an unsorted list of (count, color) tuples.
By default, the method returns None if finds more than 256 colors. By default, the method returns None if finds more than 256 colors.
@ -6101,8 +6752,8 @@ http://svn.effbot.org/public/pil/
- Added limited support for "bitfield compression" in BMP files - Added limited support for "bitfield compression" in BMP files
and DIB buffers, for 15-bit, 16-bit, and 32-bit images. This and DIB buffers, for 15-bit, 16-bit, and 32-bit images. This
also fixes a problem with ImageGrab module when copying screen- also fixes a problem with ImageGrab module when copying screendumps
dumps from the clipboard on 15/16/32-bit displays. from the clipboard on 15/16/32-bit displays.
- Added experimental WAL (Quake 2 textures) loader. To use this - Added experimental WAL (Quake 2 textures) loader. To use this
loader, import WalImageFile and call the "open" method in that loader, import WalImageFile and call the "open" method in that
@ -6213,8 +6864,8 @@ http://svn.effbot.org/public/pil/
1.1.3 final 1.1.3 final
----------- -----------
- Made setup.py look for old versions of zlib. For some back- - Made setup.py look for old versions of zlib. For some background,
ground, see: https://zlib.net/advisory-2002-03-11.txt see: https://zlib.net/advisory-2002-03-11.txt
1.1.3c2 1.1.3c2
------- -------
@ -6405,8 +7056,8 @@ http://svn.effbot.org/public/pil/
supports all major PIL image modes (including F and I). supports all major PIL image modes (including F and I).
- The ImageFile module now includes a Parser class, which can - The ImageFile module now includes a Parser class, which can
be used to incrementally decode an image file (while down- be used to incrementally decode an image file (while downloading
loading it from the net, for example). See the handbook for it from the net, for example). See the handbook for
details. details.
- "show" now converts non-standard modes to "L" or "RGB" (as - "show" now converts non-standard modes to "L" or "RGB" (as
@ -6544,8 +7195,8 @@ http://svn.effbot.org/public/pil/
- The Image "transform" method now supports Image.QUAD transforms. - The Image "transform" method now supports Image.QUAD transforms.
The data argument is an 8-tuple giving the upper left, lower The data argument is an 8-tuple giving the upper left, lower
left, lower right, and upper right corner of the source quadri- left, lower right, and upper right corner of the source quadrilateral.
lateral. Also added Image.MESH transform which takes a list Also added Image.MESH transform which takes a list
of quadrilaterals. of quadrilaterals.
- The Image "resize", "rotate", and "transform" methods now support - The Image "resize", "rotate", and "transform" methods now support
@ -6655,7 +7306,7 @@ The test suite includes 750 individual tests.
- You can now convert directly between all modes supported by - You can now convert directly between all modes supported by
PIL. When converting colour images to "P", PIL defaults to PIL. When converting colour images to "P", PIL defaults to
a "web" palette and dithering. When converting greyscale a "web" palette and dithering. When converting grayscale
images to "1", PIL uses a thresholding and dithering. images to "1", PIL uses a thresholding and dithering.
- Added a "dither" option to "convert". By default, "convert" - Added a "dither" option to "convert". By default, "convert"
@ -6733,13 +7384,13 @@ The test suite includes 530 individual tests.
- Fixed "paste" to allow a mask also for mode "F" images. - Fixed "paste" to allow a mask also for mode "F" images.
- The BMP driver now saves mode "1" images. When loading images, the mode - The BMP driver now saves mode "1" images. When loading images, the mode
is set to "L" for 8-bit files with greyscale palettes, and to "P" for is set to "L" for 8-bit files with grayscale palettes, and to "P" for
other 8-bit files. other 8-bit files.
- The IM driver now reads and saves "1" images (file modes "0 1" or "L 1"). - The IM driver now reads and saves "1" images (file modes "0 1" or "L 1").
- The JPEG and GIF drivers now saves "1" images. For JPEG, the image - The JPEG and GIF drivers now saves "1" images. For JPEG, the image
is saved as 8-bit greyscale (it will load as mode "L"). For GIF, the is saved as 8-bit grayscale (it will load as mode "L"). For GIF, the
image will be loaded as a "P" image. image will be loaded as a "P" image.
- Fixed a potential buffer overrun in the GIF encoder. - Fixed a potential buffer overrun in the GIF encoder.
@ -6770,8 +7421,8 @@ The test suite includes 400 individual tests.
neither "short", "int" nor "long" are 32-bit wide. neither "short", "int" nor "long" are 32-bit wide.
- Added file= and data= keyword arguments to PhotoImage and BitmapImage. - Added file= and data= keyword arguments to PhotoImage and BitmapImage.
This allows you to use them as drop-in replacements for the corre- This allows you to use them as drop-in replacements for the corresponding
sponding Tkinter classes. Tkinter classes.
- Removed bogus references to the crack coder (ImagingCrack). - Removed bogus references to the crack coder (ImagingCrack).
@ -7043,7 +7694,7 @@ The test suite includes 400 individual tests.
drawing capabilities can be used to render vector and metafile drawing capabilities can be used to render vector and metafile
formats. formats.
- Added restricted drivers for images from Image Tools (greyscale - Added restricted drivers for images from Image Tools (grayscale
only) and LabEye/IFUNC (common interchange modes only). only) and LabEye/IFUNC (common interchange modes only).
- Some minor improvements to the sample scripts provided in the - Some minor improvements to the sample scripts provided in the
@ -7198,7 +7849,7 @@ The test suite includes 400 individual tests.
- A handbook is available (distributed separately). - A handbook is available (distributed separately).
- The coordinate system is changed so that (0,0) is now located - The coordinate system is changed so that (0,0) is now located
in the upper left corner. This is in compliancy with ISO 12087 in the upper left corner. This is in compliance with ISO 12087
and 90% of all other image processing and graphics libraries. and 90% of all other image processing and graphics libraries.
- Modes "1" (bilevel) and "P" (palette) have been introduced. Note - Modes "1" (bilevel) and "P" (palette) have been introduced. Note

View File

@ -1,13 +1,13 @@
The Python Imaging Library (PIL) is The Python Imaging Library (PIL) is
Copyright © 1997-2011 by Secret Labs AB Copyright © 1997-2011 by Secret Labs AB
Copyright © 1995-2011 by Fredrik Lundh Copyright © 1995-2011 by Fredrik Lundh and contributors
Pillow is the friendly PIL fork. It is Pillow is the friendly PIL fork. It is
Copyright © 2010-2023 by Jeffrey A. Clark (Alex) and contributors. Copyright © 2010 by Jeffrey A. Clark and contributors
Like PIL, Pillow is licensed under the open source HPND License: Like PIL, Pillow is licensed under the open source MIT-CMU License:
By obtaining, using, and/or copying this software and/or its associated By obtaining, using, and/or copying this software and/or its associated
documentation, you agree that you have read, understood, and will comply documentation, you agree that you have read, understood, and will comply

View File

@ -5,12 +5,17 @@ include *.md
include *.py include *.py
include *.rst include *.rst
include *.sh include *.sh
include *.toml
include *.txt include *.txt
include *.yaml include *.yaml
include .flake8
include LICENSE include LICENSE
include Makefile include Makefile
include tox.ini include tox.ini
graft Tests graft Tests
graft Tests/images
graft checks
graft patches
graft src graft src
graft depends graft depends
graft winbuild graft winbuild
@ -18,14 +23,25 @@ graft docs
graft _custom_build graft _custom_build
# build/src control detritus # build/src control detritus
exclude .appveyor.yml
exclude .clang-format exclude .clang-format
exclude .coveragerc exclude .coveragerc
exclude .editorconfig exclude .editorconfig
exclude .readthedocs.yml exclude .readthedocs.yml
exclude codecov.yml exclude codecov.yml
exclude renovate.json exclude renovate.json
exclude Tests/images/README.md
exclude Tests/images/crash*.tif
exclude Tests/images/string_dimension.tiff
global-exclude .git* global-exclude .git*
global-exclude *.pyc global-exclude *.pyc
global-exclude *.so global-exclude *.so
prune .ci prune .ci
prune wheels
prune winbuild/build
prune winbuild/depends
prune Tests/errors
prune Tests/images/jpeg2000
prune Tests/images/msp
prune Tests/images/picins
prune Tests/images/sunraster
prune Tests/test-images

View File

@ -2,7 +2,6 @@
.PHONY: clean .PHONY: clean
clean: clean:
python3 setup.py clean
rm src/PIL/*.so || true rm src/PIL/*.so || true
rm -r build || true rm -r build || true
find . -name __pycache__ | xargs rm -r || true find . -name __pycache__ | xargs rm -r || true
@ -18,14 +17,16 @@ coverage:
.PHONY: doc .PHONY: doc
.PHONY: html .PHONY: html
doc html: doc html:
python3 -c "import PIL" > /dev/null 2>&1 || python3 -m pip install .
$(MAKE) -C docs html $(MAKE) -C docs html
.PHONY: htmlview .PHONY: htmlview
htmlview: htmlview:
python3 -c "import PIL" > /dev/null 2>&1 || python3 -m pip install .
$(MAKE) -C docs htmlview $(MAKE) -C docs htmlview
.PHONY: htmllive
htmllive:
$(MAKE) -C docs htmllive
.PHONY: doccheck .PHONY: doccheck
doccheck: doccheck:
$(MAKE) doc $(MAKE) doc
@ -46,10 +47,11 @@ help:
@echo " docserve run an HTTP server on the docs directory" @echo " docserve run an HTTP server on the docs directory"
@echo " html make HTML docs" @echo " html make HTML docs"
@echo " htmlview open the index page built by the html target in your browser" @echo " htmlview open the index page built by the html target in your browser"
@echo " htmllive rebuild and reload HTML files in your browser"
@echo " install make and install" @echo " install make and install"
@echo " install-coverage make and install with C coverage" @echo " install-coverage make and install with C coverage"
@echo " lint run the lint checks" @echo " lint run the lint checks"
@echo " lint-fix run Black and isort to (mostly) fix lint issues" @echo " lint-fix run Ruff to (mostly) fix lint issues"
@echo " release-test run code and package tests before release" @echo " release-test run code and package tests before release"
@echo " test run tests on installed Pillow" @echo " test run tests on installed Pillow"
@ -73,13 +75,11 @@ debug:
.PHONY: release-test .PHONY: release-test
release-test: release-test:
python3 Tests/check_release_notes.py python3 checks/check_release_notes.py
python3 -m pip install -e .[tests] python3 -m pip install -e .[tests]
python3 selftest.py python3 selftest.py
python3 -m pytest Tests python3 -m pytest Tests
python3 -m pip install . python3 -m pip install .
-rm dist/*.egg
-rmdir dist
python3 -m pytest -qq python3 -m pytest -qq
python3 -m check_manifest python3 -m check_manifest
python3 -m pyroma . python3 -m pyroma .
@ -97,13 +97,27 @@ test:
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
python3 -m pytest -qq python3 -m pytest -qq
.PHONY: test-p
test-p:
python3 -c "import xdist" > /dev/null 2>&1 || python3 -m pip install pytest-xdist
python3 -m pytest -qq -n auto
.PHONY: valgrind .PHONY: valgrind
valgrind: valgrind:
python3 -c "import pytest_valgrind" > /dev/null 2>&1 || python3 -m pip install pytest-valgrind python3 -c "import pytest_valgrind" > /dev/null 2>&1 || python3 -m pip install pytest-valgrind
PYTHONMALLOC=malloc valgrind --suppressions=Tests/oss-fuzz/python.supp --leak-check=no \ PILLOW_VALGRIND_TEST=true PYTHONMALLOC=malloc valgrind --suppressions=Tests/oss-fuzz/python.supp --leak-check=no \
--log-file=/tmp/valgrind-output \ --log-file=/tmp/valgrind-output \
python3 -m pytest --no-memcheck -vv --valgrind --valgrind-log=/tmp/valgrind-output python3 -m pytest --no-memcheck -vv --valgrind --valgrind-log=/tmp/valgrind-output
.PHONY: valgrind-leak
valgrind-leak:
python3 -c "import pytest_valgrind" > /dev/null 2>&1 || python3 -m pip install pytest-valgrind
PILLOW_VALGRIND_TEST=true PYTHONMALLOC=malloc valgrind --suppressions=Tests/oss-fuzz/python.supp \
--leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite \
--log-file=/tmp/valgrind-output \
python3 -m pytest -vv --valgrind --valgrind-log=/tmp/valgrind-output
.PHONY: readme .PHONY: readme
readme: readme:
python3 -c "import markdown2" > /dev/null 2>&1 || python3 -m pip install markdown2 python3 -c "import markdown2" > /dev/null 2>&1 || python3 -m pip install markdown2
@ -118,6 +132,11 @@ lint:
.PHONY: lint-fix .PHONY: lint-fix
lint-fix: lint-fix:
python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
python3 -c "import isort" > /dev/null 2>&1 || python3 -m pip install isort python3 -m black .
python3 -m black --target-version py38 . python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
python3 -m isort . python3 -m ruff check --fix .
.PHONY: mypy
mypy:
python3 -c "import tox" > /dev/null 2>&1 || python3 -m pip install tox
python3 -m tox -e mypy

View File

@ -6,9 +6,9 @@
## Python Imaging Library (Fork) ## Python Imaging Library (Fork)
Pillow is the friendly PIL fork by [Jeffrey A. Clark (Alex) and Pillow is the friendly PIL fork by [Jeffrey A. Clark and
contributors](https://github.com/python-pillow/Pillow/graphs/contributors). contributors](https://github.com/python-pillow/Pillow/graphs/contributors).
PIL is the Python Imaging Library by Fredrik Lundh and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and contributors.
As of 2019, Pillow development is As of 2019, Pillow development is
[supported by Tidelift](https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=readme&utm_campaign=enterprise). [supported by Tidelift](https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=readme&utm_campaign=enterprise).
@ -42,19 +42,13 @@ As of 2019, Pillow development is
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-docker.yml"><img <a href="https://github.com/python-pillow/Pillow/actions/workflows/test-docker.yml"><img
alt="GitHub Actions build status (Test Docker)" alt="GitHub Actions build status (Test Docker)"
src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a> src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a>
<a href="https://ci.appveyor.com/project/python-pillow/Pillow"><img <a href="https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml"><img
alt="AppVeyor CI build status (Windows)" alt="GitHub Actions build status (Wheels)"
src="https://img.shields.io/appveyor/build/python-pillow/Pillow/main.svg?label=Windows%20build"></a> src="https://github.com/python-pillow/Pillow/workflows/Wheels/badge.svg"></a>
<a href="https://github.com/python-pillow/pillow-wheels/actions"><img
alt="GitHub Actions wheels build status (Wheels)"
src="https://github.com/python-pillow/pillow-wheels/workflows/Wheels/badge.svg"></a>
<a href="https://app.travis-ci.com/github/python-pillow/pillow-wheels"><img
alt="Travis CI wheels build status (aarch64)"
src="https://img.shields.io/travis/com/python-pillow/pillow-wheels/main.svg?label=aarch64%20wheels"></a>
<a href="https://app.codecov.io/gh/python-pillow/Pillow"><img <a href="https://app.codecov.io/gh/python-pillow/Pillow"><img
alt="Code coverage" alt="Code coverage"
src="https://codecov.io/gh/python-pillow/Pillow/branch/main/graph/badge.svg"></a> src="https://codecov.io/gh/python-pillow/Pillow/branch/main/graph/badge.svg"></a>
<a href="https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:pillow"><img <a href="https://issues.oss-fuzz.com/issues?q=title:pillow"><img
alt="Fuzzing Status" alt="Fuzzing Status"
src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg"></a> src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg"></a>
</td> </td>
@ -67,16 +61,16 @@ As of 2019, Pillow development is
src="https://zenodo.org/badge/17549/python-pillow/Pillow.svg"></a> src="https://zenodo.org/badge/17549/python-pillow/Pillow.svg"></a>
<a href="https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=badge"><img <a href="https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=badge"><img
alt="Tidelift" alt="Tidelift"
src="https://tidelift.com/badges/package/pypi/Pillow?style=flat"></a> src="https://tidelift.com/badges/package/pypi/pillow?style=flat"></a>
<a href="https://pypi.org/project/Pillow/"><img <a href="https://pypi.org/project/pillow/"><img
alt="Newest PyPI version" alt="Newest PyPI version"
src="https://img.shields.io/pypi/v/pillow.svg"></a> src="https://img.shields.io/pypi/v/pillow.svg"></a>
<a href="https://pypi.org/project/Pillow/"><img <a href="https://pypi.org/project/pillow/"><img
alt="Number of PyPI downloads" alt="Number of PyPI downloads"
src="https://img.shields.io/pypi/dm/pillow.svg"></a> src="https://img.shields.io/pypi/dm/pillow.svg"></a>
<a href="https://bestpractices.coreinfrastructure.org/projects/6331"><img <a href="https://www.bestpractices.dev/projects/6331"><img
alt="OpenSSF Best Practices" alt="OpenSSF Best Practices"
src="https://bestpractices.coreinfrastructure.org/projects/6331/badge"></a> src="https://www.bestpractices.dev/projects/6331/badge"></a>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -85,9 +79,6 @@ As of 2019, Pillow development is
<a href="https://gitter.im/python-pillow/Pillow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img <a href="https://gitter.im/python-pillow/Pillow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img
alt="Join the chat at https://gitter.im/python-pillow/Pillow" alt="Join the chat at https://gitter.im/python-pillow/Pillow"
src="https://badges.gitter.im/python-pillow/Pillow.svg"></a> src="https://badges.gitter.im/python-pillow/Pillow.svg"></a>
<a href="https://twitter.com/PythonPillow"><img
alt="Follow on https://twitter.com/PythonPillow"
src="https://img.shields.io/badge/tweet-on%20Twitter-00aced.svg"></a>
<a href="https://fosstodon.org/@pillow"><img <a href="https://fosstodon.org/@pillow"><img
alt="Follow on https://fosstodon.org/@pillow" alt="Follow on https://fosstodon.org/@pillow"
src="https://img.shields.io/badge/publish-on%20Mastodon-595aff.svg" src="https://img.shields.io/badge/publish-on%20Mastodon-595aff.svg"
@ -104,18 +95,18 @@ This library provides extensive file format support, an efficient internal repre
The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool. The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool.
## More Information ## More information
- [Documentation](https://pillow.readthedocs.io/) - [Documentation](https://pillow.readthedocs.io/)
- [Installation](https://pillow.readthedocs.io/en/latest/installation.html) - [Installation](https://pillow.readthedocs.io/en/latest/installation/basic-installation.html)
- [Handbook](https://pillow.readthedocs.io/en/latest/handbook/index.html) - [Handbook](https://pillow.readthedocs.io/en/latest/handbook/index.html)
- [Contribute](https://github.com/python-pillow/Pillow/blob/main/.github/CONTRIBUTING.md) - [Contribute](https://github.com/python-pillow/Pillow/blob/main/.github/CONTRIBUTING.md)
- [Issues](https://github.com/python-pillow/Pillow/issues) - [Issues](https://github.com/python-pillow/Pillow/issues)
- [Pull requests](https://github.com/python-pillow/Pillow/pulls) - [Pull requests](https://github.com/python-pillow/Pillow/pulls)
- [Release notes](https://pillow.readthedocs.io/en/stable/releasenotes/index.html) - [Release notes](https://pillow.readthedocs.io/en/stable/releasenotes/index.html)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Changelog](https://github.com/python-pillow/Pillow/releases)
- [Pre-fork](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#pre-fork) - [Pre-fork](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#pre-fork)
## Report a Vulnerability ## Report a vulnerability
To report a security vulnerability, please follow the procedure described in the [Tidelift security policy](https://tidelift.com/docs/security). To report a security vulnerability, please follow the procedure described in the [Tidelift security policy](https://tidelift.com/docs/security).

View File

@ -1,53 +1,25 @@
# Release Checklist # Release checklist
See https://pillow.readthedocs.io/en/stable/releasenotes/versioning.html for See https://pillow.readthedocs.io/en/stable/releasenotes/versioning.html for
information about how the version numbers line up with releases. information about how the version numbers line up with releases.
## Main Release ## Main release
Released quarterly on January 2nd, April 1st, July 1st and October 15th. Released quarterly on January 2nd, April 1st, July 1st and October 15th.
* [ ] Open a release ticket e.g. https://github.com/python-pillow/Pillow/issues/3154 * [ ] Create a new issue and select the "Maintainers only: Release" template.
* [ ] Develop and prepare release in `main` branch.
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm passing tests in `main` branch. ## Point release
* [ ] Check that all of the wheel builds [Pillow Wheel Builder](https://github.com/python-pillow/pillow-wheels) pass the tests in Travis CI and GitHub Actions.
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py`
* [ ] Update `CHANGES.rst`.
* [ ] Run pre-release check via `make release-test` in a freshly cloned repo.
* [ ] Create branch and tag for release e.g.:
```bash
git branch 5.2.x
git tag 5.2.0
git push --tags
```
* [ ] Create and check source distribution:
```bash
make sdist
```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions)
* [ ] Check and upload all binaries and source distributions e.g.:
```bash
python3 -m twine check --strict dist/*
python3 -m twine upload dist/Pillow-5.2.0*
```
* [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases)
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/),
increment and append `.dev0` to version identifier in `src/PIL/_version.py` and then:
```bash
git push --all
```
## Point Release
Released as needed for security, installation or critical bug fixes. Released as needed for security, installation or critical bug fixes.
* [ ] Make necessary changes in `main` branch. * [ ] Make necessary changes in `main` branch.
* [ ] Update `CHANGES.rst`.
* [ ] Check out release branch e.g.: * [ ] Check out release branch e.g.:
```bash ```bash
git checkout -t remotes/origin/5.2.x git checkout -t remotes/origin/5.2.x
``` ```
* [ ] Cherry pick individual commits from `main` branch to release branch e.g. `5.2.x`, then `git push`. * [ ] Cherry pick individual commits from `main` branch to release branch e.g. `5.2.x`, then `git push`.
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) and [AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm passing tests in release branch e.g. `5.2.x`. * [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions) to confirm passing tests in release branch e.g. `5.2.x`.
* [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py` * [ ] In compliance with [PEP 440](https://peps.python.org/pep-0440/), update version identifier in `src/PIL/_version.py`
* [ ] Run pre-release check via `make release-test`. * [ ] Run pre-release check via `make release-test`.
* [ ] Create tag for release e.g.: * [ ] Create tag for release e.g.:
@ -59,18 +31,15 @@ Released as needed for security, installation or critical bug fixes.
```bash ```bash
make sdist make sdist
``` ```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions) * [ ] Check the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml)
* [ ] Check and upload all binaries and source distributions e.g.: has passed, including the "Upload release to PyPI" job. This will have been triggered
```bash by the new tag.
python3 -m twine check --strict dist/*
python3 -m twine upload dist/Pillow-5.2.1*
```
* [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then: * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then:
```bash ```bash
git push git push
``` ```
## Embargoed Release ## Embargoed release
Released as needed privately to individual vendors for critical security-related bug fixes. Released as needed privately to individual vendors for critical security-related bug fixes.
@ -86,48 +55,23 @@ Released as needed privately to individual vendors for critical security-related
git tag 2.5.3 git tag 2.5.3
git push origin --tags git push origin --tags
``` ```
* [ ] Create and check source distribution: * [ ] Check the [GitHub Actions "Wheels" workflow](https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml)
```bash has passed, including the "Upload release to PyPI" job. This will have been triggered
make sdist by the new tag.
```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/main/RELEASING.md#binary-distributions)
* [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then: * [ ] Publish the [release on GitHub](https://github.com/python-pillow/Pillow/releases) and then:
```bash ```bash
git push origin 2.5.x git push origin 2.5.x
``` ```
## Binary Distributions ## Publicize release
### macOS and Linux * [ ] Announce release availability via [Mastodon](https://fosstodon.org/@pillow) e.g. https://fosstodon.org/@pillow/110639450470725321
* [ ] Use the [Pillow Wheel Builder](https://github.com/python-pillow/pillow-wheels):
```bash
git clone https://github.com/python-pillow/pillow-wheels
cd pillow-wheels
./update-pillow-tag.sh [[release tag]]
```
* [ ] Download wheels from the [Pillow Wheel Builder release](https://github.com/python-pillow/pillow-wheels/releases)
and copy into `dist/`. For example using [GitHub CLI](https://github.com/cli/cli) from the main repo:
```bash
gh release download --dir dist --pattern "*.whl" --repo python-pillow/pillow-wheels
```
### Windows
* [ ] Download the artifacts from the [GitHub Actions "Test Windows" workflow](https://github.com/python-pillow/Pillow/actions/workflows/test-windows.yml)
and copy into `dist/`. For example using [GitHub CLI](https://github.com/cli/cli):
```bash
gh run download --dir dist
# select dist-x.y.z
```
## Publicize Release
* [ ] Announce release availability via [Twitter](https://twitter.com/pythonpillow) and [Mastodon](https://fosstodon.org/@pillow) e.g. https://twitter.com/PythonPillow/status/1013789184354603010
## Documentation ## Documentation
* [ ] Make sure the [default version for Read the Docs](https://pillow.readthedocs.io/en/stable/) is up-to-date with the release changes * [ ] Make sure the [default version for Read the Docs](https://pillow.readthedocs.io/en/stable/) is up-to-date with the release changes
## Docker Images ## Docker images
* [ ] Update Pillow in the Docker Images repository * [ ] Update Pillow in the Docker Images repository
```bash ```bash

View File

@ -1,4 +1,4 @@
Pillow Tests Pillow tests
============ ============
Test scripts are named ``test_xxx.py``. Helper classes and functions can be found in ``helper.py``. Test scripts are named ``test_xxx.py``. Helper classes and functions can be found in ``helper.py``.

View File

@ -1,52 +0,0 @@
import time
from PIL import PyAccess
from .helper import hopper
# Not running this test by default. No DOS against CI.
def iterate_get(size, access):
(w, h) = size
for x in range(w):
for y in range(h):
access[(x, y)]
def iterate_set(size, access):
(w, h) = size
for x in range(w):
for y in range(h):
access[(x, y)] = (x % 256, y % 256, 0)
def timer(func, label, *args):
iterations = 5000
starttime = time.time()
for x in range(iterations):
func(*args)
if time.time() - starttime > 10:
break
endtime = time.time()
print(
"{}: completed {} iterations in {:.4f}s, {:.6f}s per iteration".format(
label, x + 1, endtime - starttime, (endtime - starttime) / (x + 1.0)
)
)
def test_direct():
im = hopper()
im.load()
# im = Image.new("RGB", (2000, 2000), (1, 3, 2))
caccess = im.im.pixel_access(False)
access = PyAccess.new(im, False)
assert caccess[(0, 0)] == access[(0, 0)]
print("Size: %sx%s" % im.size)
timer(iterate_get, "PyAccess - get", im.size, access)
timer(iterate_set, "PyAccess - set", im.size, access)
timer(iterate_get, "C-api - get", im.size, caccess)
timer(iterate_set, "C-api - set", im.size, caccess)

View File

@ -1,10 +0,0 @@
import pytest
from PIL import Image
def test_j2k_overflow(tmp_path):
im = Image.new("RGBA", (1024, 131584))
target = str(tmp_path / "temp.jpc")
with pytest.raises(OSError):
im.save(target)

View File

@ -1,7 +1,11 @@
from __future__ import annotations
import io import io
import pytest
def pytest_report_header(config):
def pytest_report_header(config: pytest.Config) -> str:
try: try:
from PIL import features from PIL import features
@ -12,7 +16,7 @@ def pytest_report_header(config):
return f"pytest_report_header failed: {e}" return f"pytest_report_header failed: {e}"
def pytest_configure(config): def pytest_configure(config: pytest.Config) -> None:
config.addinivalue_line( config.addinivalue_line(
"markers", "markers",
"pil_noop_mark: A conditional mark where nothing special happens", "pil_noop_mark: A conditional mark where nothing special happens",

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations
import base64 import base64
import os import os

Binary file not shown.

View File

@ -37,4 +37,4 @@ The Font Software may be sold as part of a larger software package but no copy o
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from Tavmjong Bah. For further information, contact: tavmjong @ free . fr. Except as contained in this notice, the name of Tavmjong Bah shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from Tavmjong Bah. For further information, contact: tavmjong @ free . fr.

Binary file not shown.

View File

@ -2,7 +2,6 @@
NotoNastaliqUrdu-Regular.ttf and NotoSansSymbols-Regular.ttf, from https://github.com/googlei18n/noto-fonts NotoNastaliqUrdu-Regular.ttf and NotoSansSymbols-Regular.ttf, from https://github.com/googlei18n/noto-fonts
NotoSans-Regular.ttf, from https://www.google.com/get/noto/ NotoSans-Regular.ttf, from https://www.google.com/get/noto/
NotoSansJP-Thin.otf, from https://www.google.com/get/noto/help/cjk/ NotoSansJP-Thin.otf, from https://www.google.com/get/noto/help/cjk/
NotoColorEmoji.ttf, from https://github.com/googlefonts/noto-emoji
AdobeVFPrototype.ttf, from https://github.com/adobe-fonts/adobe-variable-font-prototype AdobeVFPrototype.ttf, from https://github.com/adobe-fonts/adobe-variable-font-prototype
TINY5x3GX.ttf, from http://velvetyne.fr/fonts/tiny TINY5x3GX.ttf, from http://velvetyne.fr/fonts/tiny
ArefRuqaa-Regular.ttf, from https://github.com/google/fonts/tree/master/ofl/arefruqaa ArefRuqaa-Regular.ttf, from https://github.com/google/fonts/tree/master/ofl/arefruqaa
@ -25,3 +24,5 @@ FreeMono.ttf is licensed under GPLv3.
10x20-ISO8859-1.pcf, from https://packages.ubuntu.com/xenial/xfonts-base 10x20-ISO8859-1.pcf, from https://packages.ubuntu.com/xenial/xfonts-base
"Public domain font. Share and enjoy." "Public domain font. Share and enjoy."
CBDTTestFont.ttf and EBDTTestFont.ttf from https://github.com/nulano/font-tests are public domain.

Binary file not shown.

View File

@ -2,57 +2,52 @@
Helper functions. Helper functions.
""" """
from __future__ import annotations
import logging import logging
import os import os
import shutil import shutil
import subprocess
import sys import sys
import sysconfig
import tempfile import tempfile
from collections.abc import Sequence
from functools import lru_cache
from io import BytesIO from io import BytesIO
from pathlib import Path
from typing import Any, Callable
import pytest import pytest
from packaging.version import parse as parse_version from packaging.version import parse as parse_version
from PIL import Image, ImageMath, features from PIL import Image, ImageFile, ImageMath, features
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
uploader = None
HAS_UPLOADER = False
if os.environ.get("SHOW_ERRORS"): if os.environ.get("SHOW_ERRORS"):
# local img.show for errors. uploader = "show"
HAS_UPLOADER = True
class test_image_results:
@staticmethod
def upload(a, b):
a.show()
b.show()
elif "GITHUB_ACTIONS" in os.environ: elif "GITHUB_ACTIONS" in os.environ:
HAS_UPLOADER = True uploader = "github_actions"
class test_image_results:
@staticmethod
def upload(a, b):
dir_errors = os.path.join(os.path.dirname(__file__), "errors")
os.makedirs(dir_errors, exist_ok=True)
tmpdir = tempfile.mkdtemp(dir=dir_errors)
a.save(os.path.join(tmpdir, "a.png"))
b.save(os.path.join(tmpdir, "b.png"))
return tmpdir
else:
try:
import test_image_results
HAS_UPLOADER = True
except ImportError:
pass
def convert_to_comparable(a, b): def upload(a: Image.Image, b: Image.Image) -> str | None:
if uploader == "show":
# local img.show for errors.
a.show()
b.show()
elif uploader == "github_actions":
dir_errors = os.path.join(os.path.dirname(__file__), "errors")
os.makedirs(dir_errors, exist_ok=True)
tmpdir = tempfile.mkdtemp(dir=dir_errors)
a.save(os.path.join(tmpdir, "a.png"))
b.save(os.path.join(tmpdir, "b.png"))
return tmpdir
return None
def convert_to_comparable(
a: Image.Image, b: Image.Image
) -> tuple[Image.Image, Image.Image]:
new_a, new_b = a, b new_a, new_b = a, b
if a.mode == "P": if a.mode == "P":
new_a = Image.new("L", a.size) new_a = Image.new("L", a.size)
@ -65,14 +60,16 @@ def convert_to_comparable(a, b):
return new_a, new_b return new_a, new_b
def assert_deep_equal(a, b, msg=None): def assert_deep_equal(a: Any, b: Any, msg: str | None = None) -> None:
try: try:
assert len(a) == len(b), msg or f"got length {len(a)}, expected {len(b)}" assert len(a) == len(b), msg or f"got length {len(a)}, expected {len(b)}"
except Exception: except Exception:
assert a == b, msg assert a == b, msg
def assert_image(im, mode, size, msg=None): def assert_image(
im: Image.Image, mode: str, size: tuple[int, int], msg: str | None = None
) -> None:
if mode is not None: if mode is not None:
assert im.mode == mode, ( assert im.mode == mode, (
msg or f"got mode {repr(im.mode)}, expected {repr(mode)}" msg or f"got mode {repr(im.mode)}, expected {repr(mode)}"
@ -84,28 +81,35 @@ def assert_image(im, mode, size, msg=None):
) )
def assert_image_equal(a, b, msg=None): def assert_image_equal(a: Image.Image, b: Image.Image, msg: str | None = None) -> None:
assert a.mode == b.mode, msg or f"got mode {repr(a.mode)}, expected {repr(b.mode)}" assert a.mode == b.mode, msg or f"got mode {repr(a.mode)}, expected {repr(b.mode)}"
assert a.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}" assert a.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}"
if a.tobytes() != b.tobytes(): if a.tobytes() != b.tobytes():
if HAS_UPLOADER: try:
try: url = upload(a, b)
url = test_image_results.upload(a, b) if url:
logger.error(f"Url for test images: {url}") logger.error("URL for test images: %s", url)
except Exception: except Exception:
pass pass
assert False, msg or "got different content" pytest.fail(msg or "got different content")
def assert_image_equal_tofile(a, filename, msg=None, mode=None): def assert_image_equal_tofile(
a: Image.Image,
filename: str | Path,
msg: str | None = None,
mode: str | None = None,
) -> None:
with Image.open(filename) as img: with Image.open(filename) as img:
if mode: if mode:
img = img.convert(mode) img = img.convert(mode)
assert_image_equal(a, img, msg) assert_image_equal(a, img, msg)
def assert_image_similar(a, b, epsilon, msg=None): def assert_image_similar(
a: Image.Image, b: Image.Image, epsilon: float, msg: str | None = None
) -> None:
assert a.mode == b.mode, msg or f"got mode {repr(a.mode)}, expected {repr(b.mode)}" assert a.mode == b.mode, msg or f"got mode {repr(a.mode)}, expected {repr(b.mode)}"
assert a.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}" assert a.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}"
@ -113,7 +117,9 @@ def assert_image_similar(a, b, epsilon, msg=None):
diff = 0 diff = 0
for ach, bch in zip(a.split(), b.split()): for ach, bch in zip(a.split(), b.split()):
chdiff = ImageMath.eval("abs(a - b)", a=ach, b=bch).convert("L") chdiff = ImageMath.lambda_eval(
lambda args: abs(args["a"] - args["b"]), a=ach, b=bch
).convert("L")
diff += sum(i * num for i, num in enumerate(chdiff.histogram())) diff += sum(i * num for i, num in enumerate(chdiff.histogram()))
ave_diff = diff / (a.size[0] * a.size[1]) ave_diff = diff / (a.size[0] * a.size[1])
@ -123,61 +129,75 @@ def assert_image_similar(a, b, epsilon, msg=None):
+ f" average pixel value difference {ave_diff:.4f} > epsilon {epsilon:.4f}" + f" average pixel value difference {ave_diff:.4f} > epsilon {epsilon:.4f}"
) )
except Exception as e: except Exception as e:
if HAS_UPLOADER: try:
try: url = upload(a, b)
url = test_image_results.upload(a, b) if url:
logger.error(f"Url for test images: {url}") logger.exception("URL for test images: %s", url)
except Exception: except Exception:
pass pass
raise e raise e
def assert_image_similar_tofile(a, filename, epsilon, msg=None, mode=None): def assert_image_similar_tofile(
a: Image.Image,
filename: str | Path,
epsilon: float,
msg: str | None = None,
) -> None:
with Image.open(filename) as img: with Image.open(filename) as img:
if mode:
img = img.convert(mode)
assert_image_similar(a, img, epsilon, msg) assert_image_similar(a, img, epsilon, msg)
def assert_all_same(items, msg=None): def assert_not_all_same(items: Sequence[Any], msg: str | None = None) -> None:
assert items.count(items[0]) == len(items), msg
def assert_not_all_same(items, msg=None):
assert items.count(items[0]) != len(items), msg assert items.count(items[0]) != len(items), msg
def assert_tuple_approx_equal(actuals, targets, threshold, msg): def assert_tuple_approx_equal(
actuals: Sequence[int], targets: tuple[int, ...], threshold: int, msg: str
) -> None:
"""Tests if actuals has values within threshold from targets""" """Tests if actuals has values within threshold from targets"""
value = True
for i, target in enumerate(targets): for i, target in enumerate(targets):
value *= target - threshold <= actuals[i] <= target + threshold if not (target - threshold <= actuals[i] <= target + threshold):
pytest.fail(msg + ": " + repr(actuals) + " != " + repr(targets))
assert value, msg + ": " + repr(actuals) + " != " + repr(targets)
def skip_unless_feature(feature): def timeout_unless_slower_valgrind(timeout: float) -> pytest.MarkDecorator:
if "PILLOW_VALGRIND_TEST" in os.environ:
return pytest.mark.pil_noop_mark()
return pytest.mark.timeout(timeout)
def skip_unless_feature(feature: str) -> pytest.MarkDecorator:
reason = f"{feature} not available" reason = f"{feature} not available"
return pytest.mark.skipif(not features.check(feature), reason=reason) return pytest.mark.skipif(not features.check(feature), reason=reason)
def skip_unless_feature_version(feature, version_required, reason=None): def skip_unless_feature_version(
if not features.check(feature): feature: str, required: str, reason: str | None = None
) -> pytest.MarkDecorator:
version = features.version(feature)
if version is None:
return pytest.mark.skip(f"{feature} not available") return pytest.mark.skip(f"{feature} not available")
if reason is None: if reason is None:
reason = f"{feature} is older than {version_required}" reason = f"{feature} is older than {required}"
version_required = parse_version(version_required) version_required = parse_version(required)
version_available = parse_version(features.version(feature)) version_available = parse_version(version)
return pytest.mark.skipif(version_available < version_required, reason=reason) return pytest.mark.skipif(version_available < version_required, reason=reason)
def mark_if_feature_version(mark, feature, version_blacklist, reason=None): def mark_if_feature_version(
if not features.check(feature): mark: pytest.MarkDecorator,
feature: str,
version_blacklist: str,
reason: str | None = None,
) -> pytest.MarkDecorator:
version = features.version(feature)
if version is None:
return pytest.mark.pil_noop_mark() return pytest.mark.pil_noop_mark()
if reason is None: if reason is None:
reason = f"{feature} is {version_blacklist}" reason = f"{feature} is {version_blacklist}"
version_required = parse_version(version_blacklist) version_required = parse_version(version_blacklist)
version_available = parse_version(features.version(feature)) version_available = parse_version(version)
if ( if (
version_available.major == version_required.major version_available.major == version_required.major
and version_available.minor == version_required.minor and version_available.minor == version_required.minor
@ -192,7 +212,7 @@ class PillowLeakTestCase:
iterations = 100 # count iterations = 100 # count
mem_limit = 512 # k mem_limit = 512 # k
def _get_mem_usage(self): def _get_mem_usage(self) -> float:
""" """
Gets the RUSAGE memory usage, returns in K. Encapsulates the difference Gets the RUSAGE memory usage, returns in K. Encapsulates the difference
between macOS and Linux rss reporting between macOS and Linux rss reporting
@ -203,18 +223,13 @@ class PillowLeakTestCase:
from resource import RUSAGE_SELF, getrusage from resource import RUSAGE_SELF, getrusage
mem = getrusage(RUSAGE_SELF).ru_maxrss mem = getrusage(RUSAGE_SELF).ru_maxrss
if sys.platform == "darwin": # man 2 getrusage:
# man 2 getrusage: # ru_maxrss
# ru_maxrss # This is the maximum resident set size utilized
# This is the maximum resident set size utilized (in bytes). # in bytes on macOS, in kilobytes on Linux
return mem / 1024 # Kb return mem / 1024 if sys.platform == "darwin" else mem
# linux
# man 2 getrusage
# ru_maxrss (since Linux 2.6.32)
# This is the maximum resident set size used (in kilobytes).
return mem # Kb
def _test_leak(self, core): def _test_leak(self, core: Callable[[], None]) -> None:
start_mem = self._get_mem_usage() start_mem = self._get_mem_usage()
for cycle in range(self.iterations): for cycle in range(self.iterations):
core() core()
@ -226,50 +241,61 @@ class PillowLeakTestCase:
# helpers # helpers
def fromstring(data): def fromstring(data: bytes) -> ImageFile.ImageFile:
return Image.open(BytesIO(data)) return Image.open(BytesIO(data))
def tostring(im, string_format, **options): def tostring(im: Image.Image, string_format: str, **options: Any) -> bytes:
out = BytesIO() out = BytesIO()
im.save(out, string_format, **options) im.save(out, string_format, **options)
return out.getvalue() return out.getvalue()
def hopper(mode=None, cache={}): def hopper(mode: str | None = None) -> Image.Image:
# Use caching to reduce reading from disk, but return a copy
# so that the cached image isn't modified by the tests
# (for fast, isolated, repeatable tests).
if mode is None: if mode is None:
# Always return fresh not-yet-loaded version of image. # Always return fresh not-yet-loaded version of image.
# Operations on not-yet-loaded images is separate class of errors # Operations on not-yet-loaded images are a separate class of errors
# what we should catch. # that we should catch.
return Image.open("Tests/images/hopper.ppm") return Image.open("Tests/images/hopper.ppm")
# Use caching to reduce reading from disk but so an original copy is
# returned each time and the cached image isn't modified by tests return _cached_hopper(mode).copy()
# (for fast, isolated, repeatable tests).
im = cache.get(mode)
if im is None: @lru_cache
if mode == "F": def _cached_hopper(mode: str) -> Image.Image:
im = hopper("L").convert(mode) if mode == "F":
elif mode[:4] == "I;16": im = hopper("L")
im = hopper("I").convert(mode) else:
im = hopper()
try:
im = im.convert(mode)
except ImportError:
if mode == "LAB":
im = Image.open("Tests/images/hopper.Lab.tif")
else: else:
im = hopper().convert(mode) raise
cache[mode] = im return im
return im.copy()
def djpeg_available(): def djpeg_available() -> bool:
return bool(shutil.which("djpeg")) if shutil.which("djpeg"):
try:
subprocess.check_call(["djpeg", "-version"])
return True
except subprocess.CalledProcessError: # pragma: no cover
return False
return False
def cjpeg_available(): def netpbm_available() -> bool:
return bool(shutil.which("cjpeg"))
def netpbm_available():
return bool(shutil.which("ppmquant") and shutil.which("ppmtogif")) return bool(shutil.which("ppmquant") and shutil.which("ppmtogif"))
def magick_command(): def magick_command() -> list[str] | None:
if sys.platform == "win32": if sys.platform == "win32":
magickhome = os.environ.get("MAGICK_HOME") magickhome = os.environ.get("MAGICK_HOME")
if magickhome: if magickhome:
@ -286,47 +312,35 @@ def magick_command():
return imagemagick return imagemagick
if graphicsmagick and shutil.which(graphicsmagick[0]): if graphicsmagick and shutil.which(graphicsmagick[0]):
return graphicsmagick return graphicsmagick
return None
def on_appveyor(): def on_ci() -> bool:
return "APPVEYOR" in os.environ
def on_github_actions():
return "GITHUB_ACTIONS" in os.environ
def on_ci():
# GitHub Actions and AppVeyor have "CI"
return "CI" in os.environ return "CI" in os.environ
def is_big_endian(): def is_big_endian() -> bool:
return sys.byteorder == "big" return sys.byteorder == "big"
def is_ppc64le(): def is_ppc64le() -> bool:
import platform import platform
return platform.machine() == "ppc64le" return platform.machine() == "ppc64le"
def is_win32(): def is_win32() -> bool:
return sys.platform.startswith("win32") return sys.platform.startswith("win32")
def is_pypy(): def is_pypy() -> bool:
return hasattr(sys, "pypy_translation_info") return hasattr(sys, "pypy_translation_info")
def is_mingw():
return sysconfig.get_platform() == "mingw"
class CachedProperty: class CachedProperty:
def __init__(self, func): def __init__(self, func: Callable[[Any], Any]) -> None:
self.func = func self.func = func
def __get__(self, instance, cls=None): def __get__(self, instance: Any, cls: type[Any] | None = None) -> Any:
result = instance.__dict__[self.func.__name__] = self.func(instance) result = instance.__dict__[self.func.__name__] = self.func(instance)
return result return result

View File

@ -22,4 +22,3 @@ and that the name of ICC shall not be used in advertising or publicity
pertaining to distribution of the software without specific, written pertaining to distribution of the software without specific, written
prior permission. ICC makes no representations about the suitability prior permission. ICC makes no representations about the suitability
of this software for any purpose. of this software for any purpose.

BIN
Tests/icc/sGrey-v2-nano.icc Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

BIN
Tests/images/2422.flc Normal file

Binary file not shown.

BIN
Tests/images/9bit.j2k Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 668 B

After

Width:  |  Height:  |  Size: 668 B

BIN
Tests/images/avif/exif.avif Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Tests/images/avif/star.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
Tests/images/avif/star.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

BIN
Tests/images/bc1.dds Executable file

Binary file not shown.

BIN
Tests/images/bc1_typeless.dds Executable file

Binary file not shown.

Binary file not shown.

BIN
Tests/images/bc4_unorm.dds Normal file

Binary file not shown.

BIN
Tests/images/bc4_unorm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

BIN
Tests/images/bc4u.dds Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 95 KiB

BIN
Tests/images/bc5u.dds Normal file

Binary file not shown.

BIN
Tests/images/bgr15.dds Normal file

Binary file not shown.

BIN
Tests/images/bgr15.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Some files were not shown because too many files have changed in this diff Show More