Compare commits

...

9018 Commits
8.0.1 ... main

Author SHA1 Message Date
Hugo van Kemenade
ba5f81fb6b
Add support for Python 3.14 (#9120)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-07-30 22:23:39 +10:00
renovate[bot]
bae97e1a2b
Update dependency cibuildwheel to v3.1.2 (#9118) 2025-07-30 21:50:45 +10:00
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
6e28ed1f36 10.0.0 version bump 2023-07-01 22:08:11 +10:00
Andrew Murray
74859e965d Moved MAX_IMAGE_PIXELS check to Python 2023-07-01 20:52:44 +10:00
Andrew Murray
c827f3b30f
Merge pull request #7246 from radarhere/deallocate
Fixed deallocating mask images
2023-07-01 20:35:41 +10:00
Andrew Murray
39a3b1d83e Fixed deallocating mask images 2023-07-01 18:09:27 +10:00
Andrew Murray
8c1dc819fd
Update CHANGES.rst [ci skip] 2023-07-01 10:31:34 +10:00
Andrew Murray
e37b25087d
Merge pull request #7244 from radarhere/imagefont_max_string_length
Added ImageFont.MAX_STRING_LENGTH
2023-07-01 09:41:01 +10:00
Andrew Murray
d398fedb9d
Added underscores for readability
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-01 07:25:18 +10:00
Andrew Murray
1fe1bb49c4 Added ImageFont.MAX_STRING_LENGTH 2023-06-30 23:32:26 +10:00
Hugo van Kemenade
7c945f5131
Merge pull request #7243 from radarhere/releasenotes 2023-06-30 10:59:47 +03:00
Andrew Murray
0fb69fa821 Added release notes for #7123 2023-06-30 16:59:36 +10:00
Hugo van Kemenade
b7f1af77fd
Merge pull request #7230 from nulano/add-pyproject.toml 2023-06-30 09:31:41 +03:00
Hugo van Kemenade
0ac3677b56
Merge pull request #7199 from radarhere/tiff_close 2023-06-30 09:27:26 +03:00
Hugo van Kemenade
9abef1ad0b
Merge pull request #7226 from radarhere/getcolor 2023-06-30 09:26:51 +03:00
Hugo van Kemenade
be4bfaac9e
Merge pull request #7123 from radarhere/apng 2023-06-30 09:24:20 +03:00
Hugo van Kemenade
bd795d7c02
Merge pull request #7242 from radarhere/repr_png
Prioritise speed in _repr_png_
2023-06-30 08:29:47 +03:00
Andrew Murray
0740499151 Prioritise speed in _repr_png_ 2023-06-30 09:05:59 +10:00
Hugo van Kemenade
1174a9e7f4
Merge pull request #7097 from radarhere/seek
`Image.open()` seeks to the start of file objects
2023-06-30 01:05:47 +03:00
Hugo van Kemenade
a662fb6793
Merge pull request #7239 from radarhere/releasenotes
Added release notes for #7235
2023-06-29 15:24:38 +03:00
Andrew Murray
49cde0ad3d Update CHANGES.rst [ci skip] 2023-06-29 21:03:42 +10:00
Andrew Murray
ae43cda4c5 Added release notes for #7235 2023-06-29 20:59:24 +10:00
Hugo van Kemenade
2de1bf221a
Merge pull request #7236 from radarhere/pyaccess 2023-06-29 13:58:50 +03:00
Hugo van Kemenade
b2387f9565
Merge pull request #7233 from radarhere/libtiff 2023-06-29 13:56:12 +03: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
Hugo van Kemenade
0aaa5e0d7c
Merge pull request #7238 from radarhere/libwebp 2023-06-29 13:54:46 +03:00
Andrew Murray
d49f36b9a9 Updated libwebp to 1.3.1 2023-06-29 15:11:55 +10:00
Andrew Murray
444b8118bd Updated libwebp to 1.3.1 2023-06-29 15:11:16 +10:00
Andrew Murray
456ef61cb5 Update CHANGES.rst [ci skip] 2023-06-29 09:43:06 +10:00
Andrew Murray
b5ce3193b6 Deprecate Image.USE_CFFI_ACCESS 2023-06-29 08:30:10 +10:00
Andrew Murray
1a185973dd Mention default behaviour change 2023-06-28 22:00:32 +10:00
Andrew Murray
8a36b0fc2d Deprecate PyAccess 2023-06-28 20:10:10 +10:00
Andrew Murray
811bfe3658 Do not use CFFI access by default on PyPy 2023-06-28 17:57:02 +10:00
Andrew Murray
b2d7f1e899
Merge branch 'main' into add-pyproject.toml 2023-06-28 17:44:08 +10:00
Andrew Murray
e5188f6815
Merge pull request #7235 from radarhere/decompression_bomb_check
Limit size even if one dimension is zero in decompression bomb check
2023-06-28 13:37:29 +10:00
Andrew Murray
8437d98f7f Limit size even if one dimension is zero 2023-06-28 11:43:05 +10:00
Hugo van Kemenade
4834f80c08
Merge pull request #7234 from radarhere/32bit 2023-06-27 18:34:28 +03:00
Andrew Murray
1756f04acd
Updated patch path
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-06-27 21:19:32 +10:00
Andrew Murray
27b1acf470 Test 32-bit Windows on AppVeyor 2023-06-27 20:51:16 +10:00
Andrew Murray
c67d73d3c9 Test 32-bit Debian 12 2023-06-27 16:36:22 +10:00
Andrew Murray
45c9dcf123 Restored 32-bit support 2023-06-27 14:43:58 +10:00
Andrew Murray
51cd79266d Updated libtiff to 4.5.1 2023-06-27 13:51:17 +10:00
Andrew Murray
92fb054ba7 Updated libtiff to 4.5.1 2023-06-27 08:19:57 +10:00
Hugo van Kemenade
5c3d93fb2c
Merge pull request #7232 from radarhere/32bit
Removed deleted file from codecov.yml
2023-06-26 08:14:10 +03:00
Ondrej Baranovič
fec793d8ab
don't explicitly install wheel
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-06-25 13:05:22 +01:00
Andrew Murray
d12783374b Increased coverage threshold 2023-06-25 21:39:26 +10:00
Hugo van Kemenade
83b9a466b1
Merge pull request #390 from radarhere/freetype 2023-06-25 14:17:02 +03:00
Hugo van Kemenade
4c5ee5dee3
Merge pull request #7231 from radarhere/freetype 2023-06-25 12:00:37 +03:00
Andrew Murray
837d23f273
Update CHANGES.rst [ci skip] 2023-06-25 13:58:02 +10:00
Andrew Murray
9c73834407 Removed deleted file 2023-06-25 13:33:20 +10: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
10ad87cd2d
Merge branch 'main' into add-pyproject.toml 2023-06-25 07:14:01 +10:00
Hugo van Kemenade
190c53a1b1
Merge pull request #7228 from radarhere/32bit
Removed support for 32-bit
2023-06-24 19:02:00 +03:00
nulano
c1799627df
lint fixes 2023-06-24 16:13:38 +01:00
Andrew Murray
25c24a8a91
Removed unused code
(cherry picked from commit 600b823de6)
2023-06-24 15:54:07 +01:00
Andrew Murray
14ae3e446c
Updated pyproject-fmt to 0.12.1
(cherry picked from commit 0e1f86a425)
2023-06-24 15:53:58 +01:00
nulano
466aa7e6c4
update winbuild documentation 2023-06-24 15:52:59 +01:00
nulano
5d0e37e255
use --config-settings when building on Windows 2023-06-24 15:17:12 +01:00
nulano
c068af7630
Merge remote-tracking branch 'upstream/main' into add-pyproject.toml
# Conflicts:
#	pyproject.toml
2023-06-24 13:30:15 +01:00
Andrew Murray
83867f5c35 Updated freetype to 2.13.1 2023-06-24 22:08:52 +10:00
Andrew Murray
abf05414de Mention that 32-bit wheels are no longer provided 2023-06-24 21:52:13 +10:00
Andrew Murray
02ae9d12d5 Use --config-settings 2023-06-24 19:48:30 +10:00
Hugo van Kemenade
c48263494c
Merge pull request #7171 from radarhere/build
Use --config-settings instead of deprecated --global-option
2023-06-24 12:43:13 +03:00
Andrew Murray
b6751b24de Updated mergify 2023-06-24 19:17:30 +10:00
Andrew Murray
9c5175d048 Added release notes 2023-06-24 17:52:28 +10:00
Andrew Murray
5498cb800c
Order slower jobs first
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-24 17:46:42 +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
0d54cf5c7f
Merge pull request #6645 from Yay295/int_def
Better C integer definitions
2023-06-24 13:35:23 +10:00
Andrew Murray
6c464b8101 Update CHANGES.rst [ci skip] 2023-06-24 13:09:07 +10:00
Andrew Murray
cfcf46da13
Merge pull request #7229 from RoziePlaysPython/imageopen_docs_fix
Update Image.show docs to list all viewers used on Linux
2023-06-24 07:56:24 +10:00
Andrew Murray
5220c30ef9 Removed 32-bit wheels 2023-06-23 23:12:29 +10:00
Andrew Murray
b0b0798820
Lint fix 2023-06-23 22:22:33 +10:00
Rozie
43a12542ad
Update Image.show docs to list all viewers used on linux
[ci skip]
Accurate description of how default viewer is chosen
2023-06-23 15:05:28 +03:00
Andrew Murray
d6f19625e8 Removed support for 32-bit 2023-06-23 21:52:00 +10:00
Andrew Murray
73fc73038a
Merge pull request #7175 from radarhere/cygwin
Fixed finding dependencies on Cygwin
2023-06-23 19:07:39 +10:00
Andrew Murray
63d6221b49
Merge pull request #7227 from Yay295/bench_formatting
bench_cffi_access print formatting
2023-06-23 08:23:33 +10:00
Yay295
ff4c7ffcea
use same print format regardless of iterations 2023-06-22 09:16:18 -05:00
Yay295
56a795c8dd
add units to bench_cffi_access.py output 2023-06-22 09:05:03 -05:00
Andrew Murray
cb8956fffb Convert to HSV if mode is HSV in getcolor() 2023-06-22 23:27:45 +10:00
Hugo van Kemenade
1f7e67ca02
Merge pull request #7224 from radarhere/mingw 2023-06-22 12:44:50 +03: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
f28ecc5808 Document how to install on MinGW when setuptools >= 60 2023-06-22 17:45:24 +10: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
6ebdc527f7
Merge pull request #7220 from radarhere/contributing 2023-06-19 14:46:52 +03:00
Andrew Murray
0440df0d83 Clarify that the changelog should not be updated in PRs [ci skip] 2023-06-19 20:14:23 +10:00
Hugo van Kemenade
d64739f4d1
Merge pull request #7218 from radarhere/null 2023-06-18 21:50:46 +03:00
Hugo van Kemenade
934a6c61a0
Merge pull request #7219 from abey79/grabclipboard-mac-png 2023-06-18 17:18:30 +03:00
Andrew Murray
e52fa8fe38 Use relevant extension for temporary file 2023-06-17 14:37:13 +02:00
Antoine Beyeler
3c4ccdcff5 Updated CHANGES.rst
[ci skip]
2023-06-17 12:59:42 +02:00
Antoine Beyeler
f72dd8576e Changed grabclipboard() to use PNG compression on macOS
Before, a lossy JPG compression was used.
2023-06-17 12:55:58 +02:00
Andrew Murray
eaf5c094f5 Merge branch 'main' into null 2023-06-17 17:00:18 +10:00
Hugo van Kemenade
99a6765e1a
Merge pull request #7216 from radarhere/pypy
Added PyPy 3.10 and removed PyPy 3.8
2023-06-17 09:59:07 +03: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
fd9bea271a
Compare long long with long long
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2023-06-17 14:39:34 +10:00
Andrew Murray
7044038e70 Fixed decompression bomb check 2023-06-17 14:35:44 +10:00
Andrew Murray
f3a9a93386 Added PyPy 3.10 and removed PyPy 3.8 2023-06-17 00:28:08 +10:00
Andrew Murray
43b693972a Added PyPy 3.10 and removed PyPy 3.8 2023-06-17 00:25:59 +10:00
Andrew Murray
98cc2e63ac Destroy image on error 2023-06-15 14:27:38 +10:00
Andrew Murray
618c00c4ea Return early if image is null 2023-06-15 14:27:33 +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
Andrew Murray
594fbf79b8 Update CHANGES.rst [ci skip] 2023-06-14 23:01:45 +10:00
Andrew Murray
6ab99aac0e
Merge pull request #7212 from radarhere/qoi
Moved QOI from Write-Only to Read-Only
2023-06-14 19:27:30 +10:00
Andrew Murray
b2b05f3b83 Moved QOI from Write-Only to Read-Only 2023-06-14 18:55:19 +10:00
mergify[bot]
561986ee71
Merge pull request #7092 from radarhere/exif_transpose
Added in_place argument to ImageOps.exif_transpose()
2023-06-14 07:24:47 +00:00
Andrew Murray
7d97fa8b86 Use snake case 2023-06-14 16:12:47 +10:00
Hugo van Kemenade
2aacab1809
Merge pull request #7211 from radarhere/rounded_rectangle 2023-06-14 09:08:00 +03:00
Hugo van Kemenade
76a8e9ceb3
Merge pull request #7177 from radarhere/freetype 2023-06-14 09:06:59 +03:00
Hugo van Kemenade
a0f7528ebd
Merge pull request #7174 from radarhere/formatting 2023-06-14 09:06:41 +03:00
Andrew Murray
38d63868bf Do not import internal class 2023-06-14 15:46:24 +10:00
Andrew Murray
541d2605b9 Allow alpha differences to indicate different frames when saving GIF 2023-06-14 14:21:07 +10:00
Andrew Murray
119a0dfb01 Updated tests now that alpha_only is keyword-only 2023-06-14 11:29:22 +10:00
Andrew Murray
044de40c93 Document that alpha_only is a keyword-only argument 2023-06-14 11:28:14 +10:00
Andrew Murray
17b19b5668 Merge branch 'main' into apng 2023-06-14 11:26:42 +10:00
Andrew Murray
d7c7b832f1
Highlight code
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:42 +10:00
Andrew Murray
bae918280d
Changed alpha_only to keyword-only argument
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:12 +10:00
Andrew Murray
187e9a46af Improved documention of "corners" argument for rounded_rectangle 2023-06-14 11:21:43 +10:00
Yay295
36487fe1d4
Remove INT64 and UINT64 definitions 2023-06-13 19:38:06 -05:00
Andrew Murray
f338f35657 Changed inPlace to be keyword-only argument 2023-06-14 10:01:36 +10:00
Andrew Murray
8bbd4ada9b Merge branch 'main' into exif_transpose 2023-06-14 09:57:25 +10:00
Andrew Murray
68edbbca94 Merge branch 'main' into int_def 2023-06-14 09:11:41 +10:00
Andrew Murray
538971532d Corrected error code
Co-authored-by: nulano <nulano@nulano.eu>
2023-06-14 08:55:21 +10:00
Andrew Murray
c24c1ccf81 Use "not in"
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-14 08:52:55 +10:00
Hugo van Kemenade
8f3ccff8f2
Merge pull request #7206 from radarhere/text_layout 2023-06-13 20:31:24 +03:00
Hugo van Kemenade
c62c514299
Merge pull request #7187 from radarhere/putpalette 2023-06-13 20:10:33 +03:00
Hugo van Kemenade
9d08c8247d
Merge pull request #7180 from radarhere/int64 2023-06-13 20:08:26 +03:00
Hugo van Kemenade
a6efb36eda
Merge pull request #7169 from radarhere/coordinate 2023-06-13 20:01:34 +03:00
Hugo van Kemenade
90707d4992
Merge pull request #7136 from radarhere/xz 2023-06-13 19:58:38 +03:00
Hugo van Kemenade
ae921956ba
Merge pull request #7078 from radarhere/long8 2023-06-13 19:48:55 +03:00
Hugo van Kemenade
0c7061e7e4
Merge pull request #7056 from radarhere/eps 2023-06-13 19:47:55 +03:00
Andrew Murray
9f11034081
Merge pull request #7210 from radarhere/unused
Removed unused code
2023-06-13 08:36:48 +10:00
Andrew Murray
706f8f6465
Merge pull request #7208 from hugovk/add-debian-12-bookworm 2023-06-12 13:36:22 +10:00
Hugo van Kemenade
5a0fb8ec12 Add Debian 12 Bookworm 2023-06-11 00:05:47 +03:00
Andrew Murray
1756df4615 Removed unused private method 2023-06-10 20:24:34 +10:00
Andrew Murray
16d82c2dfd Improved coverage 2023-06-10 19:37:54 +10:00
Andrew Murray
4dcca33d30 Removed unused arguments 2023-06-10 19:06:25 +10:00
Hugo van Kemenade
e2fccfe1aa
Merge pull request #7205 from radarhere/unused
Removed unused variables
2023-06-10 10:54:25 +03:00
Andrew Murray
389ad11693 Only call text_layout once in getmask2 2023-06-10 17:10:42 +10:00
Andrew Murray
aeb6e9909e Removed unused argument 2023-06-10 15:57:05 +10:00
Andrew Murray
748a4d0fcd Removed unused variable 2023-06-10 14:26:28 +10:00
Hugo van Kemenade
1fc8d825fa
Merge pull request #7204 from radarhere/kernel 2023-06-09 08:59:09 +03:00
Andrew Murray
da6b2ec285 Document order of kernel weights 2023-06-09 10:47:20 +10:00
Hugo van Kemenade
e3cca42980
Merge pull request #7203 from radarhere/numresolution 2023-06-08 12:15: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
Andrew Murray
15edb6d625 Fixed signedness comparison warning 2023-06-07 22:33:55 +10:00
Andrew Murray
7c533276f2 Update CHANGES.rst [ci skip] 2023-06-06 19:53:50 +10:00
mergify[bot]
6b3991befb
Merge pull request #7146 from radarhere/apng_duration
Fixed combining single duration across duplicate APNG frames
2023-06-06 08:57:02 +00:00
mergify[bot]
9264c3d29e
Merge pull request #7148 from radarhere/unlink
Remove temporary file when error is raised
2023-06-06 08:34:54 +00:00
Andrew Murray
97df237dc8 Moved test into separate function 2023-06-06 18:04:39 +10:00
Andrew Murray
400716da0d Merge branch 'main' into apng_duration 2023-06-06 18:00:48 +10:00
Andrew Murray
3b65261c96 Remove temporary file when error is raised 2023-06-06 17:54:55 +10:00
Hugo van Kemenade
07be6aad46
Merge pull request #7200 from radarhere/imagegrab
Do not use temporary file when grabbing clipboard on Linux
2023-06-06 09:35:03 +03:00
Hugo van Kemenade
3568df8af1
Merge pull request #7141 from radarhere/grabclipboardwin32 2023-06-06 09:24:13 +03:00
Hugo van Kemenade
df873e39db
Merge pull request #7181 from radarhere/gif 2023-06-06 09:22:57 +03:00
Andrew Murray
97bd53392c Do not use temporary file when grabbing clipboard on Linux 2023-06-05 18:36:41 +10:00
Andrew Murray
0835be95cb Added comment 2023-06-05 15:07:11 +10:00
Andrew Murray
e45da2ae17 Do not close provided file handles with libtiff 2023-06-05 11:07:09 +10:00
Andrew Murray
2d0b13b812 Swapped config key and value 2023-06-04 22:37:17 +10:00
Andrew Murray
87807727eb Merge branch 'main' into build 2023-06-04 22:17:43 +10:00
Hugo van Kemenade
9a560c78a8
Merge pull request #7173 from radarhere/relative 2023-06-02 16:00:01 +03:00
Hugo van Kemenade
3e8d9a85bd
Merge pull request #7194 from radarhere/pre-commit-config
Removed files and types override
2023-06-02 08:06:15 +03:00
Andrew Murray
3693b84ba0 Lint fixes 2023-06-02 09:21:47 +10:00
Andrew Murray
ea3e4242d8 Removed files and types override 2023-06-02 08:07:05 +10:00
Hugo van Kemenade
3ab83f22ca
Merge pull request #7193 from radarhere/editorconfig 2023-06-01 17:04:48 +03:00
Andrew Murray
e01a0195dd Removed duplicate config 2023-06-01 22:53:07 +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
3e3378fc23
Merge pull request #7192 from radarhere/deprecated 2023-05-29 16:08:49 +03:00
Andrew Murray
c45019fe0c Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12 2023-05-29 12:28:03 +10:00
Hugo van Kemenade
d5e03cca88 Wrap arguments before passing
Co-authored-by: nulano <nulano@nulano.eu>
2023-05-28 21:44:44 +03:00
Hugo van Kemenade
7f0c49a6c7 Move pip upgrade to .appveyor.yml 2023-05-28 21:14:39 +03:00
Andrew Murray
07eccd9798 Fixed calling putpalette() on L and LA images before load() 2023-05-28 06:44:34 +10:00
Hugo van Kemenade
58b8d6c4ef Upgrade pip 2023-05-27 23:39:51 +03:00
Hugo van Kemenade
3a0881dffe Disable extra quotes 2023-05-27 23:39:51 +03:00
Hugo van Kemenade
9ea7721a71 Replace direct invocation of setup.py 2023-05-27 23:39:51 +03:00
Hugo van Kemenade
18960e8416 Use latest setuptools 67.8 2023-05-27 23:39:51 +03:00
Hugo van Kemenade
454dfcc1b4 Add minimal pyproject.toml 2023-05-27 23:39:48 +03:00
Hugo van Kemenade
26e0c81ffb Revert "Install setuptools on Windows"
This reverts commit e6d7f1f347.
2023-05-27 22:40:52 +03:00
Hugo van Kemenade
7c910c4cd9
Merge pull request #7188 from radarhere/python312 2023-05-27 22:39:56 +03:00
Andrew Murray
7a5ddc1712 Do not test PyQt6 on Python 3.12 2023-05-27 10:28:38 +10:00
Andrew Murray
e6d7f1f347 Install setuptools on Windows 2023-05-26 19:52:13 +10:00
Andrew Murray
117618b01f Update CHANGES.rst [ci skip] 2023-05-24 22:47:43 +10:00
Hugo van Kemenade
d4b7cfa647
Merge pull request #7094 from rrcgat/fix-imagegrab-with-wl-paste 2023-05-24 15:04:32 +03:00
Andrew Murray
922e239cca Fixed saving multiple 1 mode images to GIF 2023-05-24 08:55:14 +10:00
Carl Weaver
1dffa86e20
Merge pull request #3 from radarhere/fix-imagegrab-with-wl-paste
Formatting
2023-05-23 22:21:28 +08:00
Andrew Murray
b8719033ca Removed unused INT64 definition 2023-05-23 22:53:16 +10:00
Andrew Murray
26d5f4fcb1 Use tuple instead of list 2023-05-23 21:27:55 +10:00
Andrew Murray
bce0f0d5a6 Moved function code inline 2023-05-23 21:25:11 +10:00
rrcgat
fffcb558f6
Use image/png mime type for ImageGrab (wl-paste) if possible, otherwise the first mime type taken 2023-05-23 18:44:25 +08:00
Andrew Murray
c656583b84 Merge branch 'main' into fix-imagegrab-with-wl-paste 2023-05-23 08:47:42 +10:00
Hugo van Kemenade
5aa3f2d209
Merge pull request #7178 from radarhere/codecov 2023-05-22 14:57:55 +03:00
Andrew Murray
dc6d0641b3 Updated redirected URLs 2023-05-22 19:39:25 +10:00
Andrew Murray
053cb3de52 Fixed finding dependencies on Cygwin 2023-05-21 14:38:05 +10:00
Andrew Murray
546f6cbc27 Replaced absolute PIL import with relative import 2023-05-20 17:11:43 +10:00
Andrew Murray
18da2d0b2d Removed inplace target 2023-05-20 15:38:53 +10:00
Andrew Murray
4f734d295f Use --config-settings instead of deprecated --global-option 2023-05-20 15:38:36 +10:00
Yay295
f6b516bb06 Adjust C preprocessor block labels
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-19 08:11:39 -05:00
Yay295
724f266460 change INT16 def failure to an error 2023-05-18 17:49:13 -05:00
Yay295
9da0b58eea move INT8 def to top 2023-05-18 17:49:13 -05:00
Yay295
fbec8f19dd add check for C99+ to use their defs if possible 2023-05-18 17:49:13 -05:00
Yay295
c2527348ec add comment explaining why #define and not typedef 2023-05-18 17:49:13 -05:00
Yay295
e9cfe4b6a2 label preprocessor if..else..endif for clarity 2023-05-18 17:49:13 -05:00
Yay295
6de5e999bd add UINT64 def if INT64 is defined 2023-05-18 17:49:12 -05:00
Yay295
509671c53e fix INT64 def and add warning if not set 2023-05-18 17:49:12 -05:00
Andrew Murray
b39c807dde Removed rectangle example from co-ordinate system documentation 2023-05-18 22:14:40 +10:00
Andrew Murray
599979caae Update CHANGES.rst [ci skip] 2023-05-17 16:53:42 +10:00
Hugo van Kemenade
0f3a0c32a5
Merge pull request #7166 from radarhere/fribidi 2023-05-17 09:13:15 +03:00
Andrew Murray
0e21e47768 Update CHANGES.rst [ci skip] 2023-05-17 08:25:25 +10:00
Andrew Murray
53e73fd094 Updated fribidi to 1.0.13 2023-05-17 08:21:59 +10:00
Hugo van Kemenade
a58034b86c
Merge pull request #7135 from n3011/jpg_repr 2023-05-16 12:14:40 +03:00
Andrew Murray
512776e09b
Merge pull request #7164 from hugovk/docs-pdf
Build only PDF in addition to default html
2023-05-16 07:12:54 +10:00
Andrew Murray
ac2d283065 Update CHANGES.rst [ci skip] 2023-05-16 07:08:02 +10:00
Ishant Mrinal Haloi
b5d622c111
Merge pull request #2 from radarhere/jpg_repr
Added release notes
2023-05-15 21:25:03 +05:30
Hugo van Kemenade
82e57b8a90 Build only PDF in addition to default html 2023-05-15 15:47:30 +03:00
Hugo van Kemenade
86a70fc768
Merge pull request #7068 from radarhere/ldconfig 2023-05-15 15:28:21 +03:00
Andrew Murray
ce22ad96b7 Update CHANGES.rst [ci skip] 2023-05-15 09:47:09 +10:00
Hugo van Kemenade
34ff170d8e
Merge pull request #7143 from nulano/imagegrab-prefer-xcb
Prefer screenshots using XCB over gnome-screenshot
2023-05-14 19:55:16 +03:00
Andrew Murray
9754c8d18d Added release notes 2023-05-14 22:42:39 +10:00
Ishant Mrinal Haloi
f328383763
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-14 11:11:56 +05:30
Hugo van Kemenade
baad0ad1b7
Merge pull request #7160 from radarhere/imagegrab 2023-05-13 17:30:15 +03:00
Andrew Murray
6df8716025 Update grabclipboard() documentation after #6783 2023-05-13 21:54:54 +10:00
Andrew Murray
59b7a48570 Updated docstrings 2023-05-13 12:24:50 +10:00
Ishant Mrinal Haloi
2db9c68571
Apply suggestions from code review
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-13 07:32:02 +05:30
Andrew Murray
e063ed772c Update CHANGES.rst [ci skip] 2023-05-13 11:02:53 +10:00
Ishant Mrinal Haloi
46708099b1
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-12 21:56:40 +05:30
Hugo van Kemenade
c561cd2b44
Merge pull request #7151 from radarhere/rounded_rectangle 2023-05-12 18:35:13 +03:00
Hugo van Kemenade
0efd72d33f
Merge pull request #7142 from radarhere/imagedraw 2023-05-12 18:31:09 +03: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
Andrew Murray
7e29efd518 Do not catch OSError raised when loading image 2023-05-11 16:29:08 +01:00
Hugo van Kemenade
8874549a99
Merge pull request #7157 from radarhere/links 2023-05-11 10:52:38 +03:00
Andrew Murray
848fd7c2db Added linkcheck_allowed_redirects 2023-05-11 16:49:08 +10:00
Andrew Murray
8bbccba825 Updated redirected URL 2023-05-11 08:13:33 +10:00
Hugo van Kemenade
f83bb5452a
Merge pull request #381 from radarhere/harfbuzz 2023-05-10 10:14:09 +03:00
Hugo van Kemenade
6fb2312a2e
Merge pull request #7152 from radarhere/harfbuzz 2023-05-10 10:14:00 +03:00
Andrew Murray
3ec03c6720
Only check for gnome-screenshot on Linux
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-05-10 13:53:55 +10:00
Andrew Murray
c68c508e27 Fixed joined corners for odd dimensions 2023-05-10 13:25:35 +10:00
Andrew Murray
b9b685fc56 Updated harfbuzz to 7.3.0 2023-05-10 12:35:59 +10:00
Andrew Murray
a247d9d892 Updated harfbuzz to 7.3.0 2023-05-10 12:34:25 +10:00
Andrew Murray
a0b691a219 Fixed combining single duration across duplicate PNG frames 2023-05-09 12:12:16 +10:00
nulano
bb18abc603
prefer screenshots using XCB over gnome-screenshot 2023-05-08 22:57:12 +01:00
Andrew Murray
2f896ee4ac Clarify that line() and polygon() include xy pixels 2023-05-08 21:16:34 +10:00
Andrew Murray
f67fcf131a If the clipboard fails to open on Windows, wait and try again 2023-05-08 11:58:05 +10:00
Ishant Mrinal Haloi
ccdce1791d rename format to image_format 2023-05-06 10:35:28 +05:30
Ishant Mrinal Haloi
55be23bbd2
Merge pull request #1 from radarhere/jpg_repr
Only assert image is similar
2023-05-06 10:32:36 +05:30
Ishant Mrinal Haloi
2d841e16c2
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-06 10:31:58 +05:30
Andrew Murray
2a274a4760
Merge pull request #6949 from Yay295/test_lists_and_tuples
Test lists and tuples
2023-05-06 13:17:42 +10:00
Andrew Murray
fa97a1af10 Merge branch 'main' into test_lists_and_tuples 2023-05-06 11:43:00 +10:00
Andrew Murray
e3990f67be
Merge pull request #6900 from Yay295/parametrize_jpeg_leaks_test
Test both lists and tuples as qtables arguments
2023-05-06 11:12:22 +10:00
Andrew Murray
6c800dda6a
Merge pull request #6904 from Yay295/imagepath_tests
More ImagePath tests
2023-05-06 10:38:09 +10:00
Yay295
b2a6ca5a1c
Merge pull request #6 from radarhere/imagepath_tests
Removed separate test for array tobytes()
2023-05-05 10:11:32 -05:00
Hugo van Kemenade
97c0e29835
Merge pull request #7138 from radarhere/imagepath_default 2023-05-05 12:43:01 +03:00
Andrew Murray
38c40d81d2 Use boolean instead of integer 2023-05-05 18:25:05 +10:00
Andrew Murray
17fbafb10b Updated ImagePath tolist() default 2023-05-05 18:12:10 +10:00
Andrew Murray
04191d15f6 Removed separate test for array tobytes() 2023-05-05 17:56:42 +10:00
Andrew Murray
99fa356d51 Merge branch 'main' into imagepath_tests 2023-05-05 17:56:19 +10:00
Andrew Murray
93e507294b Only assert image is similar 2023-05-05 08:19:43 +10:00
Andrew Murray
6e3c730b15 Updated xz to 5.4.3 2023-05-05 07:19:58 +10:00
Andrew Murray
c5f90af56c Updated xz to 5.4.3 2023-05-05 07:19:13 +10:00
Ishant Mrinal Haloi
5377b0735f add _repr_jpg_ for ipython display
Signed-off-by: Ishant Mrinal Haloi <mrinal.haloi11@gmail.com>
2023-05-04 21:43:57 +05:30
Hugo van Kemenade
b073a8962b
Merge pull request #7134 from radarhere/regular_polygon 2023-05-04 10:18:26 +03:00
Andrew Murray
3ae321832a Added release notes for #7132 2023-05-04 15:37:35 +10:00
Andrew Murray
9f0c416469 Update CHANGES.rst [ci skip] 2023-05-04 15:30:17 +10:00
Hugo van Kemenade
1e7c77c31f
Merge pull request #7111 from radarhere/tiff
Support reading signed 8-bit TIFF images
2023-05-04 06:53:52 +03:00
Andrew Murray
2467db492e Update CHANGES.rst [ci skip] 2023-05-04 08:15:48 +10:00
Andrew Murray
9154a6b22d Added release notes 2023-05-04 08:01:48 +10:00
Andrew Murray
a4986ba986 Support reading signed 8-bit TIFF images 2023-05-04 07:54:30 +10:00
Hugo van Kemenade
9636a2aaf1
Merge pull request #7132 from radarhere/regular_polygon_width 2023-05-03 18:21:25 +03:00
Hugo van Kemenade
74a851965c
Merge pull request #7108 from radarhere/filter 2023-05-03 18:18:53 +03:00
Hugo van Kemenade
4c6159b9a3
Merge pull request #7112 from radarhere/grabclipboard_stderr 2023-05-03 18:16:52 +03:00
Andrew Murray
3fc446c277 Added width argument to regular_polygon 2023-05-03 22:54:18 +10:00
mergify[bot]
7ec3f8ce52
Merge pull request #7128 from radarhere/imagequant
Updated libimagequant to 4.2.0
2023-05-03 05:50:28 +00:00
mergify[bot]
d1c110c695
Merge pull request #7125 from radarhere/unpackI16B_I16
Added unpacker from I;16B to I;16
2023-05-03 05:22:20 +00:00
Andrew Murray
db7326674e Updated libimagequant to 4.2.0 2023-05-03 13:43:19 +10:00
Andrew Murray
0ab397d643 Merge branch 'main' into unpackI16B_I16 2023-05-03 13:43:02 +10:00
Andrew Murray
58e0dd7df9 Merge branch 'main' into apng 2023-05-03 13:42:39 +10:00
Hugo van Kemenade
fdc6cf3e52
Merge pull request #7131 from radarhere/mingw
Use stdlib for setuptools on MinGW
2023-05-03 06:41:05 +03:00
Andrew Murray
d9921f697a Use stdlib for setuptools on MinGW 2023-05-03 08:29:20 +10:00
Hugo van Kemenade
c9cb9fa113
Merge pull request #7129 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-05-02 15:26:08 +03:00
Andrew Murray
15ef533df9 Added alpha_only argument to getbbox() 2023-05-02 08:41:18 +10:00
pre-commit-ci[bot]
a766fa4cd1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-05-01 19:16:03 +00:00
pre-commit-ci[bot]
b7d19e83d0
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/tox-dev/tox-ini-fmt: 1.0.0 → 1.3.0](https://github.com/tox-dev/tox-ini-fmt/compare/1.0.0...1.3.0)
2023-05-01 19:15:29 +00:00
Andrew Murray
ff003bfbcc Added unpacker from I;16B to I;16 2023-04-30 14:49:40 +10:00
Andrew Murray
b62c3baeee Update CHANGES.rst [ci skip] 2023-04-30 06:32:27 +10:00
Hugo van Kemenade
139acc4542
Merge pull request #7107 from radarhere/float_font_sizes
Support float font sizes
2023-04-29 21:20:46 +03:00
Hugo van Kemenade
380a927fc2
Merge pull request #7102 from radarhere/xref_table
Use later value for duplicate xref entries in PdfParser
2023-04-29 21:20:10 +03:00
Andrew Murray
96bdbc4afe Renamed variable 2023-04-29 19:11:02 +10:00
Andrew Murray
ebd3c47425 When saving, allow alpha differences to indicate different frames 2023-04-29 15:02:11 +10:00
Jeffrey A. Clark (Alex)
d1731b35fe
Merge pull request #7116 from radarhere/formats
Build all readthedocs formats
2023-04-27 11:54:41 -04:00
Hugo van Kemenade
0200691fbc
Merge pull request #7118 from radarhere/harfbuzz
Updated harfbuzz to 7.2.0
2023-04-27 10:02:11 +03: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
0c8db130af Updated harfbuzz to 7.2.0 2023-04-27 13:31:14 +10:00
Hugo van Kemenade
f32e6a6ae6
Merge pull request #7115 from radarhere/ubuntu
Removed Ubuntu 18.04 docker image
2023-04-26 01:28:56 -06:00
Andrew Murray
d0e9a13c0c Build all readthedocs formats 2023-04-26 17:08:06 +10:00
Andrew Murray
99a474a9e6 Removed Ubuntu 18.04 2023-04-25 23:55:29 +10:00
Andrew Murray
ab3d0c071e Raise error from stderr of Linux grabclipboard command 2023-04-24 21:03:27 +10:00
Andrew Murray
e3cb4bb8e0 Update CHANGES.rst [ci skip] 2023-04-24 07:48:53 +10:00
Andrew Murray
48a6c3f072
Merge pull request #7105 from bigcat88/load-before-deepcopy
Load before getting size in __getstate__
2023-04-24 07:47:36 +10:00
Hugo van Kemenade
0f389c75b9
Merge pull request #7109 from radarhere/fedora
Added Fedora 38
2023-04-23 11:06:33 -06:00
Alexander Piskun
dbfe2fbb30
Merge pull request #4 from radarhere/load-before-deepcopy
Moved test to test_image_copy.py
2023-04-23 10:35:04 +03:00
Andrew Murray
f5c1f7a2c2 Added Fedora 38 2023-04-22 21:47:36 +10:00
Andrew Murray
d0b41da094 Support I mode for BuiltinFilter 2023-04-22 21:22:01 +10:00
Hugo van Kemenade
8df8b43edb
Merge pull request #7106 from radarhere/imagecms 2023-04-21 22:15:24 -06:00
Andrew Murray
81a756e93b Support float font sizes 2023-04-22 13:45:18 +10:00
Andrew Murray
b62287da3a Moved test to test_image_copy 2023-04-22 11:18:56 +10:00
Andrew Murray
91b69857c7 Removed duplicate code 2023-04-22 10:13:56 +10:00
Alexander Piskun
b10379b3c1
Load image before deepcopy(__getstate__)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2023-04-21 17:42:45 +03:00
Hugo van Kemenade
a405e8406b
Merge pull request #7103 from radarhere/macos 2023-04-21 00:43:24 -06:00
Carl Weaver
5a0c431c46
Merge pull request #1 from radarhere/init
Call init() if mimetype is not found with preinit()
2023-04-21 08:14:45 +08:00
Andrew Murray
895f5a4ffc Updated macOS tested Pillow versions [ci skip] 2023-04-21 09:04:46 +10:00
Andrew Murray
d2256338b8 Use later value for duplicate xref entries 2023-04-20 23:15:20 +10:00
Andrew Murray
625b9fcf02
Merge pull request #7101 from hugovk/fix-typo
Fix typo
2023-04-19 23:26:18 +10:00
Hugo van Kemenade
75c4acf02c Fix typo 2023-04-19 06:46:58 -06:00
Andrew Murray
f15d7265f7 Call init() if mimetype is not found with preinit() 2023-04-18 10:33:31 +10:00
Andrew Murray
b7585b0597 Removed unnecessary settings 2023-04-18 10:27:36 +10:00
Andrew Murray
1321b6e09c
Merge pull request #7099 from python-pillow/renovate/github-actions
Update cygwin/cygwin-install-action action to v4
2023-04-17 20:59:01 +10:00
Hugo van Kemenade
b87069c2c7
Merge pull request #7098 from radarhere/fedora 2023-04-17 04:57:40 -06:00
renovate[bot]
6ffa189d01
Update cygwin/cygwin-install-action action to v4 2023-04-17 09:16:01 +00:00
Andrew Murray
4e6f1f1ac6 Removed Fedora 36 2023-04-17 19:08:59 +10:00
rrcgat
aa2e662995
Add sway and wl-clipboard dependencies to GitHub CI workflow 2023-04-17 16:59:42 +08:00
Andrew Murray
cc84ff5e7d Note that open() seeks to the start of file objects 2023-04-17 16:10:29 +10:00
Andrew Murray
8871b95559 Merge branch 'main' into fix-imagegrab-with-wl-paste 2023-04-17 15:28:39 +10:00
mergify[bot]
aec7a8d14b
Merge pull request #7090 from radarhere/openjpeg
Remove use of deprecated OpenJPEG "bpp" member
2023-04-16 14:15:48 +00:00
Andrew Murray
9147657f39 Merge branch 'main' into exif_transpose 2023-04-16 23:25:23 +10:00
Andrew Murray
57bbe6df2c Remove use of deprecated "bpp" member 2023-04-16 23:16:01 +10:00
rrcgat
3d54b8e2b2
Remove useless try catch block 2023-04-16 15:41:14 +08:00
Carl Weaver
6d12581385
Update src/PIL/ImageGrab.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-16 15:37:38 +08:00
Andrew Murray
fe8599c5d6 Use ExifTags 2023-04-16 14:04:39 +10:00
Hugo van Kemenade
165ce3fed8
Merge pull request #7091 from radarhere/cygwin_python_version 2023-04-15 21:34:37 +03:00
Andrew Murray
6acb381656 Simplified NumPy install command 2023-04-15 22:38:07 +10:00
Andrew Murray
bcb8dfc2fa Rearranged code 2023-04-15 22:30:18 +10:00
rrcgat
099d696dc7
Fix ImageGrab with wl-paste 2023-04-15 19:28:54 +08:00
Andrew Murray
8d3014b8bf Added inPlace argument to exif_transpose() 2023-04-15 21:03:59 +10:00
Andrew Murray
73e9482488 Select Python version 2023-04-15 16:47:40 +10:00
Hugo van Kemenade
8740e32619
Merge pull request #7089 from radarhere/nasm
Updated nasm to 2.16.01
2023-04-14 08:23:55 +03:00
Andrew Murray
accbd8ad93 Updated nasm to 2.16.01 2023-04-14 11:13:28 +10:00
mergify[bot]
1bd5783689
Merge pull request #7088 from radarhere/raqm
Updated raqm to 0.10.1
2023-04-13 06:46:16 +00:00
mergify[bot]
dd3482d905
Merge pull request #7087 from nulano/raqm-0.10.1
Update vendored Raqm to 0.10.1
2023-04-13 06:45:17 +00:00
Yay295
886ed7a7d7
Merge branch 'python-pillow:main' into test_lists_and_tuples 2023-04-13 00:20:44 -05:00
Andrew Murray
5ffb0a86c9 Merge branch 'master' into raqm-0.10.1 2023-04-13 14:57:11 +10:00
Andrew Murray
86716ff2b0 Updated raqm to 0.10.1 2023-04-13 14:55:26 +10:00
mergify[bot]
20a2cc2026
Merge pull request #7085 from hugovk/fix-codecov-deletion-spree
Fix codecov after they deleted the Python package from PyPI
2023-04-13 04:52:30 +00:00
Hugo van Kemenade
087a5f889a
Remove chmod
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-13 07:00:07 +03:00
Nulano
f619675115 Update vendored Raqm to 0.10.1 2023-04-12 21:14:38 +02:00
Hugo van Kemenade
3bb6344541 Replace deleted codecov package with bash uploader 2023-04-12 18:52:57 +03:00
Hugo van Kemenade
2d216d3d3d Don't install unused and deleted codecov 2023-04-12 18:52:44 +03:00
Hugo van Kemenade
d1f4917eb4
Merge pull request #7083 from radarhere/pyqt6 2023-04-11 16:05:20 +03:00
Andrew Murray
8aa61243e5 Install libxcb-cursor0 2023-04-11 21:13:49 +10:00
Andrew Murray
6fac6b15f2 Revert "Do not install PyQt6-Qt6 6.5.0"
This reverts commit 5ef3ddafe3.
2023-04-11 21:13:13 +10:00
Hugo van Kemenade
70d4670632
Merge pull request #7057 from radarhere/version_bump
10.0.0.dev0 version bump
2023-04-11 06:48:16 +03:00
Andrew Murray
9aefa8d5eb Update CHANGES.rst [ci skip] 2023-04-11 12:20:27 +10:00
Andrew Murray
0ec0a89ead
Merge pull request #7069 from adisbladis/include-dir-type-confusion
Fixed type handling for include and lib directories
2023-04-11 12:18:54 +10:00
Andrew Murray
51fbc9c5f7
Merge pull request #7074 from hugovk/release-refinement
Release refinement
2023-04-11 08:09:45 +10:00
Andrew Murray
38c2449ef9 Update CHANGES.rst [ci skip] 2023-04-11 07:31:43 +10:00
Andrew Murray
54fddf0181 Merge branch 'main' into version_bump 2023-04-11 07:18:13 +10:00
mergify[bot]
0b9997f41b
Merge pull request #7080 from radarhere/getsize
Remove deprecated ImageFont.getsize and related functions for Pillow 10.0.0
2023-04-10 14:12:07 +00:00
Andrew Murray
6fce7d6ed4 Merge branch 'main' into include-dir-type-confusion 2023-04-10 22:49:32 +10:00
Hugo van Kemenade
cb68187006 Clarify command should be run from main repo 2023-04-10 15:49:18 +03:00
Andrew Murray
08b553957b Move "git push" commands later 2023-04-10 15:49:18 +03:00
Hugo van Kemenade
6a3c399139 Fix typo
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-10 15:49:18 +03:00
Hugo van Kemenade
47ac51cd8f Update PEP links to redirects 2023-04-10 15:49:17 +03:00
Hugo van Kemenade
c9ec517b4d Give examples how to download binary releases using gh CLI 2023-04-10 15:49:17 +03:00
Hugo van Kemenade
34908960f0 Flip order to give slower macOS/Linux a headstart 2023-04-10 15:49:17 +03:00
Hugo van Kemenade
900db50a74 Move 'git push --all' later 2023-04-10 15:49:17 +03:00
Andrew Murray
6c5cc6e213 Merge branch 'main' into getsize 2023-04-10 22:47:49 +10:00
mergify[bot]
a41b9cefcd
Merge pull request #7081 from radarhere/pyqt6-qt6
Do not install PyQt6-Qt6 6.5.0
2023-04-10 12:47:19 +00:00
Andrew Murray
5ef3ddafe3 Do not install PyQt6-Qt6 6.5.0 2023-04-10 20:56:46 +10:00
Andrew Murray
16aa710c78 Updated documentation 2023-04-10 20:14:15 +10:00
Andrew Murray
fe4e52deac Rearranged code 2023-04-10 19:35:04 +10:00
Andrew Murray
bc0bf5efea Preserve line spacing backwards compatibility 2023-04-10 18:49:06 +10:00
Andrew Murray
fa6cd4a195 Only check width and height of transposed fonts once 2023-04-10 17:34:33 +10:00
Andrew Murray
b27794fc01 Added test for ImageDraw2 textbbox 2023-04-10 17:24:16 +10:00
Hugo van Kemenade
adbb04d5dc Formatting for readability 2023-04-10 16:56:21 +10:00
Andrew Murray
b2301d70d1 Removed ImageFont.getsize and related functions 2023-04-10 16:56:13 +10:00
Andrew Murray
dd15f15d08 Added further field sizes 2023-04-10 09:06:20 +10:00
mergify[bot]
b0c7653502
Merge pull request #7075 from hugovk/check-release-notes
Add release check to make sure no TODOs remain in release notes
2023-04-09 20:38:04 +00:00
Hugo van Kemenade
80a1238e2b
Simplify glob
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-09 22:43:36 +03:00
Hugo van Kemenade
6797e47458 Add release check to make sure no TODOs remain in release notes 2023-04-08 19:52:04 +03:00
Andrew Murray
4ffbbe194c Update CHANGES.rst [ci skip] 2023-04-08 20:14:12 +10:00
Andrew Murray
75388cfe42
Merge pull request #7059 from hugovk/rm-qt5
Remove deprecations for Pillow 10.0.0
2023-04-08 20:11:00 +10:00
Hugo van Kemenade
aa6c0dcc9e
Cygwin doesn't provide any Qt6 packages
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-08 10:31:47 +03:00
Hugo van Kemenade
9baa57b75c
Merge pull request #101 from radarhere/qt5
Remove deprecations for Pillow 10.0.0
2023-04-08 10:30:01 +03:00
Hugo van Kemenade
94aa76ebde
Fix typo 2023-04-08 10:29:28 +03:00
Andrew Murray
c26b462159 Updated documentation 2023-04-08 11:52:38 +10:00
Andrew Murray
2cba9904db Removed _category 2023-04-08 11:48:06 +10:00
Andrew Murray
f707e8abd6 1 mode still fails for PyQt6 2023-04-08 11:40:31 +10:00
Hugo van Kemenade
f1f46a718d Add removals to 10.0.0 release notes 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
b25bf5161a Remove Image.coerce_e, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
584f8c39de Remove PhotoImage.paste() box parameter, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c9f11565f1 Remove FreeTypeFont.getmask2 fill parameter, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
575a038f97 Remove FitsStubImagePlugin, deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c8ec15980b Remove constants deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
8d83d5e66a Remove ImageShow.Viewer.show_file file argument, deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
5dbef9e0a8 Remove ImagePalette size parameter, deprecated in 8.4.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
52f4fc59a2 Remove JpegImagePlugin.convert_dict_qtables, deprecated in 8.3.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
ddc4e90235 Remove im.category and related Image.NORMAL, Image.SEQUENCE, Image.CONTAINER, deprecated in 8.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
070e770469 Remove support for Tk/Tcl <= 8.4, deprecated in 8.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
59c9d87f8a Remove support for PyQt5 and PySide2, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
7e2ac65674
Merge pull request #7072 from radarhere/fixme 2023-04-06 14:37:14 +03:00
Andrew Murray
b2b660e2c0 Removed FIXME comment 2023-04-06 18:53:28 +10:00
adisbladis
d94239ae3d Handle polymorphic types for lib_root and include_root in setup.py
Depending on whether these are created by pkg_config or not they might
be a list of directories or just a string with a single directory.
2023-04-05 16:19:58 +12:00
Andrew Murray
ca2bf046d3 Use "/sbin/ldconfig" if ldconfig is not found 2023-04-05 09:57:16 +10:00
Hugo van Kemenade
943a7a89c5
Merge pull request #7065 from radarhere/imageenhance 2023-04-04 21:55:09 +03:00
Andrew Murray
7d3a6aae8a
Merge pull request #7063 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-04-04 17:50:02 +10:00
Andrew Murray
4720774a85 Describe the effect of brightness and contrast factors above 1 2023-04-04 14:59:26 +10:00
Andrew Murray
498b475e82 Added links to more information about the enhancement factor 2023-04-04 13:23:19 +10:00
Hugo van Kemenade
6c057b3277 Run tox-ini-fmt 2023-04-03 23:08:23 +03:00
Hugo van Kemenade
f46594ff47 Don't remove tabs from hopper.gd 2023-04-03 23:07:45 +03:00
pre-commit-ci[bot]
5a7e2ad638
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0)
- [github.com/PyCQA/bandit: 1.7.4 → 1.7.5](https://github.com/PyCQA/bandit/compare/1.7.4...1.7.5)
- [github.com/Lucas-C/pre-commit-hooks: v1.4.2 → v1.5.1](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.4.2...v1.5.1)
- [github.com/tox-dev/tox-ini-fmt: 0.6.1 → 1.0.0](https://github.com/tox-dev/tox-ini-fmt/compare/0.6.1...1.0.0)
2023-04-03 19:44:19 +00:00
Andrew Murray
fada40d2e8 Update CHANGES.rst [ci skip] 2023-04-03 19:29:09 +10:00
Andrew Murray
b53ca82231
Merge pull request #7058 from hugovk/rm-3.7
Drop support for soon-EOL Python 3.7
2023-04-03 19:27:27 +10:00
Hugo van Kemenade
f36f242b9b
Merge pull request #98 from radarhere/rm-3.7
Updated Python version in documentation
2023-04-03 07:32:54 +03:00
Andrew Murray
00d18fc100 Updated Python version in documentation 2023-04-03 07:39:31 +10:00
Hugo van Kemenade
6a2087ebe4 Amazon Linux 2 now tested with Python 3.9 2023-04-02 17:46:00 +03:00
Hugo van Kemenade
b399ebc8c2 Bump Python on RTD from 3.7 to 3.11 2023-04-02 17:44:48 +03: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
596569c928 Drop support for soon-EOL Python 3.7 2023-04-01 15:58:08 +03:00
Andrew Murray
1e250e1137 10.0.0.dev0 version bump 2023-04-01 23:36:52 +11:00
Hugo van Kemenade
4f7070e24c 9.6.0.dev0 version bump 2023-04-01 12:34:27 +03:00
Andrew Murray
2203afeafa Do not set size unnecessarily if image failed to open 2023-04-01 19:36:06 +11:00
Hugo van Kemenade
dbe75582a7 Pillow -> 9.5.0 2023-04-01 11:02:46 +03:00
Hugo van Kemenade
204590600c
Merge pull request #7054 from radarhere/releasenotes 2023-04-01 10:49:41 +03:00
Andrew Murray
fa689fba04 Removed unused sections 2023-04-01 18:35:43 +11:00
Hugo van Kemenade
10794e0d66 9.5.0 version bump 2023-04-01 09:15:01 +03:00
Hugo van Kemenade
48b0be2fb7
Merge pull request #6879 from Yay295/eps_plugin_perf 2023-04-01 08:55:48 +03:00
Hugo van Kemenade
3cfdef395e
Merge pull request #7047 from nulano/freetype-import
Do not discard error message if _imagingft fails to import
2023-04-01 08:43:45 +03:00
Andrew Murray
ac7878082e Update CHANGES.rst [ci skip] 2023-04-01 14:06:42 +11:00
Andrew Murray
daca312c5d
Merge pull request #7053 from radarhere/tiff
Added ImageSourceData to TAGS_V2
2023-04-01 13:57:43 +11:00
Andrew Murray
b1b0353d17 Corrected passing TIFF_LONG to libtiff 2023-04-01 12:21:16 +11:00
Andrew Murray
aa9ecac032 Added ImageSourceData to TAGS_V2 2023-04-01 10:27:39 +11:00
Andrew Murray
3cd1e12974
Merge pull request #7052 from radarhere/ppm_half_token
Clear PPM half token after use
2023-04-01 10:07:47 +11:00
Andrew Murray
eeaee75a6e
Merge pull request #7021 from radarhere/getmask2
Do not render text if image has zero width or height
2023-04-01 09:26:06 +11:00
Andrew Murray
5932a0bd19 Clear half token after use 2023-04-01 09:23:57 +11:00
Hugo van Kemenade
eba0245329
Merge pull request #7046 from radarhere/cflags_stderr 2023-03-31 17:18:22 +03:00
mergify[bot]
20a7ed291f
Merge pull request #7051 from Yay295/patch-1
Add missing word
2023-03-31 13:14:52 +00:00
mergify[bot]
b4419169a4
Merge pull request #7050 from radarhere/warning
Fixed compilation warnings
2023-03-31 12:23:08 +00:00
Yay295
b606da7f0e
add missing word 2023-03-31 07:19:33 -05:00
Andrew Murray
89d2cdfcfa Fixed warning that nLeft is set but not used 2023-03-31 22:30:36 +11:00
Andrew Murray
59d67fa68a Only call PyTuple_Check once in getink 2023-03-31 21:59:06 +11:00
Andrew Murray
d84e227204 Fixed warning that variable may be uninitialized 2023-03-31 21:52:37 +11:00
Hugo van Kemenade
93afedfa27
Merge pull request #7049 from radarhere/numpy 2023-03-31 13:40:20 +03:00
Andrew Murray
485532c1f3 Mention available pixel types when converting from NumPy 2023-03-31 21:00:28 +11:00
Andrew Murray
e95b55acd4 Document loss of palette when converting to NumPy 2023-03-31 20:48:14 +11:00
Hugo van Kemenade
f191666a91
Merge pull request #6999 from radarhere/null
Handle failure from PyDict_New or PyList_New
2023-03-31 08:32:13 +03:00
nulano
3d4e9b107d
warn if module is found but fails to import in PIL.features 2023-03-31 02:57:58 +02:00
nulano
e971674011
cleanup in _imagingft 2023-03-31 02:08:58 +02:00
nulano
b18efc775d
do not discard ImportError message in ImageFont 2023-03-31 01:48:17 +02:00
Andrew Murray
1f0573f2d6 Update CHANGES.rst [ci skip] 2023-03-31 06:38:10 +11:00
Andrew Murray
17a0a2ee3e Removed unnecessary silencing of stderr 2023-03-31 06:14:45 +11:00
Hugo van Kemenade
d850ac7a58
Merge pull request #7044 from radarhere/ldconfig 2023-03-30 17:38:15 +03:00
Andrew Murray
c3364a4245 Do not use absolute path for ldconfig 2023-03-30 16:55:18 +11:00
Andrew Murray
448ab0a687
Call FT_Done_MM_Var when returning early
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 14:36:58 +11:00
Andrew Murray
7632d8df36 Do not DECREF individual list items, reverting grouping 2023-03-30 12:35:07 +11:00
Andrew Murray
0ea1184bcf
Free additional variables
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 07:54:01 +11:00
Yay295
61d0c8f523 change PSFile deprecation from 9.4.0 to 9.5.0 2023-03-29 10:30:20 -05:00
Yay295
b8b153fd77
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-03-29 10:27:25 -05:00
Hugo van Kemenade
e945437195
Merge pull request #6947 from nulano/winbuild-ninja 2023-03-29 17:04:14 +03:00
Hugo van Kemenade
39cdcde605
Merge pull request #6912 from radarhere/universal2 2023-03-29 16:45:13 +03:00
Andrew Murray
d7dd44dde0 Update CHANGES.rst [ci skip] 2023-03-29 23:46:06 +11:00
Andrew Murray
f8be09612d
Merge pull request #6903 from joshware/jp2k_options
Support custom comments and PLT markers when saving JPEG2000 images
2023-03-29 23:43:54 +11:00
Andrew Murray
6d3c1985e0 Assert false instead of raising an error 2023-03-29 22:20:57 +11:00
Andrew Murray
9a7a448219 Increase similiarity between test_plt_marker and _parse_comment 2023-03-29 20:14:29 +11:00
Andrew Murray
2f66d2d6a1 Changed maximum comment length to 65531 2023-03-29 19:25:35 +11:00
Andrew Murray
598216fb46 OpenJPEG 2.4.0 or later is required for PLT markers 2023-03-29 19:25:14 +11:00
Andrew Murray
7d6ff23e1f
Renamed "add_plt" to "plt"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-28 07:32:30 +11:00
Andrew Murray
a7df096d1b Added release notes 2023-03-27 22:39:01 +11:00
Andrew Murray
1fd189164c Renamed "add_plt" to "plt" 2023-03-27 22:38:29 +11:00
Andrew Murray
9035e0d6c8 Merge branch 'radarhere/jp2k_options' into jp2k_options 2023-03-26 23:03:44 +11:00
Andrew Murray
bdcc6333b6
Update CHANGES.rst [ci skip] 2023-03-26 08:34:42 +11:00
Hugo van Kemenade
1ff0fb4472
Merge pull request #7034 from radarhere/array_interface 2023-03-25 19:16:53 +02:00
Hugo van Kemenade
20293e1f76
Merge pull request #7010 from radarhere/bgr32 2023-03-25 17:45:47 +02:00
Andrew Murray
d5d830dd00 Merge branch 'main' into bgr32 2023-03-25 23:45:48 +11:00
Andrew Murray
a236c272a8 Added release notes 2023-03-25 23:41:27 +11:00
Hugo van Kemenade
346ccfc660
Merge pull request #7036 from radarhere/choco 2023-03-25 09:48:09 +02:00
Andrew Murray
5e7c1801e0 Install Ghostscript using Chocolatey 2023-03-25 11:32:22 +11:00
Andrew Murray
4e0ac449a5
Merge pull request #7035 from python-pillow/renovate/github-actions
Update actions/stale action to v8
2023-03-24 16:27:18 +11:00
renovate[bot]
ce1acb9a75
Update actions/stale action to v8 2023-03-24 03:50:20 +00:00
Andrew Murray
311ab716e0 Update CHANGES.rst [ci skip] 2023-03-24 09:48:25 +11:00
Andrew Murray
7c3fd25433 Allow saving bytes as comments 2023-03-24 09:45:51 +11:00
Hugo van Kemenade
745f540f0e
Merge pull request #7018 from radarhere/apng 2023-03-23 14:56:47 +02:00
Hugo van Kemenade
3d4a6f7d17
Merge pull request #6996 from radarhere/webp 2023-03-23 14:53:21 +02:00
Andrew Murray
d3923f7142 Use reading of comments to test saving comments 2023-03-23 17:53:35 +11:00
Andrew Murray
6a931861fe Load before getting size in __array_interface__ 2023-03-23 10:12:18 +11:00
Andrew Murray
415455d01b Update CHANGES.rst [ci skip] 2023-03-23 09:05:09 +11:00
Andrew Murray
176b2a2000 Merge branch 'master' into jp2k_options 2023-03-23 08:57:20 +11:00
Hugo van Kemenade
31e8e012bb
Merge pull request #6909 from radarhere/jp2_comment 2023-03-22 23:54:55 +02:00
Andrew Murray
dc79a09d62 Merge branch 'main' into null 2023-03-22 18:56:52 +11:00
Hugo van Kemenade
e7fa3091a0
Merge pull request #7003 from radarhere/reference_count
Decrement reference count
2023-03-22 08:05:17 +02:00
Andrew Murray
7700840240
Merge pull request #7016 from hugovk/docs-replace-sphinx-issues
Docs: Replace dependency sphinx-issues with builtin sphinx.ext.extlinks
2023-03-22 16:24:53 +11:00
Andrew Murray
9ef65b051a
Merge pull request #19 from nulano/reference-count 2023-03-22 13:14:57 +11:00
Andrew Murray
adae44da0d Update CHANGES.rst [ci skip] 2023-03-22 09:10:47 +11:00
nulano
e1d0a96404
remove unused version value 2023-03-21 22:05:27 +00:00
nulano
1a11ba662c
do not insert null into dict 2023-03-21 22:05:26 +00:00
Hugo van Kemenade
5832362215
Merge pull request #7020 from radarhere/no_libtiff 2023-03-21 17:12:59 +02:00
Hugo van Kemenade
3a262f0523
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-21 14:05:58 +02:00
Hugo van Kemenade
609158d3fa
Merge pull request #97 from radarhere/htmlview 2023-03-21 14:02:27 +02:00
Andrew Murray
b3bf1ca6d9 Fixed calling html target from htmlview 2023-03-21 22:37:45 +11:00
nulano
76d36da12e
avoid Py_DECREF(Py_None) 2023-03-21 00:59:00 +00:00
Andrew Murray
dfeed0eb7e Group decrementing reference counts for previous axes in font_getvaraxes 2023-03-20 22:44:14 +11:00
Andrew Murray
6328662248 PyUnicode_* may return NULL 2023-03-20 17:36:55 +11:00
Andrew Murray
2b164943a3
Merge pull request #7017 from PyFPDF/c_extension_debugging
Minor improvement made to c_extension_debugging.rst
2023-03-20 11:56:08 +11:00
Hugo van Kemenade
f05d76f66c
Merge pull request #7029 from radarhere/amazonlinux
Added Amazon Linux 2023 docker image
2023-03-19 18:19:45 +02:00
Andrew Murray
11d100ce5d Support creating BGR;15, BGR;16 and BGR;24 images 2023-03-20 00:30:10 +11:00
Andrew Murray
01cdfb6b27 Removed duplicate calls to PyTuple_GET_SIZE 2023-03-19 23:29:17 +11:00
Andrew Murray
c3a7422ad3 Added Amazon Linux 2023 docker image 2023-03-19 22:36:37 +11:00
Hugo van Kemenade
3b4b77bb11
Merge pull request #7027 from radarhere/imagedraw_docstring
Restored deleted docstring
2023-03-19 08:42:52 +02:00
Andrew Murray
fec92ce9cc
Restored deleted docstring 2023-03-19 13:36:43 +11: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
mergify[bot]
e014bdd2fe
Merge pull request #7026 from radarhere/xz
Updated xz to 5.4.2
2023-03-18 21:50:58 +00:00
Andrew Murray
2d8ff40446 Updated xz to 5.4.2 2023-03-19 06:46:57 +11:00
Andrew Murray
fd3da53b91 Updated xz to 5.4.2 2023-03-19 06:46:22 +11:00
Hugo van Kemenade
16975a5dca
Merge pull request #7025 from Auto-5/patch-2 2023-03-18 19:37:49 +02:00
Auto-5
f03f9670fa
Removed incorrect docstring 2023-03-18 14:12:53 +00:00
Andrew Murray
c7d4d1f75a
Fixed typo
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-03-18 22:47:04 +11:00
Andrew Murray
2a557ceb76
Merge pull request #7024 from Auto-5/patch-1
Fix order of arguments in docstring
2023-03-18 15:12:08 +11:00
Auto-5
16d235f8bc
Fix order of arguments in docstring 2023-03-17 18:08:19 +00:00
Andrew Murray
80edcd18d1 Do not render text if image has zero width or height 2023-03-17 20:11:35 +11:00
Andrew Murray
5080d35816 Allow libtiff_support_custom_tags to be missing 2023-03-17 11:27:58 +11:00
Andrew Murray
0966293a0d Consider transparency when applying blend mask 2023-03-16 20:05:56 +11:00
Lucas Cimon
1bded83357
Update docs/reference/c_extension_debugging.rst
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-16 07:52:19 +01:00
Cimon Lucas (LCM)
4d77a579ba [Doc] Minor improvement made to c_extension_debugging.rst 2023-03-15 19:26:42 +01:00
Hugo van Kemenade
f046df2aba Add colour to CI for readability 2023-03-15 16:11:50 +02:00
Hugo van Kemenade
542d25ccee Add 'make htmlview' to open index page 2023-03-15 14:04:15 +02:00
Hugo van Kemenade
7703042301 Add missing html target to top-level Makefile (it's in the help) 2023-03-15 14:04:15 +02:00
Hugo van Kemenade
b168ec2606 Replace dependency sphinx-issues with builtin sphinx.ext.extlinks 2023-03-15 14:04:15 +02:00
Andrew Murray
2d5f451f58
Merge pull request #7014 from hugovk/rm-eol-debian10
Remove EOL Debian 10 Buster from CI
2023-03-15 08:33:45 +11:00
Hugo van Kemenade
1f1ab16631 Remove EOL Debian 10 Buster from CI 2023-03-14 22:35:26 +02:00
Andrew Murray
31669013d4 Update CHANGES.rst [ci skip] 2023-03-13 23:13:34 +11:00
Hugo van Kemenade
64f29247c2
Merge pull request #6834 from radarhere/i16n 2023-03-13 12:25:57 +02:00
Andrew Murray
9e6ae98362 Dropped support for BGR;32 mode 2023-03-13 17:31:12 +11:00
Andrew Murray
023d4349e4 Added release notes for #6834 2023-03-13 17:00:07 +11:00
Andrew Murray
f8d93267e1 Merge branch 'main' into i16n 2023-03-13 14:33:26 +11:00
Andrew Murray
079caf6711 Update CHANGES.rst [ci skip] 2023-03-13 08:26:31 +11:00
mergify[bot]
264b19b266
Merge pull request #6852 from radarhere/qoi
Added QOI reading
2023-03-12 14:43:19 +00:00
mergify[bot]
d0f316718c
Merge pull request #6925 from radarhere/pdf
Added saving RGBA images as PDFs
2023-03-12 14:25:26 +00:00
Andrew Murray
5b3d39c116
Merge pull request #6935 from radarhere/path
Do not raise an error if os.environ does not contain PATH
2023-03-13 00:19:38 +11:00
Andrew Murray
da2083fb8d List modes that can be used when saving PDFs 2023-03-13 00:07:53 +11:00
Andrew Murray
56f9b85ad9
Removed unnecessary line
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-13 00:03:08 +11:00
Andrew Murray
4e5e7e0975 Added release notes for #6925 2023-03-12 23:49:06 +11:00
Hugo van Kemenade
28c89b1b0a
Merge pull request #6919 from radarhere/tiff
Moved tests that require libtiff
2023-03-12 14:41:31 +02:00
Andrew Murray
36ee817329 Merge branch 'main' into pdf 2023-03-12 23:31:26 +11:00
Andrew Murray
cdb9ca9ea1 Removed class 2023-03-12 23:28:29 +11:00
Andrew Murray
0a6092b0e6
Use full name of format
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-12 23:25:38 +11:00
Andrew Murray
7670736e18
Use type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-12 23:17:39 +11:00
Andrew Murray
28b8b6088e Update CHANGES.rst [ci skip] 2023-03-12 22:58:49 +11:00
Andrew Murray
2fc7cfb6b2
Added spaces between parameter arguments
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-12 22:32:38 +11:00
Andrew Murray
90c226c69a
Merge branch 'main' into tiff 2023-03-12 22:30:15 +11:00
Hugo van Kemenade
be244b5070
Merge pull request #7005 from radarhere/unclosed_file 2023-03-12 13:12:28 +02:00
Hugo van Kemenade
258cb8d8bf
Merge pull request #6998 from radarhere/ifdrational 2023-03-12 13:09:44 +02:00
Hugo van Kemenade
436ebdb191
Merge pull request #7002 from radarhere/setup_module 2023-03-12 13:09:03 +02:00
Hugo van Kemenade
8ef6503801
Merge pull request #6914 from radarhere/default 2023-03-12 12:39:45 +02:00
Hugo van Kemenade
14e0128873
Merge pull request #6866 from radarhere/lcms2 2023-03-12 12:39:07 +02:00
Hugo van Kemenade
bfcea9d718
Merge pull request #6988 from radarhere/memoryview 2023-03-11 22:42:09 +02:00
Andrew Murray
b3d7823740 Decrement reference count 2023-03-12 00:11:48 +11:00
Andrew Murray
f9cbc2e084 Close OleFileIO instance when closing or exiting FPX or MIC 2023-03-11 23:11:43 +11:00
Andrew Murray
096a8ea99e Fix unclosed file warnings 2023-03-11 22:39:11 +11:00
Andrew Murray
c63b0ca210 Decrement reference count 2023-03-11 18:32:43 +11:00
Andrew Murray
347dea12a9 Moved potential error earlier 2023-03-10 23:13:15 +11:00
Hugo van Kemenade
6b71090828
Merge pull request #7000 from radarhere/imagequant 2023-03-10 14:12:04 +02:00
Andrew Murray
a334bb6524 Updated libimagequant to 4.1.1 2023-03-10 20:24:34 +11:00
Andrew Murray
929dbba834 Handle failure from PyDict_New or PyList_New 2023-03-10 17:37:06 +11:00
Andrew Murray
6932562974 Added __int__ to IFDRational for Python >= 3.11 2023-03-09 22:21:37 +11:00
Andrew Murray
cbde5b2626 Added reading of JPEG2000 comments 2023-03-09 13:36:22 +11:00
Andrew Murray
2d01875e7c Added QOI reading 2023-03-09 13:34:44 +11:00
Andrew Murray
459f0d8352 Round duration when saving animated WebP 2023-03-07 18:07:46 +11:00
Andrew Murray
cdf5fd439c
Merge pull request #6993 from nulano/dll-docs
Restore link anchor
2023-03-07 08:33:20 +11:00
Andrew Murray
f7436e447f
Merge pull request #6994 from radarhere/cifuzz
Run CIFuzz tests when GitHub Actions file changes
2023-03-06 22:14:09 +11:00
Andrew Murray
d93d0a3772 Run CIFuzz tests when GitHub Actions file changes 2023-03-06 21:02:18 +11:00
Andrew Murray
4ca3fc0601
Merge pull request #6991 from hugovk/gha-docs-only
Build docs in own workflow
2023-03-06 21:01:28 +11:00
Hugo van Kemenade
29b6db4f8a
Add GHA_PYTHON_VERSION
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-06 10:26:30 +02:00
nulano
1690592d8b
correct minimum CMake version 2023-03-06 02:24:00 +00:00
Andrew Murray
494a3bcf2b
Release buffer on error
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-03-06 10:00:51 +11:00
nulano
52cce5293d
restore link anchor 2023-03-05 19:51:14 +00:00
Hugo van Kemenade
eccc1e9afb
Merge pull request #6992 from radarhere/anchor
Removed missing anchor from link
2023-03-05 15:43:18 +02:00
Andrew Murray
a7f836187d Removed missing anchor from link 2023-03-05 21:51:46 +11:00
Andrew Murray
eda95342ae
Merge pull request #6986 from fcarron/fix_libtiff_file_pointer
Close file pointer copy in the libtiff encoder if still open
2023-03-05 16:24:19 +11:00
Hugo van Kemenade
61fecdb50e
Merge pull request #95 from radarhere/gha-docs-only
Run valgrind tests when GitHub Actions file changes
2023-03-05 00:25:21 +02:00
fcarron
bf27074bdf
Merge pull request #1 from radarhere/fix_libtiff_file_pointer
Added test
2023-03-04 22:17:40 +01:00
Andrew Murray
1497e9ef65 Run valgrind tests when GitHub Actions file changes 2023-03-05 07:05:49 +11:00
Hugo van Kemenade
06cb3426ef Build docs in own workflow 2023-03-04 17:10:53 +02:00
Hugo van Kemenade
cb65bb672b Don't build docs in main tests or trigger main tests for docs-only 2023-03-04 17:04:01 +02:00
Hugo van Kemenade
b4c2344199
Merge pull request #6990 from radarhere/releasenotes 2023-03-04 14:18:45 +02:00
Andrew Murray
b9c772a889
Capitalised variable type
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-04 22:08:36 +11:00
Hugo van Kemenade
1da6ff3036
Merge pull request #6987 from radarhere/unused 2023-03-04 12:56:21 +02:00
Andrew Murray
96e4e6160e Added release notes for #6961 and #6954 2023-03-04 21:00:18 +11:00
Andrew Murray
6ee157c0df
Merge pull request #6899 from Yay295/image_access_test_log_values
Log expected & actual color in image access tests
2023-03-04 20:13:03 +11:00
Andrew Murray
b970eb9e5d Added memoryview support to Dib.frombytes() 2023-03-04 17:18:59 +11:00
Andrew Murray
02afe1f13b Removed unused profile_fromstring method 2023-03-04 16:35:51 +11:00
Andrew Murray
e953978b31 Added test 2023-03-04 11:44:45 +11:00
Andrew Murray
1457d2c146
Merge pull request #6968 from akx/pytest-style
Fix up some pytest style issues
2023-03-04 10:31:54 +11:00
Aarni Koskela
912ab3e088
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-03 16:00:56 +02:00
Frédéric Carron
2299490082 Close the file pointer copy (_fp) in the libtiff encoder if it is still open. 2023-03-03 11:41:37 +01:00
Aarni Koskela
32bfee030b
Update Tests/test_file_apng.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-03 10:29:51 +02:00
Andrew Murray
9ed8ca1494 Removed "del im" 2023-03-03 10:28:36 +02:00
mergify[bot]
01520de6f7
Merge pull request #6983 from radarhere/harfbuzz
Updated harfbuzz to 7.1.0
2023-03-03 07:46:41 +00: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
Andrew Murray
1a790a91f5 Updated harfbuzz to 7.1.0 2023-03-03 14:38:51 +11:00
Yay295
281cbc2755
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-03-02 15:29:12 -06:00
Yay295
60b717a94b add link to %ImageData definition
and remove empty comment lines
2023-03-02 15:27:06 -06:00
Yay295
4f9c3847e8 notes about %ImageData, and use better var names 2023-03-02 15:02:53 -06:00
Hugo van Kemenade
6ca7bcceee
Merge pull request #6976 from radarhere/memoryview 2023-03-02 12:20:41 +02:00
Andrew Murray
396dd820b9 Update CHANGES.rst [ci skip] 2023-03-01 23:04:21 +11:00
mergify[bot]
1c24fa5f7d
Merge pull request #6978 from radarhere/coordinates
Raise an error if ImageDraw co-ordinates are incorrectly ordered
2023-03-01 11:44:00 +00:00
Andrew Murray
a4965a7eaa Split into x and y errors 2023-03-01 22:06:40 +11:00
nulano
f2527dd5eb
Merge remote-tracking branch 'upstream/main' into winbuild-ninja 2023-03-01 09:06:43 +00:00
Hugo van Kemenade
19e974fc1e
Merge pull request #6981 from radarhere/lcms2_version
Updated lcms2 to 2.15
2023-03-01 08:24:37 +02: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
b84c29a035 Raise an error if co-ordinates are incorrectly ordered 2023-03-01 11:22:35 +11:00
Andrew Murray
53fb3a9365 Updated lcms2 to 2.15 2023-03-01 11:04:14 +11:00
Andrew Murray
29575e3373 Updated lcms2 to 2.15 2023-03-01 11:03:23 +11:00
Andrew Murray
6e9c0ae5a0 Further document that x1 >= x0 and y1 >= y0 2023-02-28 22:49:04 +11:00
Andrew Murray
17eadf07fa Update CHANGES.rst [ci skip] 2023-02-28 20:49:43 +11:00
Andrew Murray
9c98f4d515 Release buffer 2023-02-27 09:48:41 +11:00
Hugo van Kemenade
7e8b11b159
Merge pull request #6954 from radarhere/corners 2023-02-26 18:29:35 +02:00
Andrew Murray
6df3ad6f2d
Merge pull request #6971 from akx/clarify-variable-names
Clarify some local variable names
2023-02-26 22:45:12 +11:00
Aarni Koskela
bbbaf3c615
Update src/PIL/PcfFontFile.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-02-26 13:03:29 +02:00
Andrew Murray
c799bd8a03 Adjusted variable names and comments to better match specification 2023-02-25 16:31:26 +02:00
Andrew Murray
fcc59a4001 Use existing variable names from ImageFile 2023-02-25 16:31:26 +02:00
Hugo van Kemenade
7d8a08b221
Merge pull request #6958 from radarhere/codeblock 2023-02-25 13:38:29 +02:00
Andrew Murray
36489c2c39 Update CHANGES.rst [ci skip] 2023-02-25 20:54:35 +11:00
Hugo van Kemenade
053d90afe0
Merge pull request #6974 from radarhere/memoryview 2023-02-25 11:50:43 +02:00
Andrew Murray
132fb9360b Added memoryview support to frombytes() 2023-02-25 19:10:47 +11:00
Andrew Murray
dbcd7372e5 Update CHANGES.rst [ci skip] 2023-02-25 18:46:07 +11:00
Hugo van Kemenade
7d91efd9f2
Merge pull request #6973 from radarhere/fits
Allow comments in FITS images
2023-02-25 09:43:45 +02:00
Andrew Murray
8a1b9aa0ad Allow comments in FITS images 2023-02-25 16:44:07 +11:00
Andrew Murray
1263018d2a Assert value instead of assigning unused variable 2023-02-24 21:01:03 +02:00
Aarni Koskela
8e18415cc5 Clarify variable names in TiffImagePlugin
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:09:14 +02:00
Aarni Koskela
6f79e653d6 Clarify variable names in PcfFontFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:08:20 +02:00
Aarni Koskela
04be46d484 Clarify variable names in ImageFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:04:38 +02:00
Aarni Koskela
b6b72170a8 Clarify variable names in Image
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:59:54 +02:00
Aarni Koskela
f52bbf8950 Clarify variable names in BdfFontFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:58:51 +02:00
Aarni Koskela
44c4e67fe1
Fix vars to var
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-24 09:26:18 +02:00
Hugo van Kemenade
879e77a446
Merge pull request #6970 from radarhere/qt
Relax roundtrip check
2023-02-24 07:46:42 +02:00
Andrew Murray
57acab55cb Update CHANGES.rst [ci skip] 2023-02-24 12:55:13 +11:00
Andrew Murray
4777379465
Merge pull request #6961 from jvanderneutstulen/add-save-pdf-dpi-tuple
Support saving PDF with different X and Y resolution
2023-02-24 12:50:42 +11:00
mergify[bot]
29adca3c8a
Merge pull request #6969 from radarhere/highlight
Highlight code example
2023-02-23 22:45:38 +00:00
Jasper van der Neut - Stulen
3c3d888450 Update docs/handbook/image-file-formats.rst
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-23 23:26:52 +01:00
Andrew Murray
19299acbb6 Relax roundtrip check 2023-02-24 08:39:48 +11:00
Andrew Murray
742aff3718 Replace Python code-blocks with double colons 2023-02-24 08:17:10 +11:00
Andrew Murray
acc7e0b469 Highlight code example 2023-02-24 08:00:24 +11:00
Hugo van Kemenade
8cc5396659
Merge pull request #6967 from radarhere/qt
Relax roundtrip check
2023-02-23 20:27:22 +02:00
Aarni Koskela
43128ce716 Fix up pytest.warns lambda: uses 2023-02-23 16:06:40 +02:00
Aarni Koskela
5c8a9165ab Fix up pytest.raises lambda: uses 2023-02-23 15:19:20 +02:00
Andrew Murray
21d13e1dea Relax roundtrip check 2023-02-23 23:22:18 +11:00
Andrew Murray
0d667f5e0b Do not read "resolution" parameter if it will not be used 2023-02-23 12:44:38 +01:00
Andrew Murray
be489287d2 Parametrized test 2023-02-23 12:44:38 +01: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
Jasper van der Neut
36bcc0a898 Support saving PDF with different X and Y resolution.
Add a `dpi` parameter to the PDF save function, which accepts
a tuple with X and Y dpi.
This is useful for converting tiffg3 (fax) images to pdf,
which have split dpi like (204,391), (204,196) or (204,98).
2023-02-21 11:49:05 +01:00
Hugo van Kemenade
583dd3b424
Merge pull request #6959 from radarhere/harfbuzz 2023-02-21 12:42:10 +02: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
Andrew Murray
43682de4bd Updated harfbuzz to 7.0.1 2023-02-21 08:12:57 +11:00
Andrew Murray
a55c2b42b9 If following colon, replace Python code-blocks with double colons 2023-02-18 20:34:52 +11:00
Andrew Murray
60208a3250 Only allow "corners" to be used as a keyword argument 2023-02-17 10:32:55 +11:00
Andrew Murray
0f2a4c1ae5 Added "corners" argument to rounded_rectangle() 2023-02-16 19:19:17 +11:00
mergify[bot]
d48dca3dc4
Merge pull request #6952 from jzern/webp-quality
Corrected documented WebP quality range
2023-02-15 08:19:01 +00:00
Andrew Murray
dbf138dd51
Merge pull request #6951 from jzern/webp-xmp
image-file-formats.rst: document WebP 'xmp' option
2023-02-15 18:46:15 +11:00
James Zern
8935dad32e image-file-formats.rst: document WebP 'xmp' option 2023-02-14 17:29:06 -08:00
James Zern
06ba226e7b image-file-formats.rst: correct WebP quality range
0-100, not 1-100
2023-02-14 17:28:16 -08:00
Andrew Murray
b7630bd675 Update CHANGES.rst [ci skip] 2023-02-15 11:41:32 +11:00
Hugo van Kemenade
3986eafc60
Merge pull request #6950 from radarhere/tiff_undefined
Resolves https://github.com/python-pillow/Pillow/issues/6948
2023-02-14 15:17:52 +02:00
Andrew Murray
228709e9a6
Merge pull request #6944 from hugovk/fix-codecov-docker
Enable gcov support for codecov/codecov-action
2023-02-14 20:08:44 +11:00
Andrew Murray
ad0e9dbaaf Fixed writing int as UNDEFINED tag 2023-02-14 10:52:32 +11:00
Andrew Murray
b05bc34604 Test lists and tuples 2023-02-13 10:34:44 -06:00
pre-commit-ci[bot]
91a53ed280 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-13 15:26:54 +00:00
nulano
c5e1b5ad66
use consistent capitalization
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-13 15:26:00 +00:00
nulano
eeb7c7c647
windows: parse build configuration with argparse 2023-02-13 03:51:45 +00:00
nulano
57260d4924
suppress MSVC compiler logo output when using ninja 2023-02-13 01:34:00 +00:00
Andrew Murray
98b2a568b9
Merge pull request #6936 from mtelka/main
Update HPND wording in LICENSE file
2023-02-13 11:39:12 +11:00
nulano
abd2a3f7ee
windows: compile dependencies with ninja instead of nmake 2023-02-13 00:34:19 +00:00
nulano
407489a0dc
windows: use CMake instead of MSBuild to compile liblzma 2023-02-12 23:24:11 +00: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
mergify[bot]
083a7703be
Merge pull request #6946 from radarhere/harfbuzz
Updated harfbuzz to 7.0.0
2023-02-12 21:44:19 +00:00
Hugo van Kemenade
f2a2794834
Merge pull request #6930 from greatvovan/patch-1 2023-02-12 14:18:48 +02:00
Andrew Murray
38925358d4 Updated harfbuzz to 7.0.0 2023-02-12 22:06:33 +11:00
Andrew Murray
bbbb8e6e21 Updated harfbuzz to 7.0.0 2023-02-12 22:05:51 +11:00
Andrew Murray
da38395396
Removed quotes from result in docstring 2023-02-12 21:56:23 +11:00
Hugo van Kemenade
8f9a5859d7
Merge pull request #94 from nulano/codecov-ubuntu
add gcov coverage to test.yml
2023-02-12 12:39:45 +02:00
Hugo van Kemenade
d2e77de070
Merge pull request #6853 from radarhere/child_images
Relaxed child images check to allow for libjpeg
2023-02-12 07:26:18 +02:00
Hugo van Kemenade
73707eb5f7
Merge pull request #6943 from hugovk/add-3.12-dev
Test Python 3.12-dev
2023-02-12 07:21:27 +02:00
Vladimir
d20e250d17
Merge pull request #1 from radarhere/patch-1
Added Exif code examples
2023-02-11 21:19:15 -08:00
Andrew Murray
d9085541bf
Update CHANGES.rst [ci skip] 2023-02-12 15:18:53 +11:00
Andrew Murray
42683781d6 Updated CI targets 2023-02-12 13:41:35 +11:00
nulano
0836c747f0
add gcov coverage to test.yml 2023-02-11 23:27:26 +00:00
Hugo van Kemenade
79765d5b9c
Merge pull request #6939 from radarhere/exif
Resolves https://github.com/python-pillow/Pillow/issues/6932
2023-02-11 23:39:32 +02:00
Hugo van Kemenade
f6040bc879 Docker tests: enable gcov support for codecov/codecov-action 2023-02-11 23:14:47 +02:00
Hugo van Kemenade
ab2809a44c Test Python 3.12-dev on macOS and Ubuntu 2023-02-11 16:39:14 +02:00
Hugo van Kemenade
826c98156c Remove unused listwindows functions for Windows/3.12 support 2023-02-11 16:36:52 +02:00
Hugo van Kemenade
ac6b9632b4 Test Python 3.12-dev on macOS and Ubuntu 2023-02-11 16:36:52 +02:00
Hugo van Kemenade
bc1a96a85f
Merge pull request #6940 from radarhere/typo 2023-02-11 13:59:00 +02: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
20daa1d049 Fixed typo 2023-02-11 20:49:09 +11:00
Andrew Murray
f3368eac3a Use test-images repository 2023-02-11 18:22:28 +11:00
Andrew Murray
bb524018d3 Raise an error when EXIF data is too long 2023-02-11 16:20:27 +11:00
Andrew Murray
a8e03e4dab Added Exif code examples 2023-02-10 20:11:50 +11:00
Andrew Murray
4ab4bfe89b
Merge pull request #6918 from hugovk/rm-svn
Replace SVN with Git for installing extra test images
2023-02-10 19:05:35 +11:00
Hugo van Kemenade
3934964af8
Merge pull request #93 from radarhere/rm-svn 2023-02-10 09:26:07 +02:00
mergify[bot]
4fed5a6a8d
Merge pull request #369 from radarhere/freetype
Updated freetype to 2.13
2023-02-09 22:46:04 +00:00
Marcel Telka
997932bc93 Update HPND wording in LICENSE file 2023-02-09 23:23:29 +01:00
Andrew Murray
5059e5c143 Do not raise an error if os.environ does not contain PATH 2023-02-10 08:11:50 +11:00
mergify[bot]
7e3bed6834
Merge pull request #6931 from radarhere/freetype
Updated freetype to 2.13
2023-02-09 11:44:06 +00:00
Andrew Murray
a45211b811 Updated freetype to 2.13 2023-02-09 20:33:08 +11: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
Hugo van Kemenade
70aaa200b7
Merge pull request #6929 from radarhere/turbo
Updated libjpeg-turbo to 2.1.5.1
2023-02-09 07:17:07 +02:00
pre-commit-ci[bot]
074c6afdc7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-09 04:41:00 +00:00
Vladimir
0eac4f1942
Fix syntax 2023-02-08 20:34:45 -08:00
Andrew Murray
6747f869fa Updated libjpeg-turbo to 2.1.5.1 2023-02-09 08:37:28 +11:00
Andrew Murray
c0a811e116 Updated libjpeg-turbo to 2.1.5.1 2023-02-09 08:36:41 +11:00
Hugo van Kemenade
f679e410bd Use 'rmdir' instead of 'rm -r' 2023-02-08 10:12:14 +02:00
Hugo van Kemenade
ed3cd75630
Use 'rmdir' instead of 'rm -r'
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-02-08 10:11:54 +02:00
Vladimir
1656753146
Add docstrings for getixif() and Exif 2023-02-07 22:48:33 -08:00
Andrew Murray
fd6874a385 Merge remote-tracking branch 'radarhere/jp2k_options' into jp2k_options 2023-02-08 17:46:50 +11:00
Andrew Murray
ed1d6633a1 Use checkout action for test-images repository 2023-02-08 10:53:59 +11:00
Andrew Murray
e7d2750997 Updated test images origin 2023-02-08 10:01:10 +11:00
Andrew Murray
e79460e775 Removed wget dependency 2023-02-08 09:46:01 +11:00
Yay295
dd985b2a5e make deprecation check more specific 2023-02-07 13:58:05 -06:00
Yay295
0f27ddafb7 split long line 2023-02-07 13:56:38 -06:00
Yay295
99b153c9ca
hyphenate "backwards-compatibility"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-07 13:49:00 -06:00
Yay295
62ab8bf80c update "unknown version" deprecation test 2023-02-06 18:00:31 -06:00
Yay295
35463e8ca3 Merge branch 'main' into eps_plugin_perf 2023-02-06 17:50:18 -06:00
Yay295
bd0fac80c4 deprecate EpsImagePlugin.PSFile 2023-02-06 17:26:05 -06:00
Yay295
be9aea35a8 add eps test for bad BoundingBox, good ImageData 2023-02-06 17:26:04 -06:00
mergify[bot]
55d6cf5127
Merge pull request #6928 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-02-06 22:49:03 +00:00
pre-commit-ci[bot]
24183d652e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
pre-commit-ci[bot]
cb4eb0d40f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)
2023-02-06 19:25:53 +00:00
Hugo van Kemenade
cc71b4c1b2
Simpler URL
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-02-04 10:04:29 +02:00
Andrew Murray
642d574087 Added JPXDecode for RGBA images 2023-02-02 21:48:47 +11:00
Andrew Murray
b3af769c1a Set alpha channel for OpenJPEG 2023-02-02 20:52:50 +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
Hugo van Kemenade
569751e454
Merge pull request #6923 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.5
2023-02-01 07:05:17 +02:00
Andrew Murray
a119b19c07 Updated libjpeg-turbo to 2.1.5 2023-02-01 08:36:06 +11:00
Andrew Murray
1ab85c942e Updated libjpeg-turbo to 2.1.5 2023-02-01 08:35:03 +11:00
Andrew Murray
04e8a9b3e7 Removed unnecessary code 2023-01-31 22:32:02 +11:00
Andrew Murray
4bb50b1fa7 Test comment too long 2023-01-31 22:31:58 +11:00
Andrew Murray
ca97e2a3a5 Use _binary 2023-01-31 22:31:52 +11:00
Hugo van Kemenade
da6d83ff3c
Merge pull request #92 from radarhere/rm-svn 2023-01-31 13:23:01 +02:00
Andrew Murray
18ad4c867f Use skip_unless_feature_version 2023-01-31 21:49:12 +11:00
Andrew Murray
79e67cb5c3
Removed default argument 2023-01-31 21:42:25 +11:00
Andrew Murray
772567a4ce Switched to python-pillow repositories 2023-01-31 20:31:41 +11:00
Andrew Murray
e922714bbf
Merge branch 'main' into rm-svn 2023-01-31 20:30:31 +11:00
Andrew Murray
f82546fa2e
Merge pull request #6922 from radarhere/dependencies
Sort dependencies
2023-01-31 20:17:06 +11:00
Hugo van Kemenade
7e35e15eee Replace subversion with wget package 2023-01-31 10:53:47 +02:00
Hugo van Kemenade
120d56b4ba Sort dependencies 2023-01-31 10:53:47 +02:00
Hugo van Kemenade
c8966013bd Replace SVN with Git for installing extra test images 2023-01-31 10:53:47 +02:00
Hugo van Kemenade
9932d0cb5c Sort dependencies 2023-01-31 08:53:46 +11:00
mergify[bot]
76478c6865
Merge pull request #6920 from radarhere/precommit
pre-commit autoupdate
2023-01-29 09:46:29 +00:00
Andrew Murray
446cfddb5d pre-commit autoupdate 2023-01-29 20:05:35 +11:00
Andrew Murray
1de6c958df Update CHANGES.rst [ci skip] 2023-01-29 18:43:40 +11:00
Andrew Murray
6a700693a5
Merge pull request #6896 from sebastic/tiff-multiarch
Handle more than one directory returned by pkg-config
2023-01-29 18:40:06 +11:00
Andrew Murray
412f5a5233 Moved test_wrong_bits_per_sample to test_file_libtiff.py 2023-01-29 17:33:51 +11:00
Andrew Murray
510de501ea Moved test_get_child_images to test_file_libtiff.py 2023-01-29 17:33:46 +11:00
Hugo van Kemenade
0ad275f85f
Merge pull request #6915 from radarhere/qt 2023-01-28 19:59:04 +02:00
mergify[bot]
30010c4fe2
Merge pull request #6917 from radarhere/register_open
Prevent register_open from adding duplicates to ID
2023-01-28 12:34:45 +00:00
Andrew Murray
3e37a919b1 Prevent register_open from adding duplicates to ID 2023-01-28 22:43:04 +11:00
Andrew Murray
a0492f7968 Ensure that pkg-config paths are split by spaces 2023-01-28 20:17:54 +11:00
nulano
73f55b4e01 remove redundant default value
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-01-28 15:35:33 +11:00
Andrew Murray
e76fa1674e Relax roundtrip check 2023-01-28 14:15:51 +11:00
Andrew Murray
9eacaee399 Document how to create universal2 wheels 2023-01-28 09:36:22 +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
Yay295
4e8de9ac9a
add path-from-bytes test
Also `array.array("f", [0, 1]) == array.array("f", [0.0, 1.0])` so we didn't need both of them.
2023-01-25 08:13:40 -06:00
Hugo van Kemenade
698951e19e
Merge pull request #6907 from Pehat/patch-1
Specify correct description for mode L
2023-01-24 07:44:42 +02:00
Renat Nasyrov
9dc9e82bef
Specify correct description for mode L. 2023-01-24 00:11:27 +01:00
mergify[bot]
c0ec840821
Merge pull request #6906 from radarhere/libimagequant
Updated libimagequant to 4.1.0
2023-01-22 21:51:21 +00:00
Andrew Murray
20c54ba110 Updated libimagequant to 4.1.0 2023-01-23 07:37:20 +11:00
Andrew Murray
e01f555658 Update CHANGES.rst [ci skip] 2023-01-22 06:41:19 +11:00
Hugo van Kemenade
6d09f3382d
Merge pull request #6902 from radarhere/open 2023-01-21 19:06:07 +02:00
Andrew Murray
535d886bf9
Merge pull request #6905 from hugovk/deprecate-pillow-11
Handling for deprecations to be removed in Pillow 11
2023-01-21 07:06:59 +11:00
Hugo van Kemenade
9b660db62d Handling for deprecations to be removed in Pillow 11 2023-01-20 14:35:11 +02:00
Josh Ware
b00bde9771
Update Tests/test_file_jpeg2k.py fix spelling error
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-01-19 22:52:41 +11:00
Yay295
e8307d7406 more imagepath tests 2023-01-18 23:03:13 -06:00
Josh Ware
d55563ca25
Update docs/handbook/image-file-formats.rst to fix lint
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-01-19 12:05:05 +11:00
pre-commit-ci[bot]
41b3ac8aed [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-01-19 00:52:43 +00:00
Josh Ware
de43bc99c8 Added support for jpeg2000 comments and PLT marker segments 2023-01-19 11:37:14 +11:00
Josh Ware
fcf5b7ef83 Fixed merge conflicts during recent pull 2023-01-19 11:33:15 +11:00
Andrew Murray
bf0abdca27 Do not retry past formats when loading all formats for the first time 2023-01-19 08:06:30 +11:00
Hugo van Kemenade
0b53853941
Merge pull request #6893 from radarhere/formats 2023-01-18 22:53:17 +02:00
Hugo van Kemenade
407f0f94c1
Merge pull request #6892 from radarhere/init 2023-01-18 22:50:41 +02:00
Andrew Murray
0635c18030 Update CHANGES.rst [ci skip] 2023-01-18 23:02:19 +11:00
Hugo van Kemenade
876b9f4ec8
Merge pull request #6897 from radarhere/eps
Stop reading when EPS line becomes too long
2023-01-18 09:57:31 +02:00
Hugo van Kemenade
96a075b756
Merge pull request #6901 from radarhere/libimagequant
Updated libimagequant to 4.0.5
2023-01-18 09:45:35 +02:00
Andrew Murray
2332a1c796 Updated libimagequant to 4.0.5 2023-01-18 08:27:49 +11:00
Yay295
e80707547f parametrize test_image_access::test_signedness() 2023-01-16 07:47:24 -06:00
Yay295
1603872f24 use better variable names 2023-01-16 07:46:11 -06:00
Hugo van Kemenade
2dac23efcd
Merge pull request #362 from radarhere/libxdmcp 2023-01-16 15:18:21 +02:00
mergify[bot]
77b316c8f0
Merge pull request #6898 from Yay295/parametrize_tar_test
Parametrize test_file_tar::test_sanity()
2023-01-16 02:29:56 +00:00
Yay295
e3dd4de193 parametrize check_jpeg_leaks::test_qtables_leak()
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-01-15 20:08:37 -06:00
Yay295
7ad50d9185
log expected & actual color in image access tests 2023-01-15 19:42:55 -06:00
Yay295
c2176f2747
use string for parametrization name declaration
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-01-15 19:36:52 -06:00
Yay295
cd4656410f parametrize test_file_tar::test_sanity() 2023-01-15 17:40:48 -06:00
Yay295
3d6770d0f3 add tests for long lines 2023-01-15 15:56:49 -06:00
Yay295
4c2550db42 add test for invalid bounding box 2023-01-15 15:56:49 -06:00
Bas Couwenberg
04cf5e2cfc Handle more than one directory returned by pkg-config.
tiff (4.5.0-1) in Debian results in two include directories being returned:
```
-I/usr/include/x86_64-linux-gnu -I/usr/include
```
2023-01-15 13:48:07 +01:00
Andrew Murray
3360b5a756 Stop reading when a line becomes too long 2023-01-15 19:49:13 +11:00
Hugo van Kemenade
50f5eade47
Merge pull request #6895 from python-pillow/alex-clark-jeffrey-a-clark-alex
Alex Clark -> Jeffrey A. Clark (Alex)
2023-01-14 21:51:27 +02:00
pre-commit-ci[bot]
5a71fe8041 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-01-14 17:39:37 +00:00
Alex Clark
55ce251a89 Alex Clark -> Jeffrey A. Clark (Alex)
I'm still "Alex", just on a Jeffrey A. Clark roll lately.
2023-01-14 12:36:22 -05:00
Andrew Murray
5f9285eea6 Do not retry specified formats if they failed 2023-01-14 23:22:35 +11:00
Andrew Murray
c5d1b15824 Do not unintentionally load TIFF format at first 2023-01-14 22:45:29 +11:00
Andrew Murray
43bb03539e Update CHANGES.rst [ci skip] 2023-01-14 20:02:16 +11:00
Hugo van Kemenade
eae294c748
Merge pull request #6890 from radarhere/tiff_byte
Allow writing IFDRational to BYTE tag
2023-01-14 11:00:34 +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
Andrew Murray
e48aead015 Allow writing IFDRational to BYTE tag 2023-01-13 21:02:42 +11:00
Hugo van Kemenade
145b80be56
Merge pull request #6889 from radarhere/libwebp 2023-01-13 10:46:31 +02:00
Andrew Murray
ba0d71fec8 Updated libwebp to 1.3.0 2023-01-13 15:59:51 +11:00
Yay295
89bdcfe835
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-01-12 16:03:31 -06:00
Hugo van Kemenade
02754442ae
Merge pull request #6886 from radarhere/cygwin
Only install python-pyqt6 package on 64-bit
2023-01-12 23:38:57 +02:00
Andrew Murray
a2edefb455 Only install python-pyqt6 package on 64-bit 2023-01-13 07:18:56 +11:00
Yay295
0334e68f95 add more eps file tests 2023-01-12 08:46:03 -06:00
Hugo van Kemenade
0d9686e7ff
Merge pull request #6884 from radarhere/raqm 2023-01-12 14:45:09 +02:00
Hugo van Kemenade
5024b1f5f4
Merge pull request #6885 from radarhere/macos
Updated macOS tested Pillow versions
2023-01-12 10:56:43 +02:00
Hugo van Kemenade
64a77ca3c9
Merge pull request #360 from radarhere/xz 2023-01-12 09:27:52 +02:00
Hugo van Kemenade
322d19925f
Merge pull request #6883 from radarhere/xz 2023-01-12 09:27:46 +02:00
Andrew Murray
ad46630cdf Updated macOS tested Pillow versions [ci skip] 2023-01-12 18:04:41 +11:00
Andrew Murray
2bafc52474
Merge pull request #6881 from hugovk/rtd-verify-mastodon
Verify the Mastodon docs link
2023-01-12 16:41:19 +11:00
Andrew Murray
a75a1a9514 Updated raqm to 0.10.0 2023-01-12 11:49:08 +11:00
Andrew Murray
9e4aa4e1cb Update CHANGES.rst [ci skip] 2023-01-12 09:21:25 +11:00
Andrew Murray
335cde81b4 Updated xz to 5.4.1 2023-01-12 08:41:14 +11:00
Andrew Murray
e06cee580f Updated xz to 5.4.1 2023-01-12 08:33:25 +11:00
Andrew Murray
eb89e3a2b1
Merge pull request #6874 from hugovk/invalid-box-blur-filter
Raise ValueError for BoxBlur filter with negative radius
2023-01-12 08:25:10 +11:00
Yay295
651b3521ac
Merge branch 'main' into eps_plugin_perf 2023-01-11 11:29:22 -06:00
Hugo van Kemenade
c683f048eb
Merge pull request #6880 from radarhere/eps 2023-01-11 18:09:53 +02:00
Hugo van Kemenade
5a2369fc33 Verify the Mastodon docs link 2023-01-11 17:18:02 +02:00
Hugo van Kemenade
d504d2a47e
Merge pull request #91 from radarhere/invalid-box-blur-filter 2023-01-11 15:01:19 +02:00
Andrew Murray
173b65d095 Raise ValueError during filter operation as well 2023-01-11 20:02:10 +11:00
Andrew Murray
7f57c93b89 Only read when necessary 2023-01-11 08:50:20 +11:00
Yay295
c3134dc049 refactor EpsImagePlugin
Merge the PSFile class into the EpsImageFile class to hopefully improve performance.
Also added a check for the required "%!PS-Adobe" and "%%BoundingBox" header comments.
2023-01-10 08:44:38 -06:00
Hugo van Kemenade
c2e2da4a22
Merge pull request #6876 from nulano/raqm-options
List Raqm build options in installation documentation
2023-01-10 09:37:33 +02:00
nulano
07a3aef3ef
list --{dis,en}able-raqm options in installation documentation 2023-01-09 20:46:07 +01:00
Hugo van Kemenade
08c7b17e23 Raise ValueError for BoxBlur filter with negative radius 2023-01-09 19:04:55 +02:00
Andrew Murray
50f7888e3a
Merge pull request #6870 from hugovk/parametrize
Tests: Convert internal check() functions to use parametrize
2023-01-09 09:29:19 +11:00
Andrew Murray
569b86ba3d
Merge pull request #6869 from hugovk/simplify
Simplify isinstance, key in dict, enumerate
2023-01-09 08:49:32 +11:00
Hugo van Kemenade
e24dd745f7 Convert test_optimize_correctness to use parametrize 2023-01-08 14:48:56 +02:00
Hugo van Kemenade
a5e046fb49 Convert test_properties to use parametrize 2023-01-08 14:37:46 +02:00
Hugo van Kemenade
8d5eb71d26 Use enumerate 2023-01-08 13:47:46 +02:00
Hugo van Kemenade
2df4865e42 Use 'key in mydict' instead of 'key in mydict.keys()' 2023-01-08 13:47:46 +02:00
Hugo van Kemenade
b2b8c833aa Use single isinstance call for multiple types 2023-01-08 13:47:45 +02:00
Andrew Murray
f30eb38e31
Merge pull request #6868 from radarhere/filters
Refer to Resampling enum
2023-01-08 05:33:40 +11:00
Andrew Murray
246f6fa46a
Simply attribute reference
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-08 04:45:16 +11:00
mergify[bot]
6c7d6cf4a9
Merge pull request #6865 from Yay295/test_cleanup_s
Clean up tests (simplified)
2023-01-07 08:49:45 +00:00
Yay295
04199b6066 sort colors before comparing them 2023-01-07 19:16:06 +11:00
Yay295
48b6d4fd60 remove no-format tags and fix comment locations 2023-01-07 19:16:06 +11:00
Yay295
4e6e69aafb remove loop left from before parametrization 2023-01-07 19:16:06 +11:00
Yay295
52ed578947 add extra variable so linter doesn't split line 2023-01-07 19:16:06 +11:00
Andrew Murray
86634b8352 Update CHANGES.rst [ci skip] 2023-01-07 17:53:21 +11:00
Andrew Murray
a22f6ddefa
Merge pull request #6761 from javidcf/patch-1
Support arbitrary number of loaded modules on Windows
2023-01-07 17:50:57 +11:00
Andrew Murray
d3d7566d9a Refer to Resampling enum 2023-01-07 11:27:43 +11:00
Andrew Murray
ea83ebbcf9 Moved conversion test to test_imagecms, to skip if lcms2 is absent 2023-01-06 20:09:47 +11:00
Hugo van Kemenade
b6c7a837bc
Merge pull request #6856 from radarhere/load_truncated_images 2023-01-05 12:27:15 +02:00
Hugo van Kemenade
dfadb5a2f0
Merge pull request #6861 from radarhere/fosstodon 2023-01-05 12:20:36 +02: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
Javier Dehesa
2cc40cc7f4
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:54 +00:00
Javier Dehesa
da39e4e38e
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:36 +00:00
Javier Dehesa
e945ab382a
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:04:50 +00:00
Andrew Murray
0421b2f2a0 Added social links to docs 2023-01-05 10:43:01 +11:00
Andrew Murray
e82f545ed0
Refer to Mastodon [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-05 09:56:59 +11:00
Andrew Murray
6368e4be5a Downgraded libXau to 1.0.10 when targeting macOS 10.10 2023-01-04 18:18:06 +11:00
Andrew Murray
fc84d6e37f Added Fosstodon URL to setup.cfg 2023-01-04 14:59:10 +11:00
Andrew Murray
b6a9fccd87 Added Fosstodon badge [ci skip] 2023-01-04 14:44:54 +11:00
Andrew Murray
2d6f9c16fc Announce releases on Fosstodon [ci skip] 2023-01-04 14:06:47 +11:00
Hugo van Kemenade
927780e556
Merge pull request #6859 from radarhere/xclip
Resolves https://github.com/python-pillow/Pillow/issues/6858
2023-01-03 19:28:30 +02:00
Andrew Murray
e653aaee89 NotImplementedError will not be raised if xclip is available 2023-01-04 00:43:48 +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
ea9a1b84aa LOAD_TRUNCATED_IMAGES may allow PNG images to open 2023-01-03 14:09:45 +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
Hugo van Kemenade
f5c47ebe12
Merge pull request #6855 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-01-02 23:08:33 +02:00
pre-commit-ci[bot]
9342f9a0e6
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/isort: 5.11.1 → 5.11.4](https://github.com/PyCQA/isort/compare/5.11.1...5.11.4)
2023-01-02 18:34:37 +00: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
Hugo van Kemenade
2301342f05
Merge pull request #6854 from radarhere/bytes 2023-01-02 15:44:11 +02:00
Andrew Murray
6c30b2c00d arr.tobytes() always exists in Python >= 3.2 2023-01-02 21:03:45 +11:00
Andrew Murray
97385d7cc7 Relaxed child images check to allow for libjpeg 2023-01-02 19:54:12 +11:00
Andrew Murray
549560cf55 9.5.0.dev0 version bump 2023-01-02 14:03:31 +11:00
Andrew Murray
7f069e01c3 Pillow -> 9.4.0 2023-01-02 11:21:01 +11:00
Andrew Murray
a5bbab1c1e 9.4.0 version bump 2023-01-02 10:29:07 +11:00
mergify[bot]
cdd3d8ec77
Merge pull request #6851 from radarhere/size
Updated size parameter descriptions
2023-01-01 22:37:16 +00:00
mergify[bot]
38a93a0571
Merge pull request #6850 from radarhere/releasenotes
Added release notes for #6842 and #6846
2023-01-01 22:03:09 +00:00
Andrew Murray
d4d981dc9f Updated size parameter descriptions 2023-01-02 08:41:50 +11:00
Andrew Murray
e908afea40
Updated security descriptions
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-02 08:17:47 +11:00
Hugo van Kemenade
0efda9189e
Merge pull request #6845 from radarhere/copyright
Updated copyright year
2023-01-01 21:18:23 +02:00
Andrew Murray
35b4c433b3 Added release notes for #6846 2023-01-02 00:32:35 +11:00
Andrew Murray
a632b7a3e7 Added release notes for #6842 2023-01-02 00:25:49 +11:00
Andrew Murray
009bbe25ec Update CHANGES.rst [ci skip] 2023-01-01 23:26:00 +11:00
Andrew Murray
c4cc48764a
Merge pull request #6846 from radarhere/font_crash
Fixed null pointer dereference crash with malformed font
2023-01-01 10:02:44 +11:00
Andrew Murray
c977526cfe Lint fixes 2023-01-01 07:03:09 +11:00
Andrew Murray
51d95add6a Replaced IOError with OSError 2023-01-01 07:03:09 +11:00
Eric Soroos
1c57ab8429 Return a PyError instead of a fake fterror.
* Update Tests to IOError rather than OSError
2023-01-01 07:03:09 +11:00
Andrew Murray
f2b36a1833 Lint fixes 2023-01-01 07:03:09 +11:00
Eric Soroos
87d1770c18 Fix null pointer dereference crash with malformed font 2023-01-01 07:03:09 +11:00
Andrew Murray
7f1708415c Update CHANGES.rst [ci skip] 2022-12-31 22:24:58 +11:00
Hugo van Kemenade
7b0008bb82
Merge pull request #6842 from radarhere/zero
Return from ImagingFill early if image has a zero dimension
2022-12-31 13:23:12 +02:00
Andrew Murray
13306974e7 Updated copyright year 2022-12-31 20:14:17 +11:00
Andrew Murray
2803304763 Skip timeout checks on slower running valgrind job 2022-12-31 13:47:07 +11:00
Andrew Murray
2494e128ab Update CHANGES.rst [ci skip] 2022-12-31 11:50:43 +11:00
mergify[bot]
fc9a8a3213
Merge pull request #6830 from radarhere/enum
Removed deprecations for Image constants, except for duplicate Resampling attributes
2022-12-31 00:04:36 +00:00
Andrew Murray
559b7ae476 Updated wording 2022-12-31 09:43:36 +11:00
Andrew Murray
b4347daa3c Merge branch 'main' into enum 2022-12-31 09:37:56 +11:00
Andrew Murray
907d59753b Update CHANGES.rst [ci skip] 2022-12-31 09:33:12 +11:00
Andrew Murray
c7f633c824
Merge pull request #6836 from hugovk/flake8-errmsg
Improve exception traceback readability
2022-12-31 09:32:18 +11:00
Hugo van Kemenade
2e8e7c490d
Merge pull request #354 from radarhere/pypy 2022-12-30 14:38:55 +02:00
Hugo van Kemenade
9ee64f9a2f
Merge pull request #90 from radarhere/flake8-errmsg 2022-12-30 14:38:35 +02:00
Andrew Murray
91b01f4cc2 Return from ImagingFill early if image has a zero dimension 2022-12-30 16:48:33 +11:00
Andrew Murray
68fdd2a9e7 Further improve exception traceback readability 2022-12-30 14:24:28 +11: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
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Andrew Murray
77f6f54ac4 Update CHANGES.rst [ci skip] 2022-12-30 08:57:36 +11:00
Andrew Murray
20c1ed1333
Merge pull request #6841 from smb123w64gb/windows_build_fix
Fix version mismatch
2022-12-30 08:53:15 +11:00
Hugo van Kemenade
9ae53cf6ae
Merge pull request #6840 from radarhere/ifd1 2022-12-29 23:38:09 +02:00
Hugo van Kemenade
1ba19b1105
Merge pull request #6800 from radarhere/int_ascii
Resolves https://github.com/python-pillow/Pillow/issues/6799
2022-12-29 23:36:33 +02:00
smb123w64gb
3a1f4b4919
Fix version mismatch 2022-12-29 06:16:49 -08:00
Andrew Murray
1e3f3ab596 Do not attempt to read IFD1 if absent 2022-12-29 21:52:09 +11:00
Andrew Murray
a7f8e862cb Update CHANGES.rst [ci skip] 2022-12-29 21:08:58 +11:00
Hugo van Kemenade
cea6c1e86c
Merge pull request #6838 from radarhere/premultiplied_alpha
Document the meaning of "premultiplied alpha"
2022-12-29 12:02:40 +02:00
Hugo van Kemenade
e107af41a9
Merge pull request #6783 from radarhere/grabclipboard
If available, use wl-paste or xclip for grabclipboard() on Linux
2022-12-29 12:01:24 +02:00
Hugo van Kemenade
f452f9a3f3
Merge pull request #6709 from radarhere/signed
Added signed option when saving JPEG2000 images
2022-12-29 11:59:33 +02:00
Andrew Murray
21e811117e Updated release notes 2022-12-29 13:55:13 +11:00
Andrew Murray
efa27a70d6 Document the meaning of "premultiplied alpha" 2022-12-29 13:18:45 +11:00
Andrew Murray
dc30ccc6b2 Update CHANGES.rst [ci skip] 2022-12-29 12:05:04 +11:00
mergify[bot]
be949e87a4
Merge pull request #6831 from radarhere/transparency_documentation
Document "transparency" info key
2022-12-29 00:49:37 +00:00
Andrew Murray
a4baeda9f6
Fixed typo
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-12-29 11:07:16 +11:00
Andrew Murray
73a2c3049f Use pytest.raises match argument 2022-12-29 10:27:03 +11:00
Andrew Murray
cd351c4f85 Added release notes 2022-12-29 09:41:14 +11:00
Andrew Murray
4518dc82ba Merge branch 'main' into signed 2022-12-29 09:37:35 +11:00
Andrew Murray
0da8e43977 Parametrized test 2022-12-29 08:58:38 +11:00
Hugo van Kemenade
f0b494ede5
Merge pull request #6718 from radarhere/openjpeg_arm
Resolves https://github.com/python-pillow/Pillow/issues/6679
2022-12-28 17:41:01 +02:00
Hugo van Kemenade
1a93e84355
Merge pull request #6798 from radarhere/apply_transparency 2022-12-28 16:49:59 +02:00
Hugo van Kemenade
d972890fb4
Merge pull request #6825 from radarhere/i16 2022-12-28 16:47:07 +02:00
Hugo van Kemenade
88a81db1c4
Merge pull request #6708 from radarhere/rgba2rgb_
Resolves https://github.com/python-pillow/Pillow/issues/6706
2022-12-28 16:27:31 +02:00
Andrew Murray
a0e1608f4f Support accessing I;16N pixels 2022-12-28 18:58:16 +11:00
Andrew Murray
8cfc25618f Support unpacking I;16N 2022-12-28 18:57:24 +11:00
Andrew Murray
e908e10aab Support packing I;16N 2022-12-28 17:47:38 +11:00
Andrew Murray
700a8e98da Support converting between I;16N and L 2022-12-28 17:47:15 +11:00
Andrew Murray
a9c46bc288 Document "transparency" info key 2022-12-28 10:22:10 +11:00
Andrew Murray
bcdb208fe2 Restored Image constants, except for duplicate Resampling attributes 2022-12-28 09:44:53 +11:00
Andrew Murray
2755e0ffaa Update CHANGES.rst [ci skip] 2022-12-26 19:24:41 +11:00
Hugo van Kemenade
0a19b34a85
Merge pull request #6820 from radarhere/dds_l
Added DDS support for uncompressed L and LA images
2022-12-26 10:02:37 +02:00
Hugo van Kemenade
88420f6cfb
Merge pull request #6749 from radarhere/exif_lightsource
Added LightSource tag values to ExifTags
2022-12-26 10:01:32 +02:00
Andrew Murray
08816f43ae Added support for I;16 modes in putdata() 2022-12-26 18:35:24 +11:00
mergify[bot]
925e27c77f
Merge pull request #6826 from radarhere/libtiff
Updated libtiff shared library name
2022-12-26 06:49:14 +00:00
Andrew Murray
d2590437c4 Updated libtiff shared library name 2022-12-26 16:21:45 +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
Hugo van Kemenade
2ba0c5e3a0
Merge pull request #6822 from radarhere/libtiff
Updated libtiff to 4.5.0
2022-12-24 09:03:11 +02:00
Andrew Murray
426ac9c1fe Updated libtiff to 4.5.0 2022-12-24 14:19:32 +11:00
Andrew Murray
146941c7ca Updated libtiff to 4.5.0 2022-12-24 12:57:59 +11:00
Andrew Murray
941a2d60b2 Added release notes 2022-12-24 08:41:57 +11:00
Andrew Murray
5c482e20af Document new ExifTags enums 2022-12-24 08:32:58 +11:00
Andrew Murray
8bd5fbf450 Update CHANGES.rst [ci skip] 2022-12-24 07:32:09 +11:00
Hugo van Kemenade
6fc0456688
Merge pull request #6821 from radarhere/pyaccess 2022-12-23 16:23:00 +02:00
Hugo van Kemenade
54eb83557f
Merge pull request #6819 from radarhere/png_exif
Resolves https://github.com/python-pillow/Pillow/issues/6804
2022-12-23 16:21:05 +02:00
Hugo van Kemenade
e0eca1f3d9
Merge pull request #6817 from radarhere/mpo_exif 2022-12-23 16:20:38 +02:00
Hugo van Kemenade
0934c25686
Merge pull request #6762 from radarhere/exif_hide_offsets 2022-12-23 16:05:21 +02:00
Hugo van Kemenade
7a19251d0d
Merge pull request #6787 from radarhere/gif_disposal
Resolves https://github.com/python-pillow/Pillow/issues/6785
2022-12-23 16:04:29 +02:00
Hugo van Kemenade
f9c88c984e
Merge pull request #6811 from radarhere/registered_extensions
Resolves https://github.com/python-pillow/Pillow/issues/6809
2022-12-23 15:59:53 +02:00
Andrew Murray
b0f1d2ed8d Clear pyaccess after re-assigning im 2022-12-23 23:20:06 +11:00
Andrew Murray
dcf3d0bee2 Added support for uncompressed LA images 2022-12-23 19:07:45 +11:00
REDxEYE
582b631001 Add missing LA test textures 2022-12-23 18:01:45 +11:00
Andrew Murray
9e6a7d9740 Added support for uncompressed L images 2022-12-23 17:43:18 +11:00
Andrew Murray
88f15eb9f0 Do not save EXIF from info 2022-12-23 12:10:36 +11:00
Hugo van Kemenade
edcfe09f12
Merge pull request #6795 from radarhere/modes 2022-12-22 18:09:11 +02:00
mergify[bot]
f1f17799c6
Merge pull request #6818 from radarhere/uninitialized
Initialize unsigned char variables
2022-12-22 07:45:48 +00:00
Andrew Murray
318b658c9c Initialize unsigned char variables 2022-12-22 17:16:52 +11:00
Andrew Murray
9898613c4d Fixed saving EXIF data to MPO 2022-12-22 15:31:36 +11:00
Andrew Murray
9dfba1fe2b Merge branch 'main' into exif_hide_offsets 2022-12-22 09:03:11 +11:00
Andrew Murray
921c46679d Merge branch 'main' into gif_disposal 2022-12-22 08:32:27 +11:00
Andrew Murray
818e967fec Merge branch 'main' into exif_lightsource 2022-12-22 07:50:35 +11:00
Andrew Murray
c6d1fddba5 Merge branch 'main' into registered_extensions 2022-12-22 07:45:52 +11:00
Hugo van Kemenade
fff0760594
Merge pull request #6815 from radarhere/cygwin 2022-12-21 22:43:17 +02:00
Andrew Murray
a4ac403549 Update CHANGES.rst [ci skip] 2022-12-22 07:14:02 +11:00
Hugo van Kemenade
46b4967688
Merge pull request #6814 from radarhere/numpy 2022-12-21 22:07:57 +02:00
Andrew Murray
1df7e75205 Python 3.7 on Cygwin is no longer part of CI 2022-12-22 06:52:06 +11:00
Hugo van Kemenade
aab4adc441
Merge pull request #6792 from radarhere/webp_gif
Resolves https://github.com/python-pillow/Pillow/issues/6791
2022-12-21 21:09:23 +02:00
Hugo van Kemenade
acdb882aae
Merge pull request #6793 from radarhere/tile 2022-12-21 16:56:41 +02:00
Hugo van Kemenade
2f3561fe33
Merge pull request #6816 from radarhere/warning
Fixed BytesWarnings
2022-12-21 07:55:27 +02:00
Andrew Murray
967034356a Fixed BytesWarning 2022-12-21 14:20:47 +11:00
Andrew Murray
d6e7904528 Removed Python 3.7 on Cygwin 2022-12-21 12:47:46 +11:00
Andrew Murray
7b6f4c6ef5
Merge pull request #6813 from python-pillow/renovate/github-actions
Update actions/stale action to v7
2022-12-21 10:34:45 +11:00
Andrew Murray
a065e0252b Updated deprecated NumPy alias 2022-12-21 09:29:25 +11:00
renovate[bot]
88e127d1b2
Update actions/stale action to v7 2022-12-20 22:16:07 +00:00
Hugo van Kemenade
77b463f7b3
Merge pull request #352 from radarhere/harfbuzz 2022-12-19 12:00:12 +02:00
Hugo van Kemenade
66add095a5
Merge pull request #6810 from radarhere/harfbuzz 2022-12-19 12:00:04 +02:00
Andrew Murray
2a86d7353f Always initialize all plugins in registered_extensions() 2022-12-19 08:19:15 +11:00
Andrew Murray
5eaca52efd Updated harfbuzz to 6.0.0 2022-12-19 07:04:05 +11:00
Andrew Murray
626139f8ed Updated harfbuzz to 6.0.0 2022-12-19 07:03:11 +11:00
Andrew Murray
7f6fe3c287 Update CHANGES.rst [ci skip] 2022-12-17 08:15:32 +11:00
Hugo van Kemenade
193b24fad0
Merge pull request #6767 from radarhere/blp_jpeg
Resolves https://github.com/python-pillow/Pillow/issues/6741
2022-12-16 21:22:01 +02:00
Andrew Murray
ceed3a9469
Merge pull request #6806 from python-pillow/renovate/github-actions
Update egor-tensin/cleanup-path action to v3
2022-12-16 19:52:34 +11:00
renovate[bot]
1a051f2e07
Update egor-tensin/cleanup-path action to v3 2022-12-16 07:50:40 +00:00
Andrew Murray
2f028ce77c
Merge pull request #6805 from hugovk/bandit
Run Bandit on CI via pre-commit
2022-12-16 18:33:59 +11:00
Hugo van Kemenade
d1cb81976c Run Bandit on CI via pre-commit 2022-12-14 21:40:44 +02:00
Hugo van Kemenade
f4b1244213
Merge pull request #6802 from radarhere/xz
Updated xz to 5.4.0
2022-12-14 07:59:17 +02: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
e25d603189 Updated xz to 5.4.0 2022-12-14 09:48:46 +11:00
Andrew Murray
d37c168a03
Merge pull request #6801 from hugovk/fix-tox-4
Add allowlist_externals=make to fix tox 4
2022-12-14 08:26:06 +11:00
Andrew Murray
b564f3e6bf Update CHANGES.rst [ci skip] 2022-12-14 07:41:39 +11:00
Andrew Murray
5257d561c0
Merge pull request #6748 from radarhere/exif_ifd
Added IFD enum to ExifTags
2022-12-14 07:33:14 +11:00
Andrew Murray
5301b86f1c Use snake case 2022-12-14 06:48:36 +11:00
Andrew Murray
56964da748 Update CHANGES.rst [ci skip] 2022-12-14 06:45:57 +11:00
Hugo van Kemenade
d013fbf656
Merge pull request #6779 from radarhere/gif_duration
Resolves https://github.com/python-pillow/Pillow/issues/6778
2022-12-13 18:14:28 +02:00
Hugo van Kemenade
bfa1f3290c Add allowlist_externals=make to fix tox 4 2022-12-13 18:06:58 +02:00
Hugo van Kemenade
1f9754cdc0 Format tox.ini with tox-ini-fmt 2022-12-13 18:04:30 +02:00
Andrew Murray
6da4169f37 Fixed writing int as ASCII tag 2022-12-13 22:40:55 +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
Andrew Murray
164311a756 Specify "I" and "F" ranges 2022-12-12 06:55:10 +11:00
Andrew Murray
f6f622dcee Clarify apply_transparency() docstring 2022-12-12 06:36:27 +11:00
Andrew Murray
ae3f43de64 Document Hue range 2022-12-10 19:48:07 +11:00
Hugo van Kemenade
5bb8032462
Merge pull request #350 from radarhere/libxau 2022-12-09 07:56:28 +02:00
Andrew Murray
4f0b83cc54 Only set tile in ImageFile __setstate__ 2022-12-09 12:29:27 +11:00
Andrew Murray
66f5ad0eae Ignore non-opaque WebP background when saving as GIF 2022-12-09 10:45:09 +11:00
Andrew Murray
0d6440d9f2
Merge pull request #6790 from hugovk/rm-pipfile
Remove unnecessary Pipfile
2022-12-09 08:35:06 +11:00
Andrew Murray
35d6cb293d Updated libXau to 1.0.11 2022-12-09 08:31:06 +11:00
Hugo van Kemenade
7436ae0933 Remove unnecessary Pipfile 2022-12-08 16:58:04 +02:00
Andrew Murray
4ab837ae23 Only compare to previous when checking for duplicate frames while saving 2022-12-08 11:35:48 +11:00
mergify[bot]
4c9ed122f3
Merge pull request #6784 from radarhere/jpeg_comment
Added releases notes for #6774
2022-12-07 21:38:55 +00:00
Andrew Murray
bef128b04b Added support for saving JPEG comments 2022-12-07 22:30:15 +11:00
Andrew Murray
4704cab1a1 Update CHANGES.rst [ci skip] 2022-12-07 22:16:14 +11:00
Andrew Murray
378adeba3a
Merge pull request #6774 from smason/write-jpeg-com
Support saving JPEG comments
2022-12-07 22:14:33 +11:00
Andrew Murray
2ecf88eaa6 If available, use xclip for grabclipboard() on Linux 2022-12-07 22:01:37 +11:00
Andrew Murray
ccac854077 If available, use wl-paste for grabclipboard() on Linux 2022-12-07 21:33:09 +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
Andrew Murray
2ea9497f8c
Merge pull request #6782 from hugovk/add-pypy-3.9
Add support for PyPy3.9, drop PyPy3.7
2022-12-07 09:00:18 +11:00
Hugo van Kemenade
342ed6e21f Add support for PyPy3.9, drop PyPy3.7 2022-12-06 21:00:22 +02:00
Hugo van Kemenade
674ec6ec4d Add support for PyPy3.9, drop PyPy3.7 2022-12-06 20:55:34 +02:00
Sam Mason
6ca08a4601
Merge pull request #3 from radarhere/write-jpeg-com
Free comment when returning early
2022-12-06 11:27:12 +00:00
Andrew Murray
1d780081a6 Free comment when returning early 2022-12-06 20:22:12 +11:00
Andrew Murray
c2a42655e1 Allow get_child_images to access JPEG thumbnails 2022-12-06 19:30:53 +11:00
Andrew Murray
1e28c8cffd
Merge pull request #6780 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-12-06 08:37:14 +11:00
pre-commit-ci[bot]
b786ff819a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)
2022-12-05 18:25:01 +00:00
Sam Mason
eddc9bdcec
switch to #z for comment parameter
* means `comment=None` can be passed directly
* no need to conditionally run `str.encode()`
* clean up checking of whether a comment is passed
2022-12-05 17:46:54 +00:00
Sam Mason
399975f1d9
Merge pull request #2 from radarhere/write-jpeg-com
Use jpeg_write_marker to write comment
2022-12-05 11:02:23 +00:00
Andrew Murray
72ac7d1ce9 Corrected default combined frame duration 2022-12-05 18:53:28 +11:00
Andrew Murray
e50ae85ea4 Use jpeg_write_marker to write comment 2022-12-05 13:57:26 +11:00
Andrew Murray
8ada23ed04 Added IFD1 reading 2022-12-05 09:09:00 +11:00
Andrew Murray
6a2545f628
Merge pull request #6764 from hugovk/docs-tabs
Use Sphinx Inline Tabs to organise installation per OS
2022-12-04 14:26:30 +11:00
Sam Mason
1ed1a3a971
make sure passing a blank comment removes existing comment 2022-12-03 15:07:37 +00:00
Sam Mason
e71f7c1083
Merge pull request #1 from radarhere/write-jpeg-com
Support saving JPEG comments
2022-12-03 12:28:05 +00:00
Hugo van Kemenade
a28de66fe4
Merge pull request #6776 from python-pillow/renovate/github-actions 2022-12-03 08:35:47 +02:00
Hugo van Kemenade
823e6e69e6
Merge pull request #6775 from radarhere/oss-fuzz
fix https://github.com/google/oss-fuzz/issues/9086
2022-12-03 07:45:35 +02:00
Hugo van Kemenade
61f27211c2
Fix comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-12-03 07:43:58 +02:00
Hugo van Kemenade
43974e88da
Merge pull request #89 from radarhere/docs-tabs 2022-12-03 07:43:34 +02:00
renovate[bot]
8e70787cf2
Update cygwin/cygwin-install-action action to v3 2022-12-03 01:44:21 +00:00
Andrew Murray
eafff0e139 Use compile_python_fuzzer 2022-12-03 10:54:04 +11:00
Andrew Murray
61cbcaee64 Changed indentation to be consistent 2022-12-03 10:35:01 +11:00
Andrew Murray
525c01143a Test that comment is reread 2022-12-03 09:59:22 +11:00
Andrew Murray
c1d0a00943 Use _binary instead of struct 2022-12-03 09:31:05 +11:00
Andrew Murray
976ad5746a Save comments from any image format by default 2022-12-03 09:29:02 +11:00
Andrew Murray
28e21ff490 Merge branch 'main' into docs-tabs 2022-12-03 08:45:33 +11:00
pre-commit-ci[bot]
e9f4858491 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-12-02 18:07:10 +00:00
Sam Mason
d822d85af6
support round-tripping JPEG comments 2022-12-02 17:57:19 +00:00
Hugo van Kemenade
9486786339
Merge pull request #6772 from radarhere/windows 2022-12-02 16:48:08 +02:00
Andrew Murray
c120649632 Remove specific number of jobs from comment 2022-12-02 21:29:27 +11:00
Hugo van Kemenade
96b316880e Use 4-space indents for RST 2022-12-02 11:40:06 +02:00
Hugo van Kemenade
5bdf63e1d1
Merge pull request #6770 from radarhere/xz 2022-12-01 07:20:50 +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
aab7983146 Updated xz to 5.2.9 2022-12-01 07:57:26 +11:00
Andrew Murray
0aec23f9c5 Updated xz to 5.2.9 2022-12-01 07:55:35 +11:00
Andrew Murray
3ec8fa6147 Do not trust JPEG decoder to determine image is CMYK 2022-11-30 13:49:07 +11:00
Andrew Murray
0ec32a3012
Merge pull request #6763 from Yay295/patch-1
Fix WebP dealloc method definitions
2022-11-29 18:48:36 +11:00
Hugo van Kemenade
50ccb27a4d
Remove extra space
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-11-28 23:23:46 +02:00
Hugo van Kemenade
5e42b1779e Reorder tabs: big three OS first 2022-11-28 12:53:23 +02:00
Hugo van Kemenade
d12c119ec4 Inline PHONY targets to help avoid omissions (texinfo, info, livehtml, serve were missing) 2022-11-28 12:53:23 +02:00
Hugo van Kemenade
e6e5a0018e Add missing 'make help' for serve and livehtml 2022-11-28 12:53:23 +02:00
Hugo van Kemenade
e3a46fcfd0 Use sphinx-inline-tabs to organise installation per OS 2022-11-28 12:53:11 +02:00
Hugo van Kemenade
a2570164cc
Merge pull request #6756 from radarhere/source 2022-11-28 10:28:26 +02:00
Andrew Murray
91fe817911
Updated instructions to download source code
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-11-28 18:03:08 +11:00
Yay295
556b672eb2
Fix webp dealloc method definitions 2022-11-27 17:48:12 -06:00
Andrew Murray
50cdf39f50 List dependency instructions first 2022-11-28 09:18:47 +11:00
Andrew Murray
a0326245a2 Removed typo 2022-11-28 08:40:04 +11:00
Andrew Murray
24a5405a9f Added IFD enum 2022-11-28 08:39:56 +11:00
Andrew Murray
72372ad23f Update CHANGES.rst [ci skip] 2022-11-26 20:42:04 +11:00
Hugo van Kemenade
066c3ab73b
Merge pull request #6758 from radarhere/webp_getxmp
Resolves https://github.com/python-pillow/Pillow/issues/6757
2022-11-26 11:37:46 +02:00
Javier Dehesa
cc448f235c
Merge pull request #1 from radarhere/patch-1
Use break instead of goto
2022-11-26 08:21:39 +00:00
Andrew Murray
3f9410334c Added getxmp() to release notes 2022-11-26 19:11:51 +11:00
Andrew Murray
710927a311 Added docstring 2022-11-26 19:08:49 +11:00
Andrew Murray
406a8478cd Use break instead of goto 2022-11-26 17:41:06 +11:00
Andrew Murray
3473eb8e7f Added Exif hide_offsets() 2022-11-26 15:44:03 +11:00
Andrew Murray
58cbcbf108 Added getxmp() to WebPImagePlugin 2022-11-26 12:14:44 +11:00
Andrew Murray
851e7b03ec Document how to install Pillow from a directory 2022-11-26 12:14:31 +11:00
Javier Dehesa
4a36d9d761
Avoid using PyErr_SetFromWindowsErr on Cygwin 2022-11-25 22:27:18 +00:00
Javier Dehesa
80d7fa9004
Fix another bad cast syntax 2022-11-25 16:09:01 +00:00
Javier Dehesa
40d9732a40
Fix cast syntax 2022-11-25 15:57:07 +00:00
Javier Dehesa
73b91f58d0
Support arbitrary number of loaded modules on Windows
Changed the TKinter module loading function for Windows to support the rare (but possible) case of having more than 1024 modules loaded. This is an adaptation of the same fix that was added to Matplotlib in [PR #22445](https://github.com/matplotlib/matplotlib/pull/22445).
2022-11-25 15:10:05 +00:00
Hugo van Kemenade
ad938d5421
Merge pull request #6760 from radarhere/cygwin_stdlib 2022-11-25 14:26:24 +02:00
Andrew Murray
2c513c6448 Use stdlib for setuptools on Cygwin 2022-11-25 22:05:57 +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
f27631601b
Merge pull request #6752 from radarhere/libpng 2022-11-21 14:15:47 +02:00
Hugo van Kemenade
99923e3388
Merge pull request #344 from radarhere/libpng 2022-11-21 12:38:08 +02:00
Andrew Murray
100ed363ce Updated libpng to 1.6.39 2022-11-21 15:42:44 +11:00
Andrew Murray
318587f95b Updated libpng to 1.6.39 2022-11-21 15:41:52 +11:00
Andrew Murray
be7d350e3f Update CHANGES.rst [ci skip] 2022-11-21 11:56:30 +11:00
mergify[bot]
4f68047e6b
Merge pull request #6747 from ashafaei/webp-params
Added WebP encoding with exact config
2022-11-21 00:44:57 +00:00
Alireza Shafaei
8f73a895ec
Update docs/releasenotes/9.4.0.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-11-20 16:00:24 -08:00
Alireza Shafaei
9c5b00ef7e RN trailing space fix 2022-11-19 23:19:08 -08:00
Alireza Shafaei
55a75b9a69 added RN for the new exact option. 2022-11-19 23:14:59 -08:00
Alireza Shafaei
becdd31eec Merge branch 'webp-params' of https://github.com/ashafaei/Pillow into webp-params 2022-11-18 23:51:09 -08:00
Alireza Shafaei
d6f10d4876 doc update for libwebp 2022-11-18 23:51:06 -08:00
Alireza Shafaei
c01ecace73
Merge pull request #1 from radarhere/webp-params
Simplified code
2022-11-18 23:29:09 -08:00
Alireza Shafaei
690446050a minor fix in the comments 2022-11-18 23:26:08 -08:00
Andrew Murray
3c7aa133eb Assert that image is equal 2022-11-19 17:18:27 +11:00
Andrew Murray
7e5e843d5c Note that the fill behaviour only affects libwebp >= 0.5 2022-11-19 17:12:51 +11:00
Andrew Murray
96a4d98abc Simplified code 2022-11-19 17:07:43 +11:00
Andrew Murray
509dcbf073 Added LightSource tag values 2022-11-19 15:35:06 +11:00
Alireza Shafaei
fdf074b050 added a note to the docs for webp 2022-11-18 10:22:33 -08:00
Alireza Shafaei
cc44652e8f Merge branch 'webp-params' of https://github.com/ashafaei/Pillow into webp-params 2022-11-18 10:15:39 -08:00
Alireza Shafaei
3587f27780 Added version check for WebP 2022-11-18 10:15:24 -08: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
pre-commit-ci[bot]
770560d8e4 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-11-17 22:06:18 +00:00
Alireza Shafaei
1f6df76c42 updated webp with exact parameter. 2022-11-17 13:58:07 -08:00
Andrew Murray
df8e872912 Update CHANGES.rst [ci skip] 2022-11-17 08:26:47 +11:00
Hugo van Kemenade
7b171f3131
Merge pull request #6742 from radarhere/fedora 2022-11-16 15:38:35 +02:00
Hugo van Kemenade
2b456236bb
Merge pull request #6722 from radarhere/font_start
Resolves https://github.com/python-pillow/Pillow/issues/3977
2022-11-16 10:25:05 +02:00
Andrew Murray
cb40f46ec1 Added Fedora 37 2022-11-16 14:58:21 +11:00
Andrew Murray
62db044787 Added release notes 2022-11-16 09:27:33 +11:00
Andrew Murray
70c8e342a5 Added "start" argument to docstring 2022-11-16 09:15:56 +11:00
Andrew Murray
d4c7bd7e19 Update CHANGES.rst [ci skip] 2022-11-16 09:04:02 +11:00
Hugo van Kemenade
275d21b905
Merge pull request #6740 from radarhere/tiff_byte
Resolves https://github.com/python-pillow/Pillow/issues/6737
2022-11-15 20:23:31 +02:00
Hugo van Kemenade
e134476cde
Merge pull request #6739 from python-pillow/kill-align
Remove Tidelift alignment action and badge
2022-11-15 07:48:00 +02:00
Andrew Murray
398bf1d7f3 Revert "Add tidelift alignment badge"
This reverts commit c8822a6cac.
2022-11-15 11:35:14 +11:00
Andrew Murray
ddc215ce3c Revert "Added Tidelift Align badge to docs"
This reverts commit 06ab0324a3.
2022-11-15 09:51:20 +11:00
Andrew Murray
70cc8a5741 Fixed writing int as BYTE tag 2022-11-15 09:06:41 +11:00
Alex Clark
8a3ba65945 Remove Tidelift alignment action and badge
Not sure if we still care about this? cf. #5762 #5763
2022-11-14 10:57:30 -05:00
Hugo van Kemenade
a7008f9f2f
Merge pull request #6738 from radarhere/xz
Updated xz to 5.2.8
2022-11-14 07:12:17 +02: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
84458c3988 Updated xz to 5.2.8 2022-11-14 08:18:31 +11:00
Andrew Murray
7e4c5af9a5 Updated xz to 5.2.8 2022-11-14 08:17:48 +11:00
Andrew Murray
21f202a22a Update CHANGES.rst [ci skip] 2022-11-14 06:06:08 +11:00
Hugo van Kemenade
759b0301b9
Merge pull request #6735 from radarhere/mpformatversion 2022-11-13 19:51:20 +02:00
Hugo van Kemenade
2e2b7b6321
Merge pull request #6736 from Yay295/remove_line_access 2022-11-13 19:50:36 +02:00
Yay295
55abf18f10
remove comment about Access.c line methods 2022-11-12 17:16:50 -06:00
Yay295
16994ccc9b
remove unused ImagingAccess->line() method def 2022-11-12 17:15:50 -06:00
Yay295
20f17cc6a7
remove unused ImagingAccess->line() method defs 2022-11-12 17:14:37 -06:00
Andrew Murray
af317a696d Added MP Format Version when saving 2022-11-13 08:00:20 +11:00
Hugo van Kemenade
b617943dca
Merge pull request #6717 from wiredfool/oss-fuzz-badge
Add oss-fuzz badge
2022-11-12 08:31:30 +02:00
Hugo van Kemenade
7e4b28a20b
Merge pull request #6734 from radarhere/python
Updated macOS tested Pillow versions
2022-11-12 08:26:27 +02:00
Andrew Murray
9fbfd3f00e Added oss-fuzz badge 2022-11-12 16:46:11 +11:00
Andrew Murray
99a11297b1 Updated macOS tested Pillow versions [ci skip] 2022-11-12 16:08:42 +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
Hugo van Kemenade
61d31d0597
Merge pull request #6727 from radarhere/numpy
Revert "Install NumPy with OpenBLAS"
2022-11-10 08:10:45 +02:00
Andrew Murray
5a727bae1c Do not install OpenBLAS on macOS for NumPy 2022-11-10 10:43:01 +11:00
Andrew Murray
1c032ff5db Revert "Install NumPy with OpenBLAS"
This reverts commit c82483e35a.
2022-11-10 10:37:22 +11:00
Hugo van Kemenade
4c6bb8a6dd
Merge pull request #6726 from radarhere/python 2022-11-09 11:44:09 +02: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
Andrew Murray
b0ab324f82
Use the latest Python version
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-11-09 20:03:16 +11:00
Andrew Murray
62fd8336b9 Update to Python 3.11 in GitHub Actions 2022-11-09 18:42:46 +11:00
Andrew Murray
73bec96224 Update CHANGES.rst [ci skip] 2022-11-08 21:50:06 +11:00
Hugo van Kemenade
ec2eff1b7c
Merge pull request #6724 from radarhere/exif 2022-11-08 12:22:34 +02:00
Hugo van Kemenade
f264f93072
Merge pull request #6723 from radarhere/appveyor 2022-11-08 09:37:26 +02:00
Andrew Murray
ebde03eae8 Update CHANGES.rst [ci skip] 2022-11-08 13:10:08 +11:00
Andrew Murray
13dee16f99
Merge pull request #6704 from nulano/cve-2007-4559
CVE-2007-4559 patch in winbuild
2022-11-08 13:01:54 +11:00
Andrew Murray
97a6f651d4 Added Interop tags 2022-11-08 12:01:15 +11:00
Andrew Murray
5471dc2b26 Use fractional coordinates when drawing text 2022-11-08 11:49:39 +11:00
Andrew Murray
e31ca06b7c Updated AppVeyor to Python 3.11 2022-11-08 10:58:33 +11:00
mergify[bot]
820214d210
Merge pull request #6721 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-11-07 19:00:15 +00:00
pre-commit-ci[bot]
9448532f91
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0)
- [github.com/sphinx-contrib/sphinx-lint: v0.6.1 → v0.6.7](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.6.1...v0.6.7)
2022-11-07 18:03:51 +00:00
Andrew Murray
4001a9fab4 Update CHANGES.rst [ci skip] 2022-11-06 22:41:06 +11:00
Andrew Murray
03b8ac911d
Merge pull request #6714 from wiredfool/valgrind_imagingtransform
Fix compiler error: accessing 64 bytes in a region of size 48
2022-11-06 22:37:31 +11:00
Hugo van Kemenade
7b763bef2c
Merge pull request #6719 from radarhere/bmp 2022-11-05 18:20:48 +02:00
Andrew Murray
b8be24850b Added file to questionable list 2022-11-05 21:54:23 +11:00
Andrew Murray
13a4feafb7 Patch OpenJPEG to include uclouvain/openjpeg#1423 2022-11-05 16:38:50 +11:00
Hugo van Kemenade
86b4cb6d14
Merge pull request #6713 from wiredfool/verbose_build 2022-11-04 13:23:02 +02:00
Eric Soroos
ef1eb2f3d6 Add oss-fuzz badge [ci skip] 2022-11-04 11:20:48 +01:00
Andrew Murray
bbe9cc6ae5 Use verbose flag for pip install for debug target 2022-11-04 20:26:39 +11:00
Hugo van Kemenade
7c00e79eb6
Merge pull request #6715 from radarhere/oserror 2022-11-04 10:20:26 +02:00
Andrew Murray
321c06694f
Merge pull request #6702 from nulano/win-cxxflags
Disable __CxxFrameHandler4 when compiling HarfBuzz
2022-11-04 18:50:50 +11:00
Ondrej Baranovič
8947cbf4d1
simplify code
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-11-04 07:31:00 +01:00
Andrew Murray
f9a2f991db Replaced IOError with OSError 2022-11-04 11:48:18 +11:00
Eric Soroos
41987cffad Fix compiler error:
src/_imaging.c:1842:17: warning: ‘ImagingTransform’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
       1842 |         imOut = ImagingTransform(
            |                 ^~~~~~~~~~~~~~~~~
       1843 |             imOut, imIn, IMAGING_TRANSFORM_AFFINE, 0, 0, xsize, ysize, a, filter, 1);
            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_imaging.c:1842:17: note: referencing argument 8 of type ‘double *’
2022-11-03 22:57:39 +01:00
Eric Soroos
d93b9919e3 Use verbose flag for pip install
* Ensures when developing that compilation warnings are visible
* Provides feedback that compilation has occured.
2022-11-03 21:40:08 +01:00
Ondrej Baranovič
c10c6bf894
use os.path.commonpath instead of os.path.commonprefix
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-11-03 20:23:59 +01:00
Andrew Murray
6ddbe4cbf0 Added signed option when saving JPEG2000 images 2022-11-03 18:26:31 +11:00
Hugo van Kemenade
aedbc77618
Merge pull request #6712 from radarhere/imagegrab
XCB will not be used by default on Linux if gnome-screenshot is present
2022-11-02 09:30:50 +02:00
Hugo van Kemenade
30dd02cc1a
Merge pull request #6711 from radarhere/lcms2
Updated lcms2 to 2.14
2022-11-02 09:29:53 +02: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
6b286ed62f XCB will not be used on Linux if gnome-screenshot is present 2022-11-02 07:47:05 +11:00
Andrew Murray
c115ba2349 Updated lcms2 to 2.14 2022-11-02 00:09:33 +11:00
Andrew Murray
6fd772e669 Updated lcms2 to 2.14 2022-11-02 00:08:29 +11:00
Hugo van Kemenade
7854f6c61c
Merge pull request #6705 from radarhere/fedora 2022-11-01 09:16:15 +02:00
Andrew Murray
5b4703d615 Added conversion from RGBa to RGB 2022-11-01 08:39:02 +11:00
Andrew Murray
7528b673fa Removed Fedora 35 2022-10-31 19:36:14 +11:00
nulano
74c60b47a8
simplify patch, also check zipfile 2022-10-30 23:45:49 +00:00
TrellixVulnTeam
e50a3a213e
Adding tarfile member sanitization to extractall() 2022-10-30 23:44:48 +00:00
Andrew Murray
a4ec9f331c
Merge pull request #6703 from nulano/embeddable-xfail
Add xfail mark to TestEmbeddable
2022-10-31 08:24:05 +11:00
pre-commit-ci[bot]
23df3bda7f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-10-30 03:17:57 +00:00
nulano
181fad2918
move import used only on Windows and remove unused import 2022-10-30 03:17:13 +00:00
nulano
eaee7fda97
add xfail mark to test_image_access:test_embeddable 2022-10-30 02:59:14 +00:00
nulano
76b99756e4
disable __CxxFrameHandler4 when compiling harfbuzz 2022-10-29 18:24:44 +01:00
Hugo van Kemenade
4fc0a4ceb2 9.4.0.dev0 version bump 2022-10-29 17:22:07 +03:00
Hugo van Kemenade
564361a714 Pillow -> 9.3.0 2022-10-29 15:32:43 +03:00
Hugo van Kemenade
d594f4cb8d Update CHANGES.rst [ci skip] 2022-10-29 15:25:53 +03:00
Hugo van Kemenade
909dc64ed5 9.3.0 version bump 2022-10-29 15:21:20 +03:00
Hugo van Kemenade
1a51ce7b95
Merge pull request #6699 from hugovk/security-libtiff_buffer 2022-10-29 15:06:57 +03:00
Hugo van Kemenade
2444cddab2
Merge pull request #6700 from hugovk/security-samples_per_pixel-sec 2022-10-29 13:16:49 +03:00
Andrew Murray
744f455830 Added release notes 2022-10-29 12:08:59 +03:00
Hugo van Kemenade
0846bfae48 Add to release notes 2022-10-29 12:06:33 +03:00
Hugo van Kemenade
799a6a0105 Fix linting 2022-10-29 12:06:30 +03:00
Hugo van Kemenade
00b25fd3ac Hide UserWarning in logs
Tests/test_file_tiff.py::TestFileTiff::test_oom[Tests/images/oom-225817ca0f8c663be7ab4b9e717b02c661e66834.tif]
  PIL/TiffImagePlugin.py:850: UserWarning: Corrupt EXIF data.  Expecting to read 12 bytes but only got 6. 
    warnings.warn(str(msg))

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-10-29 12:06:27 +03:00
Eric Soroos
05b175ef88 Tighter test case 2022-10-29 12:06:24 +03:00
Eric Soroos
13f2c5ae14 Prevent DOS with large SAMPLESPERPIXEL in Tiff IFD
A large value in the SAMPLESPERPIXEL tag could lead to a memory and
runtime DOS in TiffImagePlugin.py when setting up the context for
image decoding.
2022-10-29 12:06:18 +03:00
Andrew Murray
fa71b11073 Revert "Temporarily skip valgrind failure"
This reverts commit a3e61c1f89.
2022-10-29 12:02:07 +03:00
Andrew Murray
93e5fd4b40 Initialize libtiff buffer 2022-10-29 12:02:03 +03:00
Andrew Murray
e055ef0356
Update CHANGES.rst [ci skip] 2022-10-29 19:22:28 +11:00
Hugo van Kemenade
327db9a545
Merge pull request #6329 from nulano/imagetk-leak
Inline fname2char to fix memory leak
2022-10-29 10:59:54 +03:00
Hugo van Kemenade
966e98f36a
Merge pull request #6330 from nulano/imagingft-leak
Fix memory leaks related to text features
2022-10-29 10:58:36 +03:00
Hugo van Kemenade
e849e93480
Merge pull request #6695 from hugovk/fix-setuptools
Double quotes for old CPython on Windows
2022-10-29 10:53:42 +03:00
Hugo van Kemenade
b656d85dec
Merge pull request #6697 from nulano/gha-windows-set-output
GHA: replace deprecated set-output command with GITHUB_OUTPUT file
2022-10-29 06:47:47 +03:00
Andrew Murray
c3326da8a3
Update CHANGES.rst [ci skip] 2022-10-29 11:31:20 +11:00
Andrew Murray
a048d163d6
Merge pull request #6693 from cgohlke/patch-3
Remove backup implementation of Round for Windows platforms
2022-10-29 11:28:34 +11:00
Andrew Murray
dc0e4dde4f
Merge pull request #6696 from hugovk/update-release-notes
Update release notes for 9.3.0
2022-10-29 11:19:11 +11:00
nulano
7ad021efb0
GHA: use GITHUB_OUTPUT instead of deprecated set-output 2022-10-28 23:16:43 +01:00
Hugo van Kemenade
7adda3d4ab
Merge pull request #6532 from nulano/upload-fribidi 2022-10-28 22:56:13 +03:00
Hugo van Kemenade
88ba3a0cb0 Document 3.11 wheels in 9.3.0 release notes 2022-10-28 22:54:08 +03:00
Andrew Murray
b8fc7340d9
Merge branch 'main' into upload-fribidi 2022-10-28 21:27:56 +11:00
Andrew Murray
b4bf2885f3 Update CHANGES.rst [ci skip] 2022-10-28 21:23:25 +11:00
Hugo van Kemenade
31f66ea963
Merge pull request #6445 from radarhere/set_variation_by_name 2022-10-28 13:21:30 +03:00
Hugo van Kemenade
3ffd2b2b8f Double quotes for old CPython on Windows 2022-10-28 13:02:19 +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
Christoph Gohlke
4ab80f663e
Remove backup implementation of Round for Windows platforms 2022-10-27 08:15:36 -07: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
fb0e7cdd91 Update CHANGES.rst [ci skip] 2022-10-27 22:33:20 +11:00
Hugo van Kemenade
d0ad0a0d3d
Merge pull request #6562 from nulano/winbuild-update 2022-10-27 14:10:16 +03:00
Hugo van Kemenade
3cd8eaeddb
Merge pull request #6690 from cgohlke/patch-1 2022-10-27 14:09:58 +03:00
Hugo van Kemenade
10aa3bdc6a
Merge pull request #6691 from cgohlke/patch-2 2022-10-27 14:09:05 +03:00
Andrew Murray
678f162a9d Updated multibuild to include Python 3.11.0 2022-10-27 20:33:44 +11:00
Andrew Murray
d3b471b2ae Update CHANGES.rst [ci skip] 2022-10-27 07:42:18 +11:00
Hugo van Kemenade
454b586f15 Update release notes for 9.3.0 2022-10-26 22:02:13 +03:00
Christoph Gohlke
d97db54be0
Only use ASCII characters in C source file 2022-10-26 11:17:28 -07:00
Christoph Gohlke
6788e8f957
Fix malloc in _imagingft.c:font_setvaraxes 2022-10-26 11:11:30 -07:00
Hugo van Kemenade
8ed46cd568
Merge pull request #6686 from hugovk/test-3.11-final 2022-10-26 14:26:40 +03:00
Hugo van Kemenade
9bbf56b368
Merge pull request #6418 from hmaarrfk/parallel_matrix_convert 2022-10-25 21:11:22 +03:00
Hugo van Kemenade
68b435ed86 Test Python 3.11.0 final 2022-10-25 15:34:31 +03:00
Hugo van Kemenade
7a06bc6357
Merge pull request #6533 from nulano/document_imagedraw_attributes 2022-10-25 13:06:17 +03:00
Hugo van Kemenade
f8b7464d7b
Merge pull request #6685 from radarhere/releasenotes
Added release notes for #6630
2022-10-25 07:07:56 +03: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
1324c55ddc Added release notes for #6630 2022-10-25 10:16:47 +11:00
Andrew Murray
d72779ac03 Update CHANGES.rst [ci skip] 2022-10-25 09:03:15 +11:00
Andrew Murray
badd6a76d6 Python 3.11 has been released 2022-10-25 09:01:27 +11:00
Hugo van Kemenade
5a6293bcaf
Merge pull request #6630 from radarhere/exiftags_enum 2022-10-24 23:50:09 +03:00
Hugo van Kemenade
b6e0b668b9
Merge pull request #6682 from radarhere/releasenotes 2022-10-24 15:24:15 +03:00
Hugo van Kemenade
a77eb671a1
Merge pull request #6683 from radarhere/apng 2022-10-24 15:23:45 +03:00
Andrew Murray
46b0644c4f Do not modify previous frame when calculating delta 2022-10-24 22:19:22 +11:00
Andrew Murray
59b0464421 Note when the security issue was introduced 2022-10-24 20:04:02 +11:00
Andrew Murray
c924fd84a3 Update CHANGES.rst [ci skip] 2022-10-24 17:12:38 +11:00
Andrew Murray
5c9bc6517f
Merge pull request #6674 from npjg/main
Added support for reading BMP images with RLE4 compression
2022-10-24 17:11:11 +11:00
Andrew Murray
cf46156345 Moved comment back [ci skip] 2022-10-24 17:07:57 +11:00
Hugo van Kemenade
509f494dc0
Merge pull request #6680 from radarhere/releasenotes
Added release notes for #6678
2022-10-24 08:37:35 +03:00
Andrew Murray
d092bb7e0f Only use existing test image 2022-10-24 15:36:31 +11:00
Andrew Murray
4b31a7b205 Merge branch 'bmp_rle4' 2022-10-24 15:12:52 +11:00
Andrew Murray
6c17f2e33c Added release notes for #6678 2022-10-24 12:21:54 +11:00
Andrew Murray
89bc4bed41 Update CHANGES.rst [ci skip] 2022-10-24 09:26:37 +11:00
Andrew Murray
9887544faf
Merge pull request #6678 from radarhere/blp1 2022-10-23 17:08:48 +11:00
mergify[bot]
eca2f5c368
Merge pull request #6677 from radarhere/binary
Consistently write in binary format in PPM tests
2022-10-23 05:40:25 +00:00
Andrew Murray
f7363c1091 Decode JPEG compressed BLP1 data in original mode 2022-10-23 15:54:55 +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
64e5baaaf1 Write in binary format 2022-10-23 15:17:54 +11:00
Andrew Murray
be8a28d03d
Merge pull request #6659 from marksmayo/main
pylint warnings
2022-10-23 15:04:43 +11:00
Andrew Murray
ddede39932 Removed blank line 2022-10-23 14:24:30 +11:00
Andrew Murray
0ee3af8422 Revert "Updated auditwheel to include auditwheel#376"
This reverts commit 0fb76f92d0.
2022-10-22 20:06:17 +11:00
Andrew Murray
6c8234bef3 Combined BMP RLE decoders 2022-10-22 19:54:54 +11:00
Andrew Murray
78430b9549 Corrected BMP compression setting [ci skip] 2022-10-22 18:50:17 +11:00
Nathanael Gentry
cc45886bc3 Revert unintentional change 2022-10-21 20:59:16 -04:00
pre-commit-ci[bot]
f2dfd0bfb3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-10-21 23:41:29 +00:00
Nathanael Gentry
455ffff735 Update documentation for 4-bit RLE decoder 2022-10-21 19:45:41 -04:00
Nathanael Gentry
c2e9c66fcd Add tests for 4-bit RLE decoder 2022-10-21 19:45:41 -04:00
Nathanael Gentry
70e3e4fb10 BMP: Add 4-bit RLE decoder 2022-10-21 19:45:41 -04:00
Hugo van Kemenade
79b3b000c1
Merge pull request #6661 from radarhere/gps 2022-10-20 13:41:50 +02:00
Andrew Murray
3b5f6e884f
Merge branch 'main' into winbuild-update 2022-10-20 18:23:01 +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
Hugo van Kemenade
0a4c6abc10
Merge pull request #6669 from radarhere/harfbuzz
Updated harfbuzz to 5.3.1
2022-10-20 08:40:58 +02:00
Andrew Murray
b67806ac94 Updated harfbuzz to 5.3.1 2022-10-20 13:12:32 +11:00
Andrew Murray
6f5256c0f7 Updated harfbuzz to 5.3.1 2022-10-20 13:11:49 +11:00
Hugo van Kemenade
343f10aaf3
Merge pull request #6668 from radarhere/releasenotes
Added release notes for #6449 and #6611
2022-10-19 17:33:58 +02:00
Andrew Murray
1e4b0609c9 Added release notes for #6611 [ci skip] 2022-10-19 19:58:59 +11:00
Andrew Murray
a91b1fe415 Added release notes for #6449 [ci skip] 2022-10-19 19:56:11 +11:00
Andrew Murray
b2e2559c83 Update CHANGES.rst [ci skip] 2022-10-19 19:35:52 +11:00
Hugo van Kemenade
bb2016794f
Merge pull request #6647 from radarhere/rgb2lab 2022-10-19 10:32:03 +02:00
Hugo van Kemenade
87a9d7197e
Merge pull request #6644 from radarhere/convert 2022-10-19 10:22:00 +02:00
Andrew Murray
340f247672 Update CHANGES.rst [ci skip] 2022-10-19 08:23:58 +11:00
Hugo van Kemenade
745dc33525
Merge pull request #6576 from radarhere/gif 2022-10-18 16:16:57 +02:00
Hugo van Kemenade
3d491663ba
Merge pull request #6610 from radarhere/png_save_all 2022-10-18 16:14:53 +02:00
Hugo van Kemenade
1f5be894b9
Merge pull request #6662 from radarhere/pa 2022-10-17 13:12:33 +02:00
Andrew Murray
147c52f92f
Merge branch 'main' into winbuild-update 2022-10-14 12:20:34 +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
mergify[bot]
7ff05929b6
Merge pull request #6664 from radarhere/zlib
Updated zlib to 1.2.13
2022-10-13 23:58:15 +00:00
Andrew Murray
8e17c626ab Update CHANGES.rst [ci skip] 2022-10-14 08:23:02 +11:00
Hugo van Kemenade
d138b2d41e
Merge pull request #6627 from radarhere/crc 2022-10-13 15:12:45 +02:00
Andrew Murray
5b5a784f82 Updated zlib to 1.2.13 2022-10-13 20:30:11 +11:00
Andrew Murray
fdc6ddc81c Updated zlib to 1.2.13 2022-10-13 20:29:09 +11:00
Andrew Murray
a4b257269e Image channel is used when converting PA with an RGBA palette 2022-10-13 20:21:39 +11:00
Hugo van Kemenade
70cb908ddb
Merge branch 'main' into main 2022-10-13 11:14:21 +02:00
Hugo van Kemenade
44510d2931
Merge pull request #6660 from radarhere/print 2022-10-13 11:13:18 +02:00
Andrew Murray
eccf9e87cf Added GPS tags 2022-10-13 19:28:39 +11:00
Andrew Murray
9602908f7a Removed print statement 2022-10-13 14:31:26 +11:00
pre-commit-ci[bot]
c93413835d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-10-13 02:22:53 +00:00
Mark Mayo
69baeccf2e some pylint warnings
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Andrew Murray
f63cc582b7 Update CHANGES.rst [ci skip] 2022-10-12 22:12:12 +11:00
Andrew Murray
5f8938cb8e
Merge branch 'main' into gif 2022-10-12 22:01:35 +11:00
Hugo van Kemenade
a653daac27
Merge pull request #6638 from radarhere/multichannel 2022-10-12 12:58:52 +02:00
Hugo van Kemenade
c2efd60e22
Merge pull request #6594 from radarhere/numpy 2022-10-12 12:57:51 +02:00
Hugo van Kemenade
baaf65453a
Merge pull request #6623 from radarhere/imt 2022-10-12 12:52:22 +02:00
Hugo van Kemenade
5852b84162
Merge pull request #6611 from radarhere/imageshow 2022-10-12 12:50:50 +02:00
Hugo van Kemenade
a275541640
Merge pull request #6626 from radarhere/fli 2022-10-12 12:49:54 +02:00
Hugo van Kemenade
cf3132b7de
Merge pull request #6592 from radarhere/gif_rgba 2022-10-12 12:47:38 +02:00
Andrew Murray
ce2dc18424 Update CHANGES.rst [ci skip] 2022-10-12 09:04:45 +11:00
Hugo van Kemenade
eb59cb61d5
Merge pull request #6517 from radarhere/multiline_centered_embedded_color
Round box position to integer when pasting embedded color
2022-10-11 16:49:13 +02:00
Hugo van Kemenade
4995d045dc
Merge pull request #6582 from radarhere/webp_exif
Removed EXIF prefix when saving WebP
2022-10-11 16:48:28 +02:00
Hugo van Kemenade
5076d34775
Merge pull request #6579 from radarhere/im
Pad IM palette to 768 bytes when saving
2022-10-11 16:47:43 +02:00
Andrew Murray
7242a8a9ff
Merge branch 'main' into winbuild-update 2022-10-11 16:32:22 +11:00
Andrew Murray
e0c30d2fcd Update CHANGES.rst [ci skip] 2022-10-11 13:00:23 +11:00
Andrew Murray
28878c68e1
Merge pull request #6449 from ShadelessFox/main
Added DDS BC6 reading
2022-10-11 12:58:24 +11:00
Andrew Murray
13be5f2bb0 Update CHANGES.rst [ci skip] 2022-10-11 10:37:16 +11:00
Andrew Murray
2942868270
Merge pull request #6642 from JayWiz/1-support-for-16-bit-integer-tiffs
Added support for opening WhiteIsZero 16 bit integer TIFF images
2022-10-11 10:10:18 +11:00
ShadelessFox
00d59a9867
Merge pull request #6 from radarhere/bc6h_gamma
Removed gamma correction
2022-10-10 14:35:13 +02:00
Andrew Murray
78d258f24d Removed gamma correction 2022-10-10 20:48:18 +11:00
Andrew Murray
995625325d Update CHANGES.rst [ci skip] 2022-10-10 19:24:41 +11:00
Andrew Murray
10edb29674
Merge pull request #6654 from jsbueno/fix6652/imagepalette_rgba_color
Raise an error when allocating translucent color to RGB palette
2022-10-10 19:23:18 +11:00
Hugo van Kemenade
91e820fb46
Merge pull request #6633 from radarhere/raqm 2022-10-10 09:16:10 +02:00
Joao S. O. Bueno
9133f35096
Merge pull request #2 from radarhere/fix6652/imagepalette_rgba_color
Corrected test
2022-10-10 03:30:42 -03:00
Hugo van Kemenade
6724b092cd
Merge pull request #6650 from radarhere/performance
Moved mode check outside of loops
2022-10-10 06:16:08 +02:00
Andrew Murray
0b2cef5b03 Updated error message 2022-10-10 12:02:10 +11:00
Andrew Murray
982d7c49e3 Corrected test 2022-10-10 11:46:33 +11:00
Andrew Murray
397167569a
Recommend raqm for non-English text
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-10-10 09:11:41 +11:00
João S. O. Bueno
f9a3178bb3 Fix #6652: Handle translucent color used in RGB ImagePallete 2022-10-09 11:47:24 -03: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
Hugo van Kemenade
ce943533c8
Merge pull request #6651 from radarhere/harfbuzz
Updated harfbuzz to 5.3.0
2022-10-09 06:35:14 +02:00
Andrew Murray
eef4d1ced1 Moved mode check outside of loops 2022-10-09 08:48:07 +11:00
Andrew Murray
7072ccdad1 Updated harfbuzz to 5.3.0 2022-10-09 08:13:35 +11:00
Andrew Murray
d46a2af347 Updated harfbuzz to 5.3.0 2022-10-09 08:12:21 +11:00
ShadelessFox
93cafc8809
Merge pull request #5 from radarhere/bc6h_tests
Updated BC6H test images
2022-10-08 15:35:42 +02:00
Andrew Murray
5911b8c30b Updated BC6H test images 2022-10-08 21:20:31 +11:00
Andrew Murray
fcd3eef594 Added conversion between RGB/RGBA/RGBX and LAB 2022-10-07 22:33:45 +11:00
Andrew Murray
b8cd3e72a6 Do not attempt normalization if image is already normal 2022-10-07 09:48:56 +11:00
Andrew Murray
e6ffbfd8df If palette is present but not needed, do not use global palette 2022-10-06 08:46:31 +11:00
Jay-Jay Aslan
49aca04b61
Merge pull request #1 from radarhere/1-support-for-16-bit-integer-tiffs
Changed mode to I;16
2022-10-05 12:54:31 +02:00
Andrew Murray
0fd110864a Changed mode to I;16 2022-10-05 21:15:45 +11:00
Jay-Jay Aslan
802a1430fe
added support for 16 bit integer tiffs 2022-10-05 11:03:51 +02:00
Andrew Murray
00a716c421 High bit depth multichannel images are not yet supported 2022-10-04 12:54:48 +11:00
Hugo van Kemenade
243402e78e
Merge pull request #6634 from radarhere/parametrized_tests 2022-10-03 10:32:20 -07:00
Hugo van Kemenade
285f9cbb12
Merge pull request #6635 from radarhere/pilimage_import 2022-10-03 16:53:30 +02:00
Andrew Murray
92cb0af71f Do not import PIL.Image 2022-10-03 19:54:37 +11:00
Andrew Murray
fea604f693
Merge pull request #6556 from radarhere/returns
Improved documentation of ImageDraw return values
2022-10-03 19:06:58 +11:00
Andrew Murray
1735872442 Enabled test 2022-10-03 17:48:27 +11:00
Andrew Murray
c259ac492f Parametrized tests 2022-10-03 16:57:42 +11:00
Andrew Murray
985fec2f56 Removed duplicate test 2022-10-03 16:54:46 +11:00
Andrew Murray
2a296be986 Update CHANGES.rst [ci skip] 2022-10-03 13:37:56 +11:00
Andrew Murray
74f47d8c1a Document that basic layout is faster than raqm 2022-10-03 10:03:13 +11:00
Andrew Murray
ba78f5d0da Document the default layout engine 2022-10-03 09:39:37 +11:00
Hugo van Kemenade
d0ff4b5e10
Merge pull request #6632 from radarhere/options 2022-10-02 15:17:25 +02:00
nulano
ed990abed4
windows: update xz to 5.2.7, update libpng to 1.6.38 2022-10-02 07:05:18 +01:00
Andrew Murray
15b2b7a9de Added headings before listing options 2022-10-01 19:54:35 +10: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
d03f35b5bb Added enums 2022-10-01 17:24:35 +10:00
Andrew Murray
d0cefec6e1 Updated xz to 5.2.7 2022-10-01 08:38:24 +10:00
Andrew Murray
b34307b9d2 Corrected docstring 2022-09-30 21:57:54 +10:00
Eric Soroos
db1b74198b Don't reassign crc on close 2022-09-30 21:49:15 +10:00
Hugo van Kemenade
bdbf59d151
Merge pull request #6625 from d0sboots/patch-1 2022-09-30 14:12:25 +03:00
David Walker
64d11d9123 Improve documentation for ImageDraw.rectangle and rounded_rectangle
Fixes #1668
2022-09-29 22:38:51 -07:00
Andrew Murray
ea3b66d8ef Allow palette chunk to not be first 2022-09-29 21:29:16 +10:00
Andrew Murray
cb2243713c Only read a maximum of 100 bytes at a time 2022-09-29 08:22:31 +10:00
Andrew Murray
d402fe0b17 Added IMT tests 2022-09-29 08:22:01 +10:00
Hugo van Kemenade
aa8877ac5b
Merge pull request #6569 from radarhere/tiff_child_images 2022-09-27 16:45:37 +03:00
Andrew Murray
a877d7dab2
Merge pull request #6621 from Yay295/workflow_concurrency
Add "concurrency" to GitHub Actions
2022-09-27 15:36:41 +10:00
Andrew Murray
a1299695c1 Update CHANGES.rst [ci skip] 2022-09-27 07:29:03 +10:00
Andrew Murray
3fd6a1e312
Merge pull request #6596 from PososikTeam/fix-padding
Improved palette handling in ImageOps
2022-09-27 07:27:40 +10:00
Yay295
4c49e2dcdd add "concurrency" to GitHub actions so that old workflows are cancelled in favor of new runs 2022-09-26 07:16:33 -05:00
Andrew Murray
ef7e1ee49e
Merge pull request #6612 from radarhere/makedoc
Ensure dependencies are installed when building docs
2022-09-25 09:00:49 +10:00
Andrew Murray
e8fdab3657
Merge pull request #6617 from radarhere/url
Fixed broken URLs
2022-09-25 09:00:29 +10:00
Andrew Murray
c74ee82c63
Merge pull request #6616 from python-pillow/renovate/github-actions
Update github-actions
2022-09-24 23:24:11 +10:00
Andrew Murray
a0faec1de7 Update CHANGES.rst [ci skip] 2022-09-24 21:55:40 +10:00
Andrew Murray
a14f9ababa Corrected broken URLs 2022-09-24 20:44:47 +10:00
Andrew Murray
7ed393cdee Removed broken URL 2022-09-24 20:44:47 +10:00
Hugo van Kemenade
b7353af610
Merge pull request #6567 from radarhere/palette 2022-09-24 13:27:41 +03:00
Hugo van Kemenade
3a30a87139
Merge pull request #6559 from radarhere/photoimage 2022-09-24 13:26:23 +03:00
Andrew Murray
c043f972d0 Merge branch 'main' into makedoc 2022-09-24 19:51:36 +10:00
renovate[bot]
9c8a909e83
Update github-actions 2022-09-24 09:50:14 +00:00
Hugo van Kemenade
53b6e5f4bf
Merge pull request #6281 from radarhere/codecov 2022-09-24 12:48:26 +03:00
Andrew Murray
e129ec8db7 Moved olefile install to docs Makefile 2022-09-24 19:31:16 +10:00
Andrew Murray
dd941c85c7
Install dependencies always, but quietly
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-24 19:03:32 +10:00
Andrew Murray
de75af385c Replaced Codecov bash uploader with GitHub Action 2022-09-24 11:33:16 +10:00
Hugo van Kemenade
65c832d26e
Merge pull request #6613 from radarhere/redirects 2022-09-23 17:10:42 +03:00
Andrew Murray
34f61d6d2d Updated redirected URLs 2022-09-23 22:13:50 +10:00
Andrew Murray
652e33842b Ensure dependencies are installed when building docs 2022-09-23 21:45:36 +10:00
Andrew Murray
aabb964de1 Show all frames in ImageShow 2022-09-23 20:14:05 +10:00
Andrew Murray
b2b3b62be7 Consider all frames when selecting mode for PNG save_all 2022-09-23 20:06:08 +10:00
Hugo van Kemenade
af8260ee55
Merge pull request #6609 from radarhere/ghostscript
Updated Ghostscript to 10.0.0
2022-09-23 07:41:27 +03:00
Andrew Murray
04e1b9b121 Updated Ghostscript to 10.0.0 2022-09-23 07:34:58 +10:00
Andrew Murray
25664d8201 Update CHANGES.rst [ci skip] 2022-09-21 20:32:54 +10:00
Andrew Murray
8053772a2b
Merge branch 'main' into winbuild-update 2022-09-21 20:27:24 +10:00
Andrew Murray
b3e847a164
Merge branch 'main' into fix-padding 2022-09-21 20:22:27 +10:00
Hugo van Kemenade
f98fde7dad
Merge pull request #6522 from bibinhashley/ImageOps.contain-function-issue-in-finding-new-size 2022-09-21 12:58:09 +03:00
Hugo van Kemenade
920bcecd0e
Merge pull request #6548 from radarhere/gif_palette 2022-09-21 12:46:56 +03:00
Hugo van Kemenade
f73499e475
Merge pull request #6543 from radarhere/remap_palette 2022-09-21 12:45:26 +03: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
Hugo van Kemenade
d99481363e
Merge pull request #6599 from hugovk/fix-renovate 2022-09-20 10:01:26 +03:00
Hugo van Kemenade
291c23f250
Fix Renovate config
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-09-20 07:35:39 +03: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
Sitcebelly
597dff7a8a
Merge pull request #1 from radarhere/fix-padding
Improved palette handling in ImageOps
2022-09-20 00:17:46 +04: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
b12672a47a Fix Renovate config 2022-09-19 17:22:39 +03:00
Hugo van Kemenade
59cabc1d97
Merge pull request #6564 from python-pillow/renovate/configure 2022-09-19 16:57:57 +03:00
Andrew Murray
3c42b270b9 Copy palette in expand() for PA 2022-09-19 21:39:38 +10:00
Andrew Murray
279ddf4ce6 Use getpalette() in ImageOps 2022-09-19 21:34:29 +10:00
Andrew Murray
c464a11d41
Merge pull request #6597 from hugovk/add-openssf-best-practices-badge
Add OpenSSF Best Practices badge
2022-09-19 18:27:09 +10:00
Hugo van Kemenade
1bdf6ef720 Add OpenSSF Best Practices badge 2022-09-19 10:36:46 +03:00
Andrew Murray
c0aaf54816 Removed unnecessary palette copy 2022-09-19 12:41:20 +10:00
Sitcebelly
d88200e0d0 fix bug 2022-09-18 22:32:09 +03:00
Sitcebelly
d80aa74da4 Put palette into the new pad image 2022-09-18 21:14:52 +03:00
Hugo van Kemenade
355a0f73e9
Merge pull request #6593 from radarhere/tags
Corrected dictionary name
2022-09-18 07:58:37 +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
Andrew Murray
d02f91c6da Raise a warning if NumPy will not raise an error during conversion 2022-09-17 20:11:55 +10: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
0cafaca7e8 Corrected dictionary name 2022-09-17 18:52:16 +10:00
Andrew Murray
6663ed929b If first frame has transparency for RGB_ALWAYS, use RGBA 2022-09-17 17:58:24 +10:00
mergify[bot]
b8d96246f7
Merge pull request #6591 from radarhere/harfbuzz
Updated harfbuzz to 5.2.0
2022-09-17 07:23:31 +00:00
Andrew Murray
8b90588b97 Updated harfbuzz to 5.2.0 2022-09-17 16:03:23 +10:00
Andrew Murray
85290d86ef Updated harfbuzz to 5.2.0 2022-09-17 16:02:13 +10:00
Andrew Murray
17b56b9463 Merge branch 'main' into set_variation_by_name 2022-09-17 00:01:05 +10:00
Andrew Murray
166654d985 Merge branch 'main' into multiline_centered_embedded_color 2022-09-16 23:57:27 +10:00
Andrew Murray
964e0aa079 Update CHANGES.rst [ci skip] 2022-09-16 23:32:58 +10:00
Hugo van Kemenade
50e0c85380
Merge pull request #6500 from radarhere/tga 2022-09-16 16:29:44 +03: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
Andrew Murray
16d04f4a49 Removed EXIF prefix when saving 2022-09-15 21:25:40 +10:00
Andrew Murray
50ba43ac4f Pad IM palette to 768 bytes when saving 2022-09-14 21:01:58 +10:00
Andrew Murray
8b2d70d17a Corrected BMP palette size when saving 2022-09-14 19:54:36 +10:00
nulano
7485b1a8a0
Merge remote-tracking branch 'upstream/main' into winbuild-update
# Conflicts:
#	Tests/test_imagefont.py
2022-09-13 20:22:25 +02:00
Hugo van Kemenade
1d1a22bde3
Merge pull request #6534 from nulano/test_imagefont_fixtures 2022-09-13 17:52:50 +03:00
Andrew Murray
ae6520ccd6 Fixed pasting an L frame onto an RGB(A) GIF 2022-09-14 00:05:23 +10:00
Andrew Murray
53664c5f69
Merge pull request #6570 from hugovk/setup.py-to-cfg
Move some static config to setup.cfg
2022-09-13 13:27:48 +10:00
Hugo van Kemenade
9bda174be3
Merge pull request #324 from radarhere/rc2 2022-09-12 16:57:03 +03:00
Hugo van Kemenade
7d8b2fb19c Move some static config to setup.cfg 2022-09-12 10:25:18 +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
Andrew Murray
509dbf7757 Update CHANGES.rst [ci skip] 2022-09-12 08:23:28 +10:00
Hugo van Kemenade
9b53e3b581
Merge pull request #6539 from radarhere/thumbnail
Do not call load() before draft() in Image.thumbnail
2022-09-11 19:15:01 +03:00
Andrew Murray
ed016f8f5a
Parametrized test 2022-09-11 09:20:45 +10:00
Andrew Murray
beb7b4d0f6 Added reading of TIFF child images 2022-09-10 22:50:54 +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
f21bc40b23
Avoid release days to keep the CI free
Can be 1st, 2nd or 15th:
https://github.com/python-pillow/Pillow/blob/main/RELEASING.md
2022-09-09 16:24:11 +03:00
Andrew Murray
2a7e603ae2 Defer parsing of palette into colors 2022-09-09 22:28:30 +10: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
Hugo van Kemenade
a7471e9b84 Create update PRs on the first day of the month 2022-09-08 21:30:43 +03:00
Hugo van Kemenade
ae833dd62d Group GHA updates into a single PR 2022-09-08 20:59:15 +03:00
Hugo van Kemenade
01657d128d Add label to Dependabot PRs 2022-09-08 20:59:05 +03:00
Andrew Murray
bc069ec939 Added renovate.json to MANIFEST 2022-09-08 08:37:45 +10:00
nulano
e9af622a2b build brotli on Windows 2022-09-07 20:25:59 +02:00
nulano
2f95e49b36 add test using woff2 font with freetype 2022-09-07 20:25:59 +02:00
nulano
17e5f1eb3b
add recommended build flag for webp set to the default value 2022-09-07 19:31:31 +02:00
renovate[bot]
9ebf44f8b4
Add renovate.json 2022-09-07 14:24:11 +00:00
renovate[bot]
2ba18acecb
Add renovate.json 2022-09-07 14:23:48 +00:00
Hugo van Kemenade
d843759ca9
Merge pull request #6557 from radarhere/enums 2022-09-07 12:57:05 +03:00
Hugo van Kemenade
7cff8227d0
Merge pull request #6531 from Yay295/parametrize 2022-09-06 17:50:41 +03:00
Andrew Murray
bce9df62f1
Rearranged text
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:19:47 +10:00
Andrew Murray
7359af91f0
Rearranged text
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:18:55 +10:00
Andrew Murray
209ec9da47 Use target 2022-09-06 06:43:52 +10:00
Hugo van Kemenade
5e847b221e
Merge pull request #6560 from python-pillow/pre-commit-ci-update-config 2022-09-05 22:48:31 +03:00
pre-commit-ci[bot]
b3683c3e4b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)
- [github.com/asottile/yesqa: v1.3.0 → v1.4.0](https://github.com/asottile/yesqa/compare/v1.3.0...v1.4.0)
- [github.com/Lucas-C/pre-commit-hooks: v1.3.0 → v1.3.1](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.3.0...v1.3.1)
- [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4)
2022-09-05 18:09:19 +00:00
nulano
8b1f92a756
restore py_vcruntime_redist 2022-09-05 14:58:41 +02:00
nulano
b22c66eeb8
skip libtiif webp test when libtiff is too old 2022-09-05 14:06:50 +02:00
nulano
757ee8cf52
compile libtiff with webp on windows 2022-09-05 12:48:42 +02:00
nulano
ffedfe034a
test libtiff with webp compression 2022-09-05 12:41:59 +02:00
nulano
a7df33551c
libopenjpeg has no dependencies, skip searching for dependencies of openjpeg binaries on windows 2022-09-05 11:58:12 +02:00
nulano
7f978ab707
compile libtiff with liblzma on windows 2022-09-05 11:12:38 +02:00
nulano
9699a0e1d6
test libtiff with lzma 2022-09-05 10:13:52 +02:00
nulano
41a7bfe1c1
append dependency licenses to windows wheels on GHA 2022-09-05 08:11:23 +02:00
nulano
47d501386a
update dependency licenses 2022-09-05 07:23:26 +02:00
Andrew Murray
ee5de25f87 Apply transparency to P images before passing to tkinter.PhotoImage 2022-09-05 11:58:45 +10:00
Yay295
69de03ba5f
Merge branch 'python-pillow:main' into parametrize 2022-09-04 20:49:36 -05:00
Hugo van Kemenade
b6348d9b2d
Merge pull request #6546 from radarhere/tga_docs
Documented TGA save keyword arguments
2022-09-04 16:24:10 +03:00
Andrew Murray
780de80e5c Added examples for updating code 2022-09-03 22:23:05 +10:00
Andrew Murray
4783ecf41c Updated return values to match ImageFont 2022-09-03 21:09:44 +10:00
Andrew Murray
a36b766d36 Simplified enum references 2022-09-03 20:53:22 +10:00
Andrew Murray
7966c344ac Improved documentation of return values 2022-09-01 22:26:35 +10: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
Andrew Murray
3f960d9a94 Update CHANGES.rst [ci skip] 2022-09-01 08:37:15 +10:00
Hugo van Kemenade
7158816bc8
Merge pull request #6552 from radarhere/constants 2022-08-31 18:06:00 +03:00
Hugo van Kemenade
0b5c150805
Merge pull request #6497 from radarhere/convert 2022-08-31 17:09:38 +03:00
mergify[bot]
762c29c711
Merge pull request #6504 from radarhere/pyaccess_pa
Allow RGB and RGBA values for PA image putpixel
2022-08-31 13:12:06 +00:00
Andrew Murray
06660a5bad Update CHANGES.rst [ci skip] 2022-08-31 21:29:27 +10:00
Andrew Murray
d06cd7073d
Merge pull request #6551 from nulano/interp
Removed support for PyPy before Python 3.6
2022-08-31 21:27:58 +10:00
Andrew Murray
96c4f54012 Update CHANGES.rst [ci skip] 2022-08-31 21:03:21 +10:00
Andrew Murray
2eca2989a2 Merge branch 'main' into pyaccess_pa 2022-08-31 20:56:38 +10:00
Hugo van Kemenade
b953f73548
Merge pull request #6518 from radarhere/pdf_ccittfaxdecode 2022-08-31 13:55:46 +03:00
Hugo van Kemenade
b607e834a9
Merge pull request #6510 from radarhere/buffer 2022-08-31 13:50:35 +03:00
Hugo van Kemenade
6697de1160
Merge pull request #6493 from radarhere/bytes_ascii 2022-08-31 13:46:36 +03:00
Andrew Murray
b3dcf17886 Use constants 2022-08-31 20:09:05 +10:00
Andrew Murray
196210bc80 Update CHANGES.rst [ci skip] 2022-08-31 08:10:35 +10:00
Hugo van Kemenade
96441fb3b1
Merge pull request #6499 from radarhere/eps 2022-08-30 17:11:13 +03:00
Hugo van Kemenade
ee2a92f247
Merge pull request #6550 from radarhere/winbuild_readme 2022-08-30 16:32:19 +03:00
nulano
54c560f611
Removed support for PyPy before Python 3.6 2022-08-30 14:12:48 +02:00
Bibin Hashley O P
cf4017bfd8
Merge pull request #1 from radarhere/ImageOps.contain-function-issue-in-finding-new-size
Round position in pad()
2022-08-30 17:30:06 +05:30
Andrew Murray
172f1f3369 Updated environment list [ci skip] 2022-08-30 20:30:58 +10:00
Andrew Murray
d6e59bc750 Update CHANGES.rst [ci skip] 2022-08-30 19:41:14 +10:00
Hugo van Kemenade
9c72a6d9a4
Merge pull request #6549 from radarhere/interp 2022-08-30 11:02:35 +03:00
Andrew Murray
7b0e56bb21 Removed support for Python before interpaddr() 2022-08-30 09:21:24 +10:00
Andrew Murray
841ba4a940 Simplified code 2022-08-30 08:08:01 +10:00
Ondrej Baranovič
0ec3d3ec2c
Use pytest.param for consistency
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-29 20:34:11 +02:00
Yay295
797eb39711
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-29 12:28:14 -05:00
Yay295
09a7255ced
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-29 11:35:06 -05:00
Andrew Murray
e7fab6abf4 Fixed remapping to palette with duplicate entries 2022-08-29 23:20:31 +10:00
Andrew Murray
599637808c Documented TGA keyword arguments when saving 2022-08-29 13:22:09 +10:00
Andrew Murray
9fa421923c Removed requirement for 256 palette entries 2022-08-28 15:58:30 +10:00
Hugo van Kemenade
ad7be550aa
Merge pull request #6542 from radarhere/typo
Fixed typo
2022-08-27 12:35:32 +03:00
Andrew Murray
e613271776 Fixed typo 2022-08-27 18:48:47 +10:00
Hugo van Kemenade
61fc5e1f05
Merge pull request #6541 from radarhere/permissions
Set top-level permissions for remaining GitHub Actions
2022-08-27 08:57:54 +03:00
Andrew Murray
c2007e7558 Merge branch 'main' into codecov 2022-08-27 15:51:16 +10:00
Andrew Murray
2d21bc06f3
Replaced Codecov bash uploader with GitHub Action 2022-08-27 12:17:40 +10:00
Andrew Murray
e58b1960c3 Set top-level permissions for remaining GitHub Actions 2022-08-26 22:48:12 +10:00
Hugo van Kemenade
74ceacf1da
Merge pull request #6538 from radarhere/numpy 2022-08-26 14:09:07 +03:00
Andrew Murray
38b53a9fd7 Do not call load() before draft() 2022-08-26 20:33:51 +10:00
Andrew Murray
ac83011fbf NumPy now supports Python 3.11 2022-08-26 18:09:18 +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
Ondrej Baranovič
18bd77bbc0
simplify code, make test more generic 2022-08-25 19:45:33 +10:00
Andrew Murray
fc3930cc4c Merge branch 'main' into multiline_centered_embedded_color 2022-08-25 18:49:40 +10:00
Hugo van Kemenade
ba98fe7829
Merge pull request #6535 from radarhere/imagequant
Updated libimagequant to 4.0.4
2022-08-25 10:05:11 +03:00
Andrew Murray
5a38c7f953 Updated libimagequant to 4.0.4 2022-08-25 13:05:21 +10:00
nulano
aa5d67e492
convert TestImageFont and TestImageFont_RaqmLayout into a test fixture 2022-08-25 03:02:47 +02:00
Yay295
2fd3cb55d2
remove unused variable 2022-08-24 19:13:50 -05:00
pre-commit-ci[bot]
972961c9fe [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-08-24 23:22:10 +00:00
Yay295
65694f3fb8
parametrize test_rankfilter_error() 2022-08-24 18:21:27 -05:00
Yay295
826ab4b17c
remove unused asserts
An exception occurs before they would be checked.
2022-08-24 18:15:57 -05:00
nulano
ced381edaa
Document ImageDraw attributes 2022-08-25 00:48:19 +02:00
nulano
b330ff910d
upload fribidi.dll to GHA 2022-08-24 22:04:43 +02:00
Andrew Murray
f9d3ee0f48 Round position in pad() 2022-08-24 22:56:19 +10:00
Yay295
a7f7f6ac05
parametrize tests 2022-08-24 07:43:49 -05:00
Yay295
fa591e1198
parametrize tests 2022-08-24 07:43:31 -05:00
Yay295
f0be6845f7
parametrize tests 2022-08-24 07:42:51 -05:00
Andrew Murray
df4bb34600 Added test 2022-08-24 22:32:42 +10:00
Andrew Murray
192aae9ddd Merge branch 'main' into ImageOps.contain-function-issue-in-finding-new-size 2022-08-24 21:53:48 +10:00
mergify[bot]
cb6c94123e
Merge pull request #6526 from radarhere/parametrize
Parametrized tests
2022-08-24 08:15:01 +00:00
Andrew Murray
7d35d705ee Merge branch 'main' into convert 2022-08-24 17:21:39 +10:00
Andrew Murray
683aa90440 Merge branch 'main' into parametrize 2022-08-24 17:20:54 +10:00
mergify[bot]
39f5b05a82
Merge pull request #6529 from radarhere/windows
Build lcms2 VC2022
2022-08-24 06:52:14 +00:00
Andrew Murray
56ba3ff68c Build lcms2 VC2022 2022-08-24 15:39:43 +10:00
Andrew Murray
3353ea80e1 Further parametrizations 2022-08-24 10:37:40 +10:00
Andrew Murray
8f25ea46eb
Qt4 is no longer supported
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-24 08:12:14 +10:00
Andrew Murray
1c391fe31f Renamed argument 2022-08-24 08:11:02 +10:00
Andrew Murray
0ed03d4a58 Parametrize tests 2022-08-23 21:41:32 +10:00
Hugo van Kemenade
0f3e8e5573
Merge pull request #6519 from Yay295/main 2022-08-23 14:11:02 +03:00
Andrew Murray
cd337405e1 Merge branch 'main' into convert 2022-08-23 20:28:30 +10:00
Hugo van Kemenade
3892458fe9
Merge pull request #6524 from radarhere/pdf
Temporarily skip valgrind failure
2022-08-23 11:09:35 +03:00
Hugo van Kemenade
a28d102ee3
Merge pull request #6523 from radarhere/imagequant
Updated libimagequant to 4.0.2
2022-08-23 11:08:49 +03:00
Andrew Murray
a3e61c1f89 Temporarily skip valgrind failure 2022-08-23 09:16:40 +10:00
Andrew Murray
b6b42b8e56 Updated libimagequant to 4.0.2 2022-08-23 07:41:12 +10:00
Bibin Hashley
be9224f285 ImageOps.contain function finding new size issue 2022-08-23 02:57:03 +05:30
Yay295
b236c61c04
make @pytest.mark.parametrize annotations one line 2022-08-22 13:29:26 -05:00
pre-commit-ci[bot]
1421f94b6d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-08-22 14:25:33 +00:00
Yay295
fd47eed73a parametrize Tests/test_image_paste.py 2022-08-22 09:23:42 -05:00
Hugo van Kemenade
4dd678a2e7
Merge pull request #6501 from radarhere/test-image-results 2022-08-22 17:02:52 +03:00
Andrew Murray
3b4ea7c602 Do not use CCITTFaxDecode filter if libtiff is not available 2022-08-22 19:57:33 +10:00
Andrew Murray
54b01f55f8 Round box position to integer when pasting embedded color 2022-08-22 12:14:54 +10:00
Andrew Murray
4c59f77e37
Merge pull request #6513 from cgohlke/patch-1
DOC: fix image-file-formats.rst
2022-08-21 13:25:08 +10:00
Christoph Gohlke
8a1837c80d
DOC: fix image-file-formats.rst 2022-08-20 19:39:04 -07:00
Hugo van Kemenade
c44eea2190
Merge pull request #6511 from radarhere/install
Ubuntu dependencies also apply to Jammy
2022-08-19 07:05:19 +03:00
Andrew Murray
f9d33b40ad Ubuntu dependencies also apply to Jammy [ci skip] 2022-08-19 12:09:47 +10:00
Andrew Murray
c463ef4fe3 Fallback to not using mmap if buffer is not large enough 2022-08-17 21:13:09 +10:00
Andrew Murray
6b35dc2a8a Update CHANGES.rst [ci skip] 2022-08-17 19:17:41 +10:00
Andrew Murray
8a60db322f Copy palette when converting from P to PA 2022-08-17 17:05:53 +10:00
Hugo van Kemenade
d80e93e435
Merge pull request #6509 from radarhere/pa2p 2022-08-17 09:34:32 +03:00
Andrew Murray
b84816c02f Added pa2p 2022-08-16 22:45:55 +10:00
Hugo van Kemenade
4c346c6fec
Merge pull request #314 from radarhere/giflib 2022-08-15 09:10:47 +03:00
Hugo van Kemenade
87ecd01fc0
Merge pull request #6484 from radarhere/imagedraw_font 2022-08-15 08:08:53 +03:00
Andrew Murray
8165ad55e0 Updated multibuild to include build_giflib for giflib >= 5.1.5 2022-08-15 11:42:35 +10:00
Andrew Murray
520fa19dab
Fixed formatting
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-08-15 09:15:35 +10:00
Andrew Murray
a37593f004 Allow RGB and RGBA values for PA image putpixel 2022-08-14 14:34:42 +10:00
Andrew Murray
55d94558fb Do not install test-image-results on GitHub Actions 2022-08-13 23:14:32 +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
Hugo van Kemenade
5a087ccbb9
Merge pull request #6498 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.4
2022-08-13 13:04:56 +03:00
Andrew Murray
5d4fbdfab4 Simplified code 2022-08-13 19:46:46 +10:00
Andrew Murray
99e401123b Corrected palette size when saving 2022-08-13 19:46:07 +10:00
Andrew Murray
7e1a0ca544 Open 1 bit EPS in mode 1 2022-08-13 18:32:29 +10:00
Andrew Murray
84bdb635c2 Updated libjpeg-turbo to 2.1.4 2022-08-13 16:36:46 +10: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
Andrew Murray
3459120732 Fixed writing bytes as ASCII tag 2022-08-11 20:46:58 +10:00
Andrew Murray
8135bd5cfb Added documentation 2022-08-11 10:35:44 +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
Hugo van Kemenade
92b0f2c919
Merge pull request #6476 from radarhere/exif 2022-08-09 15:08:54 +03:00
Andrew Murray
5d71ba3ca1 Update CHANGES.rst [ci skip] 2022-08-08 09:13:06 +10:00
Hugo van Kemenade
26b7930bfc
Merge pull request #6485 from radarhere/font
Note to Windows users that FreeType will keep the font file open
2022-08-07 19:14:09 +03:00
Hugo van Kemenade
ae14255c34
Merge pull request #6470 from radarhere/pdf_ccittfaxdecode
Save 1 mode PDF using CCITTFaxDecode filter
2022-08-07 19:11:37 +03:00
Hugo van Kemenade
38e411de42
Merge pull request #6481 from radarhere/psd_rgba
Added support for RGBA PSD images
2022-08-07 19:09:26 +03:00
Andrew Murray
c24b6ef4f0 Document workaround 2022-08-06 23:01:36 +10:00
Andrew Murray
42a5a743c1 Note to Windows users that FreeType will keep the font file open 2022-08-06 22:48:10 +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
mergify[bot]
3b0f046c5a
Merge pull request #6483 from radarhere/webp
Updated libwebp to 1.2.4
2022-08-06 07:46:36 +00:00
Andrew Murray
04d9761316 Changed "font" to class variable 2022-08-06 17:29:44 +10:00
Andrew Murray
61ec41511d Updated libwebp to 1.2.4 2022-08-06 15:40:10 +10: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
Andrew Murray
e77a7b6b4f Added support for RGBA PSD images 2022-08-05 23:29:58 +10:00
Andrew Murray
8ce2890057 Merge branch 'main' into exif 2022-08-04 23:07:04 +10:00
Hugo van Kemenade
1b5abea043
Merge pull request #6477 from radarhere/libtiff
Increased test tolerance to allow for libtiff with libjpeg-turbo
2022-08-04 16:05:30 +03:00
Andrew Murray
101f115853 Increased tolerance to allow for libtiff with libjpeg-turbo 2022-08-04 20:03:24 +10:00
Andrew Murray
1197e19982 Document that exif_transpose() does not change orientations of 1 2022-08-04 14:19:17 +10:00
Andrew Murray
1112ad67a3 Document that orientation data is removed by exif_transpose() 2022-08-04 14:18:31 +10:00
Andrew Murray
c3cc621c67 Merge branch 'python-pillow-main' 2022-08-02 15:55:21 +10:00
Hugo van Kemenade
75913950c2
Merge pull request #6473 from radarhere/jammy_valgrind
Updated Valgrind job to Jammy
2022-08-02 07:09:35 +03:00
Andrew Murray
8464ed423b Updated Valgrind job to Jammy 2022-08-02 08:03:52 +10:00
mergify[bot]
d4922dd856
Merge pull request #6472 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-08-01 19:49:00 +00:00
pre-commit-ci[bot]
82974a404c
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/Lucas-C/pre-commit-hooks: v1.2.0 → v1.3.0](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.2.0...v1.3.0)
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.2)
2022-08-01 18:14:07 +00:00
Andrew Murray
2b14d83549 Added strip_size as TIFF encoder argument 2022-08-01 21:41:17 +10:00
Andrew Murray
f5b27f90f7 Save 1 mode PDF using CCITTFaxDecode filter 2022-08-01 20:38:47 +10:00
Hugo van Kemenade
7e7a48479b
Merge pull request #6466 from radarhere/harfbuzz
Updated harfbuzz to 5.1.0
2022-08-01 07:34:17 +03: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
5cc9ab5b1d Updated harfbuzz to 5.1.0 2022-08-01 08:55:31 +10:00
Andrew Murray
f7f26e4f92 Updated harfbuzz to 5.1.0 2022-08-01 08:45:53 +10:00
ShadelessFox
952237d373
Minimize unnecessary code changes 2022-07-31 19:16:25 +03:00
Andrew Murray
f2ce07cf22
Update CHANGES.rst [ci skip] 2022-07-30 13:29:10 +10:00
mergify[bot]
363586be6a
Merge pull request #6463 from bigcat88/xmp-tags-orientation
Parse orientation from XMP tag contents
2022-07-30 02:02:50 +00:00
Alexander Piskun
5d8dacf962
Merge pull request #2 from radarhere/xmp-tags-orientation
Check that orientation is still absent after reloading Exif
2022-07-29 11:18:50 -04:00
Hugo van Kemenade
4dcb149665
Merge pull request #6458 from radarhere/releasing
Switch to GitHub Actions artifacts for Windows wheels
2022-07-28 20:59:31 +03:00
Hugo van Kemenade
8760dd0fd1
Merge pull request #6465 from radarhere/releasenotes 2022-07-28 11:53:30 +03:00
Andrew Murray
cbe292212b Added release notes for #6457 2022-07-28 08:35:10 +10:00
Andrew Murray
78a6bb4c99 Update CHANGES.rst [ci skip] 2022-07-27 22:33:27 +10:00
mergify[bot]
87a08e2381
Merge pull request #6457 from REDxEYE/ATI1-2_support
Add support for ATI1/2(BC4/BC5) DDS files
2022-07-27 12:30:52 +00:00
Andrew Murray
bac83f7dd3 Check that orientation is still absent after reloading Exif 2022-07-27 22:27:43 +10:00
Andrew Murray
7e1261c6a0 Simplified test code 2022-07-27 22:18:39 +10:00
REDxEYE
cf9e2aee3e
Merge pull request #1 from radarhere/ATI1-2_support
Sort formats by n
2022-07-27 14:45:01 +03:00
Andrew Murray
4276340074 Sorted formats by n 2022-07-27 21:32:48 +10:00
Alexander Piskun
cce09b713d
Merge pull request #1 from radarhere/xmp-tags-orientation
Simplified code
2022-07-26 05:34:31 -04:00
Andrew Murray
f42e255206 Simplified code 2022-07-26 11:58:44 +10:00
Alexander Piskun
db20d0f8fe
fixing typo in filetest name 2022-07-26 00:45:23 +03:00
Alexander Piskun
6e97da0260
fixing xmp tag orientation generated by exiftool 2022-07-26 00:30:32 +03:00
Andrew Murray
ce7af49eed Update CHANGES.rst [ci skip] 2022-07-25 18:09:06 +10:00
Hugo van Kemenade
cd261abbcb
Merge pull request #6455 from radarhere/gif_tile 2022-07-25 10:05:27 +03: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
Andrew Murray
ca4261f9fd Update CHANGES.rst [ci skip] 2022-07-25 07:53:17 +10:00
Hugo van Kemenade
dd20412472
Merge pull request #6444 from radarhere/mpo
Support saving multiple MPO frames
2022-07-24 11:21:46 +03:00
Hugo van Kemenade
f3551ae13e
Merge pull request #6456 from radarhere/memory
Moved tile encoding into separate function
2022-07-24 10:44:31 +03:00
ShadelessFox
3bec5999e0
Rename remaining occurrences of BC6S -> BC6HS 2022-07-23 15:20:35 +03:00
ShadelessFox
c5155fdcef
Merge pull request #4 from radarhere/bc6h
Rename format to BC6H and BC6HS
2022-07-23 05:19:24 -07:00
REDxEYE
1050d13350 Replace test files with images with compatible license 2022-07-23 12:44:03 +03:00
Andrew Murray
4a13857aa6 Switch to GitHub Actions artifacts for Windows wheels 2022-07-23 15:29:01 +10:00
Andrew Murray
806f43f0b7 Simplified code 2022-07-23 14:19:28 +10:00
Andrew Murray
5bd893f760 Rename format to BC6H and BC6HS 2022-07-23 14:16:40 +10:00
pre-commit-ci[bot]
fd86414ac2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-07-22 22:02:58 +00:00
REDxEYE
2376399150 Add test and test files for ATI1 pixel format and fix image mode for ATI1 2022-07-23 01:02:06 +03:00
REDxEYE
ad2c6a20fe Add support for ATI1/2(BC4/BC5) DDS files
This commit adds support for loading DDS with ATI1 and ATI2 fourcc pixel format
2022-07-23 00:30:27 +03:00
Andrew Murray
8784ee1410 Moved code into separate function 2022-07-22 07:59:30 +10:00
Andrew Murray
0844fb0ed3 Do not clear tile if not updating the image when seeking 2022-07-21 09:05:14 +10:00
Hugo van Kemenade
446446f579
Merge pull request #6451 from radarhere/libimagequant
Updated libimagequant to 4.0.1
2022-07-19 22:54:18 +03:00
Andrew Murray
37e794245e Updated libimagequant to 4.0.1 2022-07-19 13:11:17 +10:00
ShadelessFox
4b97f88ef8
Code cleanup 2022-07-19 02:19:21 +03:00
ShadelessFox
75b3918822
Merge pull request #3 from radarhere/bc6_tests
Restored unimplemented DXGI format test
2022-07-18 16:15:50 -07:00
Andrew Murray
13acf0a545 Update CHANGES.rst [ci skip] 2022-07-19 07:50:04 +10:00
Andrew Murray
3a7e29306a Added release notes 2022-07-19 07:40:25 +10:00
Andrew Murray
f5af251fb0
Merge pull request #6433 from hugovk/docs-csv-table
Docs: Replace version tables with RST csv-table and add 3.11
2022-07-19 07:23:59 +10:00
Andrew Murray
0d0cf6374c Restored unimplemented DXGI format test 2022-07-19 07:18:48 +10:00
ShadelessFox
fac18a5b60
Add BC6 tests 2022-07-18 22:24:41 +03:00
ShadelessFox
18a3c249b6
Fix BC6H_SF decoder 2022-07-18 22:24:40 +03:00
REDxEYE
b7715d1600
Fix BC6H_SF decoding error.
Decoding error were caused by additional sign extend call after endpoint
transform, according to khronos documentation, you only suppose to sign
extend endpoints only once, further calls to sign extend mangles
endpoint data.
2022-07-18 22:24:40 +03:00
ShadelessFox
f58c0ea533
Fix BC6 block decoder 2022-07-18 22:24:40 +03:00
Hugo van Kemenade
77402067fb
Omit ":widths: auto"
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-07-18 15:30:00 +03:00
Hugo van Kemenade
04e9854417
Merge pull request #6450 from radarhere/setuptools
Do not quote Pillow version for setuptools >= 60
2022-07-18 11:37:35 +03:00
pre-commit-ci[bot]
aba0859db9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-07-18 06:17:10 +00:00
Andrew Murray
08db23c61c Do not quote Pillow version for setuptools >= 60 2022-07-18 16:16:06 +10:00
Andrew Murray
dea30e4c80 Fixed set_variation_by_name offset 2022-07-18 08:39:23 +10:00
mergify[bot]
2258f23781
Merge pull request #6443 from timgates42/bugfix_typo_unpredictable
Fix simple typo
2022-07-16 11:52:47 +00: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
mergify[bot]
d53344b39f
Merge pull request #6442 from radarhere/libwebp
Updated libwebp to 1.2.3
2022-07-16 10:10:31 +00:00
Andrew Murray
2944ff18d6 Support saving multiple MPO frames 2022-07-16 20:02:58 +10:00
Tim Gates
dfa6655bdd
docs: fix simple typo, unpredicatable -> unpredictable
There is a small typo in src/PIL/Image.py.

Should read `unpredictable` rather than `unpredicatable`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-16 19:04:42 +10:00
Andrew Murray
864e86fb20
Merge pull request #6441 from hugovk/add-3.11
3.11: Add Trove classifier and to tox.ini and update setup.py version check
2022-07-16 18:21:31 +10:00
Andrew Murray
ada4112c61
Merge pull request #6440 from hugovk/make-doc-PYTHON
Docs: Allow setting Python interpreter via command line
2022-07-16 18:20:10 +10:00
Andrew Murray
45963b1b40 Update CHANGES.rst [ci skip] 2022-07-16 17:25:29 +10:00
Andrew Murray
55a5017934 Updated libwebp to 1.2.3 2022-07-16 17:22:45 +10:00
Andrew Murray
97a7444687 Updated libwebp to 1.2.3 2022-07-16 17:21:22 +10:00
Hugo van Kemenade
03df65e77b Docs: Allow setting Python interpreter via command line 2022-07-15 14:55:08 +03:00
Hugo van Kemenade
1f74704d6f
Merge pull request #6436 from radarhere/bmp
Added ABGR BMP mask mode
2022-07-15 14:15:30 +03:00
Hugo van Kemenade
6801a255a3 Add support for Python 3.11 2022-07-15 13:42:36 +03:00
Hugo van Kemenade
48ad0b1f38 Rebalance version tables 2022-07-15 11:25:33 +03:00
Hugo van Kemenade
0f3ad23e1b Add Python 3.11 for Pillow >= 9.3 2022-07-15 11:15:49 +03:00
Hugo van Kemenade
3f32b79303 Replace version tables with RST csv-table 2022-07-15 10:50:48 +03:00
Andrew Murray
ea78975a56 Merge branch 'main' into bmp 2022-07-15 17:12:42 +10:00
Hugo van Kemenade
5e649c1d70
Merge pull request #6438 from radarhere/qt_install
Install libxcb-shape0
2022-07-15 10:11:15 +03:00
Andrew Murray
e1d833bce5 Install libxcb-shape0 2022-07-14 21:54:24 +10:00
Andrew Murray
9f6a315092 Added ABGR MASK_MODE 2022-07-14 07:25:28 +10:00
Andrew Murray
2b9d48403a Reordered SUPPORTED to match MASK_MODES 2022-07-14 07:08:25 +10:00
Andrew Murray
6f4ff4edc4 Update CHANGES.rst [ci skip] 2022-07-12 20:03:56 +10:00
Hugo van Kemenade
ec0b9ede09
Merge pull request #6429 from radarhere/psdraw 2022-07-12 13:01:12 +03:00
Andrew Murray
208f87f9c1 Update CHANGES.rst [ci skip] 2022-07-12 06:55:56 +10:00
Hugo van Kemenade
3e852eec93
Merge pull request #6431 from radarhere/png_srgb
Raise ValueError if PNG sRGB chunk is truncated
2022-07-11 13:56:47 +03:00
Andrew Murray
40a0999303 Raise ValueError if PNG sRGB chunk is truncated 2022-07-11 20:02:41 +10:00
Andrew Murray
80c1ef5dcd Simplified rectangle command 2022-07-11 19:38:46 +10:00
Andrew Murray
db1d945ce7 Changed second rectangle parameter to distance from bottom 2022-07-11 18:36:27 +10:00
Hugo van Kemenade
4db2ed3a6f
Merge pull request #6427 from radarhere/links
Updated links
2022-07-11 11:32:35 +03:00
Andrew Murray
d6458f21d7 Corrected CHANGES.rst [ci skip] 2022-07-11 12:29:03 +10:00
Andrew Murray
ed98c668ee Fixed PSDraw rectangle 2022-07-11 06:54:23 +10:00
Andrew Murray
23af975a41 Updated link for more information about SPIDER 2022-07-11 06:25:00 +10:00
Andrew Murray
415d5b277c Updated redirected URL 2022-07-11 06:24:56 +10:00
Hugo van Kemenade
dfe2cb7620
Merge pull request #6425 from radarhere/macos
Updated macOS tested Pillow versions
2022-07-09 08:17:26 +03:00
Andrew Murray
5c3077560b Updated macOS tested Pillow versions [ci skip] 2022-07-09 14:38:40 +10:00
Hugo van Kemenade
f3547d8507
Merge pull request #6413 from turrisxyz/Pinned-Dependencies-GitHub 2022-07-08 17:39:57 +03:00
Andrew Murray
fdf4084a7f Update CHANGES.rst [ci skip] 2022-07-07 12:43:24 +10:00
Hugo van Kemenade
b0185e4e48
Merge pull request #6415 from radarhere/doc 2022-07-06 21:01:54 +03:00
Hugo van Kemenade
14b457e15e
Merge pull request #6416 from bryant1410/patch-1
Fix when `sys.executable` is empty or null
2022-07-06 09:12:27 +03:00
Andrew Murray
4f7f5470b1 Fixed typo 2022-07-06 08:30:24 +10:00
Andrew Murray
527eecae80 Fallback to python3 2022-07-05 20:55:56 +00:00
Mark Harfouche
02e90e21f4 Release the GIL when applying matrix conversion to images 2022-07-05 15:13:39 -04: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
mergify[bot]
9ac5a70f9e
Merge pull request #6417 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-07-04 19:28:55 +00: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
pre-commit-ci[bot]
431498de0b
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
- [github.com/sphinx-contrib/sphinx-lint: v0.6 → v0.6.1](https://github.com/sphinx-contrib/sphinx-lint/compare/v0.6...v0.6.1)
2022-07-04 17:57:12 +00:00
Santiago Castro
a0b22d2203
Fix when sys.executable is empty or null 2022-07-04 09:50:47 -07:00
Andrew Murray
300f6c8a59 Document where to find other codecs 2022-07-04 19:33:21 +10:00
neilnaveen
43b185e1c1 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-07-04 01:19:58 +00:00
Hugo van Kemenade
26e2c7e030 9.3.0.dev0 version bump 2022-07-01 21:29:53 +03:00
Hugo van Kemenade
799ae5b88d Pillow -> 9.2.0 2022-07-01 16:50:09 +03:00
Hugo van Kemenade
58acec3312 Update CHANGES.rst [ci skip] 2022-07-01 16:19:51 +03:00
Hugo van Kemenade
dc518ac25e 9.2.0 version bump 2022-07-01 16:16:26 +03:00
mergify[bot]
488589b4b6
Merge pull request #6381 from nulano/deprecate-getsize
Deprecate ImageFont.getsize and related functions
2022-07-01 13:10:14 +00:00
Andrew Murray
8a6050ee5b Replaced __internal__ argument with warning filters 2022-07-01 14:10:29 +02:00
mergify[bot]
79329fb18d
Merge pull request #6408 from radarhere/furo
Install furo if it is not available
2022-07-01 11:15:34 +00:00
Andrew Murray
4ca99f7454 Install furo if it is not available 2022-07-01 19:51:29 +10:00
Andrew Murray
729fe6f8b0 Updated indentation 2022-07-01 19:45:36 +10:00
nulano
74e0b954f2
test {ImageFont,TransposedFont}.getsize() deprecation 2022-07-01 11:22:47 +02:00
nulano
a37c21e136
document planned removal date for ImageFont deprecations and release notes 2022-06-30 15:29:09 +02:00
nulano
ad5271d62f
Document replacements for individual deprecated font methods 2022-06-30 15:03:55 +02:00
Andrew Murray
65020e7c7c Documented deprecation in individual methods 2022-06-30 15:03:12 +02:00
nulano
7691231aa7
Fix heading in deprecations.rst 2022-06-30 14:51:29 +02:00
nulano
9957e0b0d7
link to ImageDraw2 in deprecations and release notes 2022-06-30 14:38:20 +02:00
Andrew Murray
3c0b8763ab Added documentation and release notes 2022-06-30 14:23:22 +02:00
Ondrej Baranovič
838b1f1598
add replacement for getsize_multiline to deprecation warning 2022-06-30 14:22:07 +02:00
pre-commit-ci[bot]
303ec1a95e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-06-30 12:21:43 +00:00
Ondrej Baranovič
f57a9d678c
update TransposedFont.getlength error message
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-30 14:20:56 +02:00
Andrew Murray
0d91d13a6e Merge branch 'main' into deprecate-getsize 2022-06-30 20:37:37 +10:00
mergify[bot]
11918eac06
Merge pull request #6403 from radarhere/gif_decompression_bomb
Added release notes for #6402
2022-06-30 10:23:13 +00:00
Andrew Murray
31009c9780 Update CHANGES.rst [ci skip] 2022-06-30 19:30:01 +10:00
Andrew Murray
d66e730fea
Merge pull request #6376 from nulano/fribidi-no-version
Fixed null check for fribidi_version_info in FriBiDi shim
2022-06-30 19:27:28 +10:00
Andrew Murray
3b8e195db2 Added release notes for #6402 2022-06-30 18:58:38 +10:00
Andrew Murray
7527964ce9 Update CHANGES.rst [ci skip] 2022-06-30 18:46:51 +10:00
Andrew Murray
884437f8a2
Merge pull request #6402 from radarhere/gif_decompression_bomb
Added GIF decompression bomb check
2022-06-30 14:02:43 +10:00
Andrew Murray
c9f1b35e98 Added GIF decompression bomb check 2022-06-30 12:47:35 +10: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
mergify[bot]
8f35234f3a
Merge pull request #6401 from radarhere/harfbuzz
Updated harfbuzz to 4.4.1
2022-06-29 10:55:50 +00:00
Andrew Murray
baa8628e7c
Merge pull request #6399 from hugovk/docs-rm-search-page
Docs: remove redundant search page from table of contents
2022-06-29 19:08:42 +10:00
Andrew Murray
eebbf6b271 Updated harfbuzz to 4.4.1 2022-06-29 18:59:44 +10:00
Andrew Murray
700d64a98e Updated harfbuzz to 4.4.1 2022-06-29 18:59:04 +10:00
Hugo van Kemenade
31bed8cfcc Docs: remove redundant search page from table of contents 2022-06-29 09:49:14 +03: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
14169c5e2d
Merge pull request #6397 from radarhere/harfbuzz
Updated harfbuzz to 4.4.0
2022-06-28 08:26:25 +03: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
3558f4e5d6 Updated harfbuzz to 4.4.0 2022-06-28 09:50:03 +10:00
Andrew Murray
95b989383e Updated harfbuzz to 4.4.0 2022-06-28 09:49:02 +10:00
Andrew Murray
60f0b7eebc Update CHANGES.rst [ci skip] 2022-06-27 15:50:31 +10:00
Hugo van Kemenade
714ff4e397
Merge pull request #6386 from dawidcrivelli/handle_pcf_missing_characters
Handle PCF fonts files with less than 256 characters
2022-06-27 07:59:50 +03:00
Andrew Murray
93805d5257 Limit expected number of characters to nencoding 2022-06-27 14:05:13 +10:00
Andrew Murray
bc6a02422e Update CHANGES.rst [ci skip] 2022-06-27 09:13:21 +10:00
Andrew Murray
fc497ffe5e
Merge pull request #6378 from raygard/fix_get_optimize
Improved GIF optimize condition
2022-06-27 09:12:20 +10:00
Ray Gardner
7c839d8d81
Merge pull request #3 from radarhere/fix_get_optimize
Optimise palettes with more than 128 colors
2022-06-26 13:55:49 -06:00
Andrew Murray
847ad8c512 Clarify check that palette is not already at its smallest 2022-06-26 20:58:36 +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
Andrew Murray
ce486e77b1 Merge remote-tracking branch 'radarhere/handle_pcf_missing_characters' into handle_pcf_missing_characters 2022-06-25 21:30:57 +10:00
Andrew Murray
ef93892af8 Update CHANGES.rst [ci skip] 2022-06-25 17:08:56 +10:00
Hugo van Kemenade
b1e9a3c171
Merge pull request #6394 from radarhere/numpy
Reverted to __array_interface__ with the release of NumPy 1.23
2022-06-25 09:44:00 +03:00
Andrew Murray
e5046b1057 Reverted to __array_interface__ with the release of NumPy 1.23 2022-06-24 23:08:36 +10:00
Andrew Murray
2970a5b8b2 Update CHANGES.rst [ci skip] 2022-06-23 16:59:28 +10:00
Hugo van Kemenade
e774be01fe
Merge pull request #6391 from radarhere/pcx
Pad PCX palette to 768 bytes when saving
2022-06-23 09:50:22 +03:00
Andrew Murray
e6b7730c62 Update CHANGES.rst [ci skip] 2022-06-22 19:49:02 +10:00
Hugo van Kemenade
6dd5b2e8c9
Merge pull request #6377 from btrekkie/fix-round-to-palette
Fixed bug with rounding pixels to palette
2022-06-22 12:31:25 +03:00
Andrew Murray
317286d260 Pad palette to 768 bytes 2022-06-22 17:27:49 +10:00
Andrew Murray
db741bf25f Skip remaining characters after IndexError 2022-06-22 16:55:33 +10:00
Andrew Murray
b00b509dd8 Update CHANGES.rst [ci skip] 2022-06-22 07:54:44 +10:00
Hugo van Kemenade
557e293ece
Merge pull request #6361 from radarhere/wayland
Use gnome-screenshot on Linux if available
2022-06-21 18:02:31 +03:00
Hugo van Kemenade
e9715b2c23
Merge pull request #6384 from radarhere/bmp_rle8
Fixed loading L mode BMP RLE8 images
2022-06-21 18:01:14 +03:00
Dawid Crivelli
f160e698a1 Handle PCF fonts files with missing characters 2022-06-20 16:20:08 +02:00
Andrew Murray
3e8a9b2165 Fixed loading L mode RLE8 images 2022-06-20 21:01:10 +10:00
nulano
a7baa31de8
use getbbox instead of getsize in fuzzers.py 2022-06-20 04:35:42 +01:00
btrekkie
b7dc3109cb
Merge pull request #1 from radarhere/fix-round-to-palette-tests
Added test
2022-06-19 22:10:30 -04:00
nulano
93acbcf9e2
add getbbox and getlength to TransposedFont with tests 2022-06-20 02:37:42 +01:00
btrekkie
f10072603d
Merge pull request #2 from radarhere/fix-round-to-palette
Removed #6377 from release notes
2022-06-19 20:53:17 -04:00
nulano
e2158344a0
update test_imagefont to use textbbox 2022-06-20 01:20:56 +01:00
Andrew Murray
a2eff2aff5 Added test 2022-06-20 09:18:05 +10:00
Andrew Murray
5fc3b6e5bb Update CHANGES.rst [ci skip] 2022-06-20 08:29:37 +10:00
nulano
1bf87556ef
add textbbox and textlength to ImageDraw2 and update tests 2022-06-19 22:04:57 +01:00
nulano
f34a6460ef
update test_font_pcf to use getbbox 2022-06-19 22:04:56 +01:00
nulano
c854bf8d1c
add getbbox and getlength to basic ImageFont and update related tests 2022-06-19 22:04:56 +01:00
nulano
406fe59242
deprecate font.getsize and related functions 2022-06-19 22:03:34 +01:00
mergify[bot]
8de74b9fab
Merge pull request #6370 from LostBenjamin/patch-1
Fix wrong operator bug in PyCMSError exception message
2022-06-19 13:21:43 +00:00
Hugo van Kemenade
1229110fb2
Update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-19 15:22:02 +03:00
Hugo van Kemenade
607f508080
Update comment
We get "an integer is required (got type NoneType)" with Python 3.7-3.9 on Windows.

We get "'NoneType' object cannot be interpreted as an integer" with Python 3.10 on Windows and all versions on macOS and Ubuntu.
2022-06-19 12:29:39 +03:00
Andrew Murray
709744432a Optimise palettes with more than 128 colors 2022-06-19 16:47:50 +10:00
Andrew Murray
5f6bc0e1a6 Removed #6377 from release notes 2022-06-19 14:07:50 +10:00
pre-commit-ci[bot]
f656711c80 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-06-19 00:20:28 +00:00
Ray Gardner
128ed189e5 Improve test in _get_optimize()
Palette can be optimized if number of colors can be reduced by half or more.
2022-06-18 18:07:58 -06:00
William Jacobs
9f9e26522e Fixed bug with rounding pixels to palette
This fixes a bug with rounding pixels to the nearest palette color. Specifically, there is a typo with computing the minimum distance from a palette color to a given cache box. This is causing palette colors to be incorrectly excluded from consideration.
2022-06-18 04:09:41 -04:00
nulano
c2047b8293
fix null check for fribidi_version_info in fribidi shim 2022-06-17 17:13:11 +01:00
Andrew Murray
765d66c069 Update CHANGES.rst [ci skip] 2022-06-16 19:24:36 +10:00
Hugo van Kemenade
b3bc4a7bb4
Merge pull request #6368 from radarhere/fpx 2022-06-16 12:03:54 +03:00
Andrew Murray
4d6e5a0d09 Limit tile size to avoid extending outside image 2022-06-16 08:36:43 +10:00
Hugo van Kemenade
6ae6a241f2 More generic match text 2022-06-15 21:57:20 +03:00
Hugo van Kemenade
959e576dd2 Use f-string 2022-06-15 21:43:18 +03:00
Hugo van Kemenade
983a6139d5 Check other exception messages 2022-06-15 21:42:04 +03:00
Hugo van Kemenade
6c889d1088 Test ImageCms.profileToProfile with invalid flags 2022-06-15 21:34:16 +03:00
Jingxuan He
b47bcc246f
Fix a potential wrong operator bug 2022-06-15 17:39:37 +02:00
Andrew Murray
e80ddfd2b6 Update CHANGES.rst [ci skip] 2022-06-14 22:26:50 +10:00
Andrew Murray
aad3af437e
Merge pull request #5242 from Piolie/plainPPM
Add support for decoding plain PPM formats
2022-06-14 22:24:25 +10:00
Andrew Murray
1bac1cf6f5 Moved all comments logic into _ignore_comments() 2022-06-14 21:39:55 +10:00
Andrew Murray
6eb6232f04 Test comment that ends in the same block 2022-06-14 21:39:55 +10:00
Andrew Murray
216cd374dd Parametrized tests 2022-06-14 21:39:26 +10:00
Andrew Murray
c4d51fb268 Added support for PPM arbitrary maxval in plain formats 2022-06-13 19:55:25 +10:00
Andrew Murray
463d18191a Document use of gnome-screenshot 2022-06-13 10:16:30 +10:00
Andrew Murray
b1ba0909ed
Prefer gnome-screenshot if xdisplay is None
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-06-13 09:56:52 +10:00
Andrew Murray
5051a29a4e Merge branch 'main' into plainPPM 2022-06-12 16:11:17 +10:00
Andrew Murray
a48d95061d Use gnome-screenshot on Linux if available 2022-06-12 16:00:31 +10:00
Andrew Murray
c083eadccb Update CHANGES.rst [ci skip] 2022-06-12 12:14:21 +10:00
Hugo van Kemenade
8bd7e81b5d
Merge pull request #6352 from radarhere/apply_transparency
Added apply_transparency()
2022-06-11 17:58:10 +03:00
Andrew Murray
70a060e765 Document apply_transparency() 2022-06-11 22:31:07 +10:00
Andrew Murray
8e37d4c849 Update CHANGES.rst [ci skip] 2022-06-11 09:25:27 +10:00
Hugo van Kemenade
f7ec22f518
Merge pull request #6197 from radarhere/endian
Fixed behaviour change from endian fix
2022-06-10 19:02:54 +03:00
Hugo van Kemenade
31b98bb3ba
Merge pull request #6222 from radarhere/python3
Use python3
2022-06-10 19:02:13 +03:00
Hugo van Kemenade
1c810bea52
Merge pull request #6301 from radarhere/pytest
Added pytest-timeout to test dependencies
2022-06-10 18:45:49 +03:00
Hugo van Kemenade
3a61c9e95e
Merge pull request #6350 from radarhere/remap_rgba_palette 2022-06-10 18:43:09 +03:00
Hugo van Kemenade
355820742b
Merge pull request #6354 from radarhere/libtiff
Revert "Skip test_realloc_overflow unless libtiff 4.0.4 or higher"
2022-06-08 13:48:04 +03:00
Andrew Murray
1c0bc81a65 Revert "Skip test_realloc_overflow unless libtiff 4.0.4 or higher" 2022-06-08 17:51:44 +10:00
Andrew Murray
7972671368
Merge pull request #6353 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-06-07 08:47:46 +10:00
pre-commit-ci[bot]
2394ff564c
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/Lucas-C/pre-commit-hooks: v1.1.13 → v1.2.0](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.1.13...v1.2.0)
2022-06-06 17:31:04 +00:00
Andrew Murray
11be163143 Added apply_transparency() 2022-06-06 22:47:58 +10:00
Hugo van Kemenade
418820a1e8
Merge pull request #6341 from radarhere/imagedraw
Only import ImageFont in ImageDraw when necessary
2022-06-05 22:25:10 +03:00
Andrew Murray
4c8aff9798 Allow remapping P images with RGBA palettes 2022-06-06 00:12:48 +10:00
mergify[bot]
b37f2d1063
Merge pull request #6347 from hugovk/fix-sphinx-warning
Fix Sphinx 5 warning by setting docs language
2022-06-04 07:42:46 +00:00
Andrew Murray
6a5692483c Update CHANGES.rst [ci skip] 2022-06-04 16:42:26 +10:00
Hugo van Kemenade
3b2f076b6f Fix WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid langauge code. Falling back to 'en' (English). 2022-06-04 09:38:06 +03:00
Hugo van Kemenade
38931c1e47
Merge pull request #6278 from radarhere/polygon
Fixed drawing translucent 1px high polygons
2022-06-04 09:34:37 +03:00
Hugo van Kemenade
b43cfce667
Merge pull request #6346 from radarhere/releasenotes
Include #6178 in release notes
2022-06-03 14:08:39 +03:00
Andrew Murray
b9df9662d6 Include #6178 in release notes 2022-06-03 19:01:36 +10:00
Hugo van Kemenade
05d979d37d
Merge pull request #6345 from raygard/winbuild_use_sourceforge_auto_mirror
Use SourceForge auto mirror capability
2022-06-02 21:26:11 +03:00
pre-commit-ci[bot]
86e49f42eb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-06-01 22:29:29 +00:00
Ray Gardner
80b3ee79bd Update build_prepare.py
Use SourceForge auto mirror capability.
2022-06-01 16:25:27 -06:00
Andrew Murray
561d7ca9e0 Update CHANGES.rst [ci skip] 2022-06-02 08:02:42 +10:00
Hugo van Kemenade
55d3c07e1d
Merge pull request #6232 from radarhere/colormap 2022-06-01 23:12:13 +03:00
Hugo van Kemenade
37c642338b
Merge pull request #6337 from RedShy/p2pa_images_conversion
Fix "P"->"PA" image conversion
2022-06-01 22:17:55 +03:00
Hugo van Kemenade
b261e17907
Merge pull request #6335 from radarhere/exif 2022-06-01 16:36:03 +03: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
Hugo van Kemenade
8bffead473
Merge pull request #6316 from radarhere/macos
Updated macOS tested Pillow versions
2022-05-30 13:59:34 +03:00
Andrew Murray
e96177451e Only import ImageFont when necessary 2022-05-30 19:36:36 +10:00
Andrew Murray
753da81757
Merge pull request #6340 from hugovk/sphinx-lint
Add Sphinx Lint to pre-commit and fix RST bug
2022-05-30 08:54:51 +10:00
Hugo van Kemenade
d78042dfc0
Merge pull request #6223 from radarhere/precommit
pre-commit autoupdate
2022-05-29 18:48:02 +02:00
Hugo van Kemenade
f90caabdbc Remove sentence fragment 2022-05-29 19:23:39 +03:00
Hugo van Kemenade
880dee7e1d Fix missing inline literal (escaped) space after literal (missing-space-after-literal) 2022-05-29 19:11:21 +03:00
Hugo van Kemenade
a5ceb746b0 Add sphinx-lint to pre-commit 2022-05-29 19:10:35 +03:00
Hugo van Kemenade
8aa1a9d291 Autoupdate pre-commit monthly 2022-05-29 13:57:19 +03:00
Andrew Murray
6bb6f93702 Updated libtiff to 4.4.0 2022-05-28 21:18:48 +10:00
mergify[bot]
a50addb8e2
Merge pull request #6339 from radarhere/libtiff
Updated libtiff to 4.4.0
2022-05-28 11:15:39 +00:00
Andrew Murray
40a918d274 Set readcount to TIFF_VARIABLE for a variable number of values 2022-05-28 20:14:05 +10:00
Andrew Murray
0a4a7722b5 Updated libtiff to 4.4.0 2022-05-28 18:37:11 +10:00
Andrew Murray
dc5a2a1fc9 Update CHANGES.rst [ci skip] 2022-05-28 18:36:46 +10:00
Davide Consalvo
7f39a21910
Merge pull request #1 from radarhere/p2pa_images_conversion
Only test alpha channel values
2022-05-28 10:01:20 +02:00
Andrew Murray
71d6a7b14f
Merge pull request #6303 from radarhere/disconnected
Only try to connect discontiguous corners at the end of edges
2022-05-28 16:40:00 +10:00
Hugo van Kemenade
9c25fc6042
Merge pull request #6338 from radarhere/emf
Added EMF and SUN to list of supported file formats
2022-05-28 08:11:43 +02:00
Andrew Murray
cb4b5f212d Separated test 2022-05-28 15:25:19 +10:00
Andrew Murray
b0bc74a297 Only test alpha channel values 2022-05-28 09:24:42 +10:00
Andrew Murray
c8529b60de Added EMF and SUN [ci skip] 2022-05-28 00:13:50 +10:00
Davide Consalvo
84da70988f
Merge branch 'python-pillow:main' into p2pa_images_conversion 2022-05-27 12:37:43 +02:00
Davide Consalvo
9a14be898c added p2pa test 2022-05-27 12:34:05 +02:00
Davide Consalvo
6a071f81d7 fixed p2pa conversion 2022-05-27 12:24:19 +02:00
Andrew Murray
8b84e4c3d0 Update CHANGES.rst [ci skip] 2022-05-27 19:02:43 +10:00
Hugo van Kemenade
27f5c4d8fb
Merge pull request #6176 from radarhere/gif_transparency
Improve transparency handling when saving GIF
2022-05-27 08:31:37 +02:00
Hugo van Kemenade
0476914ee4
Merge pull request #6219 from radarhere/gif_eof
Do not update GIF frame position until local image is found
2022-05-27 08:29:38 +02:00
Hugo van Kemenade
19aa2b60fc
Merge pull request #6325 from radarhere/gif_comment
Once a GIF comment is loaded, it is kept for subsequent frames
2022-05-27 08:23:10 +02:00
Hugo van Kemenade
69f1b4a699
Merge pull request #6211 from radarhere/gif_loop
Netscape GIF extension belongs after the global color table
2022-05-27 08:22:01 +02:00
Andrew Murray
b1885779a9 Once exif data is parsed, do not reload unless it changes 2022-05-27 07:54:54 +10:00
Hugo van Kemenade
c34d78934f
Merge pull request #6333 from radarhere/discussions
Link to GitHub discussions in CONTRIBUTING
2022-05-26 09:19:33 +02:00
Andrew Murray
961e16fa24 Link to GitHub discussions [ci skip] 2022-05-25 22:14:29 +10:00
nulano
dacd5d6eb9
add decref calls to imagingft to fix #6321 2022-05-24 16:36:30 +01:00
nulano
09da6fa73b
inline fname2char to fix #6319 2022-05-24 16:15:01 +01:00
Andrew Murray
2457eafabd Only read the number of loops from the first frame 2022-05-24 12:53:19 +10:00
Andrew Murray
5cf02f816f Moved Netscape extension after global color table when saving 2022-05-24 12:53:03 +10:00
Andrew Murray
26c79343ec Update CHANGES.rst [ci skip] 2022-05-24 08:55:45 +10:00
Andrew Murray
9188c81e5f Once a GIF comment is loaded, it is kept for subsequent frames 2022-05-24 08:50:51 +10:00
Andrew Murray
06b0e64fc9
Merge pull request #6300 from raygard/comment_correct_placement
Only write GIF comments at the beginning of the file
2022-05-24 08:44:11 +10:00
Ray Gardner
4cdbeaf2cf
Merge pull request #2 from radarhere/comment_correct_placement
Once comment is loaded, keep it for subsequent frames
2022-05-23 11:54:57 -06:00
Andrew Murray
0fb76f92d0 Updated auditwheel to include auditwheel#376 2022-05-23 23:06:52 +10:00
Hugo van Kemenade
68e39cba43
Merge pull request #6313 from radarhere/documentation
Improved image file formats documentation
2022-05-23 08:22:08 +02:00
Andrew Murray
62d0f0e38d Once comment is loaded, keep it for subsequent frames 2022-05-22 15:30:16 +10:00
Andrew Murray
67f5e5d272 Test an empty string comment in arguments removes existing comment 2022-05-22 15:01:28 +10:00
Andrew Murray
db76eaa12c
Merge branch 'main' into comment_correct_placement 2022-05-22 14:56:57 +10:00
Andrew Murray
30a0e448c1 Update CHANGES.rst [ci skip] 2022-05-22 14:54:47 +10:00
Andrew Murray
e9cb2156ec
Merge pull request #6294 from raygard/comments_separate_multiple
Separate multiple GIF comment blocks in a frame with newlines
2022-05-22 14:53:03 +10:00
Andrew Murray
62d5817e29 Changed delimiter to \n 2022-05-22 14:11:11 +10:00
Andrew Murray
99f4623a8d Remove transparency if it cannot be remapped 2022-05-21 17:39:37 +10:00
Andrew Murray
46a80d144a Update transparency when remapping the palette 2022-05-21 16:37:47 +10:00
Andrew Murray
7921e19a27 Updated macOS tested Pillow versions [ci skip] 2022-05-21 15:10:08 +10:00
Hugo van Kemenade
22d797fd81
Merge pull request #6315 from radarhere/harfbuzz
Updated harfbuzz to 4.3.0
2022-05-21 07:20:49 +03: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
91f0927e6f Update CHANGES.rst [ci skip] 2022-05-21 10:25:19 +10:00
Andrew Murray
2072a52bb5
Merge pull request #6292 from raygard/comment_use_gif89a
Always use GIF89a for comments
2022-05-21 10:24:14 +10:00
Andrew Murray
cd9595e611 Updated harfbuzz to 4.3.0 2022-05-21 10:16:00 +10:00
Andrew Murray
bf65544d2e Updated harfbuzz to 4.3.0 2022-05-21 10:15:00 +10:00
Ray Gardner
882c04b08a
Merge pull request #1 from radarhere/comment_use_gif89a
Simplified version check
2022-05-20 11:50:17 -06:00
Andrew Murray
5cb007fdf1 Update CHANGES.rst [ci skip] 2022-05-21 00:07:12 +10:00
Hugo van Kemenade
33f00c9ca8
Merge pull request #6231 from radarhere/bmp_compression
Ignore compression value from BMP info dictionary when saving as TIFF
2022-05-20 16:18:15 +03:00
Andrew Murray
7c031e9279 Clarified sentence [ci skip] 2022-05-20 19:30:50 +10:00
Andrew Murray
533c907329 Updated example in light of #3203 2022-05-20 19:21:12 +10:00
Andrew Murray
3efe34463e Clarified that LZW encoding is always used for GIFs [ci skip] 2022-05-20 19:10:51 +10:00
Andrew Murray
89f5a7d5af Update CHANGES.rst [ci skip] 2022-05-20 08:51:57 +10:00
Hugo van Kemenade
fbb74a6050
Merge pull request #6234 from radarhere/font_variant
If font is file-like object, do not re-read from object to get variant
2022-05-19 23:30:44 +03:00
Hugo van Kemenade
2c58c3ee11
Merge pull request #6213 from radarhere/fp 2022-05-19 18:52:55 +03:00
Andrew Murray
5246a179e0 Update CHANGES.rst [ci skip] 2022-05-19 21:07:21 +10:00
Andrew Murray
80782bba9b
Merge pull request #6254 from benrg/affine-transform
Support more affine expression forms in im.point()
2022-05-19 21:06:04 +10:00
Andrew Murray
138bd280e4 Added check to test_comment as well 2022-05-19 20:59:32 +10:00
Andrew Murray
98329354e0 Simplified version check 2022-05-19 20:59:16 +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
6bb408c962
Merge pull request #6306 from radarhere/jammy
Upgrade non-amd64 Ubuntu jobs to Jammy
2022-05-18 07:12:20 +03:00
Andrew Murray
69e07c2bf9 Upgrade non-amd64 Ubuntu jobs to Jammy 2022-05-18 10:11:52 +10:00
Andrew Murray
ddc7591ef2
Merge pull request #6305 from hugovk/make-sdist
Include 'twine check' in 'make sdist'
2022-05-18 09:27:33 +10:00
Hugo van Kemenade
77aad732d1
Ensure twine is installed
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-05-18 01:11:31 +03:00
Hugo van Kemenade
385af47cf1 Include 'twine check' in 'make sdist' 2022-05-17 22:47:01 +03:00
Hugo van Kemenade
ef8cec6185
Merge pull request #6256 from radarhere/furthestV
Ensure that furthest v is set in quantize2
2022-05-17 20:04:50 +03:00
Hugo van Kemenade
1ed3e6132c Pillow -> 9.1.1 2022-05-17 14:44:10 +03:00
Andrew Murray
1a286627b4 Skip test_realloc_overflow unless libtiff 4.0.4 or higher 2022-05-17 13:17:01 +03:00
Andrew Murray
43e2ee0433 Added release notes for 9.1.1 2022-05-17 13:15:42 +03:00
Andrew Murray
f0353c5996 When reading past the end of a scan line, reduce bytes left 2022-05-17 11:53:24 +03:00
Andrew Murray
c7f5b4c2da Documented deprecation 2022-05-17 17:31:18 +10:00
Andrew Murray
62c7ee0f00 Only try to connect discontiguous corners at the end of edges 2022-05-16 22:31:49 +10:00
Andrew Murray
b9a5944058 Added pytest-timeout to test dependencies 2022-05-16 08:56:45 +10: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
Ray Gardner
6257e788ad
Update test_file_gif.py
Changed to use a test image already in Images folder
2022-05-14 11:57:41 -06:00
pre-commit-ci[bot]
416de882e4 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-05-14 15:36:54 +00:00
Andrew Murray
341d9b1fd2 Upgrade openjpeg to 2.5.0 on macOS x86_64 2022-05-14 20:54:49 +10:00
mergify[bot]
638ba163f4
Merge pull request #6296 from Yulv-git/typos1
Fix some typos
2022-05-14 10:00:50 +00:00
Yulv-git
a0fa540b0b Fix some typos. 2022-05-14 12:46:46 +08: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
Hugo van Kemenade
0805f2ae14
Merge pull request #6295 from radarhere/openjpeg 2022-05-14 07:33:53 +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
815839631e Updated openjpeg to 2.5.0 2022-05-14 10:11:42 +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
Ray Gardner
22d9095e5c Correct placement of GIF comment
Place GIF comment after Global Color table. Should go after "NETSCAPE" looping extension after pull #6211.
2022-05-13 17:09:37 -06:00
Ray Gardner
44c6467400 Multiple GIF comments in a frame are separated
If more than one comment is in a GIF frame, separate them with \r\n in the info dict.
2022-05-13 16:36:20 -06:00
Ray Gardner
b3d29e946a Always use GIF89a for long comments
Fix bug that allows GIFs with long comments to be written as GIF87a.
2022-05-13 11:33:33 -06: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
Hugo van Kemenade
c4325c805e
Merge pull request #5878 from DWesl/add-cygwin-to-ci 2022-05-12 14:23:04 +03:00
DWesl
30db27c3aa
CI: Only invoke bash once for build step.
Let's see if this works.

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-05-11 08:01:02 -04:00
DWesl
63cd3cb76b
Merge pull request #9 from radarhere/add-cygwin-to-ci
Added Cygwin badge
2022-05-10 15:26:36 -04:00
Hugo van Kemenade
9c580ce649
Merge pull request #6286 from radarhere/fedora 2022-05-10 18:31:27 +03:00
Hugo van Kemenade
b2b294bbfa
Merge pull request #6284 from radarhere/xfail
Replaced test image to fix xfail
2022-05-10 14:14:20 +03:00
Andrew Murray
1dff85a7ee Added Fedora 36 2022-05-10 20:57:36 +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
3bce17175c Replaced test image to fix xfail 2022-05-09 22:30:04 +10: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
Andrew Murray
18e1005fbf Update CHANGES.rst [ci skip] 2022-05-09 21:35:28 +10:00
Hugo van Kemenade
5e0e1e4114
Merge pull request #6283 from radarhere/palette
Populate Python palette in fromarray()
2022-05-09 14:32:34 +03:00
Andrew Murray
ef8fd7f8b9 Populate Python palette in fromarray() 2022-05-09 18:50:54 +10:00
Andrew Murray
0c7868b8cd Added Cygwin badge 2022-05-08 21:40:46 +10:00
Andrew Murray
035e95551d Use build.sh 2022-05-08 21:38:28 +10:00
Andrew Murray
c919db11a8 Install cffi 2022-05-08 21:38:21 +10:00
Hugo van Kemenade
134023796e
Merge pull request #6280 from radarhere/macos
Updated macOS tested Pillow versions
2022-05-07 17:52:50 +03:00
Andrew Murray
c6cdd4dd52 Adjust formatting 2022-05-07 23:13:41 +10:00
Andrew Murray
dc4906c865 Updated codecov action to v3 2022-05-07 22:50:30 +10:00
Andrew Murray
740695e802 Updated macOS tested Pillow versions 2022-05-07 22:29:18 +10:00
DWesl
c5356010ff
Merge pull request #8 from radarhere/add-cygwin-to-ci
Removed steps that are currently unnecessary.  Hopefully they stay that way.
2022-05-07 07:46:41 -04:00
DWesl
7c97d84576
CI: Stop testing numpy imports
Install seems to be working now.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-05-07 07:42:40 -04:00
Hugo van Kemenade
b5a8ec56c0
Merge pull request #6264 from radarhere/turbo
libjpeg-turbo may result in different pixels
2022-05-07 09:33:58 +03:00
Andrew Murray
a5b20f7a34 Removed setting alternative 2022-05-07 15:29:49 +10:00
Andrew Murray
eee481176d Removed DLL rebase 2022-05-07 14:52:28 +10:00
DWesl
b670df828d
STY: Fix English in .github/workflows/test-cygwin.yml
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-05-06 22:43:03 -04:00
Andrew Murray
1fd5f54450 Update CHANGES.rst [ci skip] 2022-05-07 08:30:14 +10:00
Hugo van Kemenade
6b05a28482
Merge pull request #6253 from radarhere/png_chunk_length
Raise ValueError if PNG chunks are truncated
2022-05-07 00:29:38 +03:00
Hugo van Kemenade
f84684931d
Merge pull request #6265 from radarhere/gif_duration
Use durations from each frame by default when saving GIFs
2022-05-06 18:44:01 +03:00
Andrew Murray
c824ab048f Fixed drawing translucent 1px high polygons 2022-05-06 22:35:26 +10:00
Andrew Murray
3005ea1ef3 Merge branch 'main' into add-cygwin-to-ci 2022-05-06 10:51:24 +10:00
Hugo van Kemenade
3fa89f09eb
Merge pull request #6274 from radarhere/imagetk
Skip test_imagetk if tk raises a RuntimeError
2022-05-05 23:41:55 +03:00
DWesl
2067f60409 STY: Commit suggestions from PR review. 2022-05-05 15:21:22 -04:00
Andrew Murray
45f862e7dc Update CHANGES.rst [ci skip] 2022-05-05 21:32:27 +10:00
Hugo van Kemenade
779fb4975b
Merge pull request #6270 from radarhere/samples_per_pixel
Adjust BITSPERSAMPLE to match SAMPLESPERPIXEL
2022-05-05 14:22:19 +03:00
Andrew Murray
4e52d06e6c Added test 2022-05-05 17:57:08 +10:00
Andrew Murray
3ad3d2e0ef Update CHANGES.rst [ci skip] 2022-05-05 09:57:39 +10:00
Andrew Murray
26e68ed321 Skip test_imagetk if tk raises a RuntimeError 2022-05-05 08:16:06 +10:00
DWesl
941ff61f17
CI: Drop 32-bit Cygwin from regular testing
Cygwin recommends using 64-bit if at all possible, and will discontinue support entirely within the next year or so.  

This also reduces CI load, which I suppose is polite to those who provide it at no cost.
2022-05-04 09:23:24 -04:00
Hugo van Kemenade
e42d8b0890
Merge pull request #6261 from radarhere/stderr
Hide stderr from --keep-system-libs
2022-05-04 16:22:52 +03:00
Hugo van Kemenade
3aef70ce39
Merge pull request #6269 from radarhere/jpeg2k 2022-05-04 15:52:32 +03:00
Andrew Murray
4dc1a55f65 Adjust BITSPERSAMPLE to match SAMPLESPERPIXEL 2022-05-04 22:11:10 +10:00
Andrew Murray
886fcbe3d6 Do not open images with zero or negative height 2022-05-04 21:25:40 +10:00
Ben Rudiak-Gould
48f763a378 Manually merge radarhere's additional tests 2022-05-03 13:53:50 -07:00
Ben Rudiak-Gould
88f46f3c99 Add a comment 2022-05-03 13:42:04 -07:00
Andrew Murray
46802d5def Removed unused import and restored existing checks (#1)
* Removed unused import

* Restored existing checks

* Restored coerce_e, _E and data property

* Deprecated coerce_e

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2022-05-03 13:05:39 -07:00
Ben Rudiak-Gould
4e12ccc63e Support more affine expression forms in Image.point
In modes I and F, Image.point only supported affine expressions of the
forms (lambda x:) x * a, x + a, and x * a + b. Expressions like 1 - x
had to be written x * -1 + 1.

This rewrite, though still limited to affine transformations, supports
far more expression forms, including 1 - x, (2 * x + 1) / 3, etc.
2022-05-03 13:05:39 -07:00
Andrew Murray
7e084c7ede Use durations from each frame by default when saving 2022-05-03 20:07:47 +10:00
Andrew Murray
a90d9666fb libjpeg-turbo may result in different pixels 2022-05-03 19:20:58 +10:00
DWesl
0b134250fa
CI: Use alternatives to select python version (#4)
* CI: Use alternatives to select python version

* CI: Specify full path to alternatives

/usr/sbin isn't in PATH

* DBG: Print uname to try to avoid bad pip install.

pip>=22 on 32-bit Cygwin seems to cause problems installing coverage.  I have no idea why this is, so I just skip upgrading pip there.

* FIX: Fix syntax of conditional for 32-bit Cygwin

I have no idea if it needs to be able to accept i386, but it will if it comes up.

* FIX: Revert earlier debug change.
2022-05-02 20:38:12 -04:00
Andrew Murray
0c1720d358 Hide stderr from --keep-system-libs 2022-05-03 09:19:09 +10:00
DWesl
ce7489884f
CI: Update Cygwin pip, but not on 32-bit
* CI: Update Cygwin pip, but not on 32-bit

32-bit Cygwin pip>=22 fails to install coverage.

* CI: Let .ci/install.sh handle updating pip

* CI Combine pip update conditions

* CI: Don't try to upgrade pip on 32-bit Cygwin
2022-05-02 17:54:49 -04:00
Andrew Murray
9d988dab6a Update CHANGES.rst [ci skip] 2022-05-02 21:11:01 +10:00
Andrew Murray
0a30e431d2
Merge pull request #6138 from jameshilliard/fix-pkg-config
Search pkgconf system libs/cflags
2022-05-02 21:09:45 +10:00
Andrew Murray
dac49dc5ef
Merge pull request #6198 from MaxFork/improve-changeslog
Convert pre-fork CHANGES to RST
2022-05-02 19:24:01 +10:00
Andrew Murray
44bb3e62df Update CHANGES.rst [ci skip] 2022-05-02 08:23:19 +10:00
Hugo van Kemenade
87c2373265
Merge pull request #6242 from radarhere/ppm_maxval 2022-05-01 21:21:52 +03: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
44494a1171 Set furthestV to first v in case compute_distances does not assign it 2022-05-01 23:32:47 +10:00
Andrew Murray
b299d7cfc2 Simplified code by using unsigned int instead of union 2022-05-01 23:32:47 +10:00
mergify[bot]
31800a0213
Merge pull request #6255 from radarhere/freetype
Updated freetype to 2.12.1
2022-05-01 12:37:26 +00:00
Andrew Murray
47756b9bcd Updated freetype to 2.12.1 2022-05-01 21:57:59 +10:00
Andrew Murray
9f5eafd3ab Updated freetype to 2.12.1 2022-05-01 21:56:20 +10:00
Andrew Murray
51bdc99b96 Raise ValueError if PNG chunks are truncated 2022-05-01 13:45:58 +10:00
DWesl
143e57b6cd
CI: Specify python minor version everywhere on Cygwin
Finish the last few of these.  It's usually unnecessary, but I ran into trouble once with NumPy, and will likely run into more problems if I start submitting packages.

A different option would be to use alternatives to point python3 at the right python.
2022-04-29 20:40:57 -04:00
Andrew Murray
81b473f9d2 Raise ValueError for invalid maxval 2022-04-30 10:37:50 +10:00
DWesl
3453b0ea5d
Merge pull request #3 from radarhere/add-cygwin-to-ci
Do not install NumPy on Python 3.11

So that's how I was supposed to resolve that merge conflict.  Thank you.
2022-04-29 20:36:35 -04:00
Andrew Murray
2d25e668e7 Do not install NumPy on Python 3.11 2022-04-30 10:19:48 +10:00
DWesl
08e0d0b817
CI: Use bash for rebase step
Hopefully this makes sure rebase finds all of pillow's C extension modules so rebase failures are less likely.
2022-04-29 13:15:04 -04:00
DWesl
88c406eac9
CI: Stop using login shell for build step 2022-04-29 12:57:52 -04:00
DWesl
e0f4c21d01
CI: Remind bash to ignore CR in workflow 2022-04-29 12:36:05 -04:00
DWesl
41976ae125
FIX: Fix syntax for shell call 2022-04-29 11:34:13 -04:00
DWesl
ed0c37d528
CI: Don't use shell for build information 2022-04-29 11:27:01 -04:00
DWesl
91e6457360
CI: Stop using login shell for build info
I should probably avoid login shells in any step that uses a relative path.
2022-04-29 10:53:19 -04:00
DWesl
afa3cea96a
Merge branch 'main' into add-cygwin-to-ci 2022-04-29 10:43:30 -04:00
DWesl
fdbab82f9e
CI: Use dash to check system-info.py
This may be a problem with using a login shell (starts in ~) rather than with using bash over dash.  We'll see in a bit.
2022-04-29 09:54:23 -04:00
Hugo van Kemenade
7d5162cb37
Merge pull request #6250 from radarhere/jpeg2000 2022-04-29 13:54:00 +03:00
Andrew Murray
9c9aa9964e Skip tests unless JPEG 2000 is available 2022-04-29 19:17:03 +10:00
Andrew Murray
489d6f32f1
Merge pull request #6249 from hugovk/3.11-dev
Test Python 3.11-dev
2022-04-29 18:22:30 +10:00
Hugo van Kemenade
f4d2082a27
Fix for RST rendering
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-29 10:33:49 +03:00
Hugo van Kemenade
b4dab3aca3 Test Python 3.11-dev 2022-04-28 23:15:38 +03:00
Max Base
3afd0959c0
Merge pull request #2 from radarhere/improve-changeslog
Updated RST formatting
2022-04-28 15:27:56 +05:30
Andrew Murray
2613429e24
Merge pull request #6247 from radarhere/link
Updated URL
2022-04-28 09:46:36 +10:00
Hugo van Kemenade
d42efd7ec0
Update URL (#16) 2022-04-28 08:26:57 +10:00
Max Base
87e4ffcc59
Update CHANGES.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-27 18:19:04 +04:30
Andrew Murray
a50c3957df Updated URL 2022-04-27 22:28:10 +10:00
Andrew Murray
ea24341c5f Use bold syntax 2022-04-27 22:09:42 +10:00
Andrew Murray
5a8b8b95f6 Use literal code blocks 2022-04-27 22:09:36 +10:00
Andrew Murray
9830abd19e Formatted script improvements as table 2022-04-27 22:09:29 +10:00
Andrew Murray
09b27753e5 Clarify that 0.2b1 was released for Windows only, not 0.2b2 2022-04-27 22:09:21 +10:00
Andrew Murray
0edfea0bbc Changed indents and kept line length 2022-04-27 22:08:52 +10:00
Hugo van Kemenade
73646ad9d2
Merge pull request #6243 from radarhere/webp
Test invalid WebP background colors
2022-04-26 21:14:27 +03:00
Hugo van Kemenade
7c9fa63093
Merge pull request #6246 from radarhere/all_frames
Added all_frames() to documentation
2022-04-26 21:12:29 +03:00
Andrew Murray
6ec9dfb9c0 If an exception is raised, try again without system paths 2022-04-26 11:14:31 -06:00
James Hilliard
9ea4624704 Search pkg-config system libs/cflags.
We need to search the system paths as well from pkg-config for
some packages to be found properly.
2022-04-26 11:12:52 -06:00
Andrew Murray
a2b74b04eb Update CHANGES.rst [ci skip] 2022-04-26 20:54:08 +10:00
Andrew Murray
bb879d7b41
Merge pull request #6244 from axt-one/fix-darwin-screencapture-bug
Corrected screencapture argument in ImageGrab.grab()
2022-04-26 20:53:07 +10:00
Andrew Murray
5da5cafb31 Added all_frames() to documentation 2022-04-26 20:33:29 +10:00
axt-one
9fb0087ec2 modified screencapture option in ImageGrab.grab() 2022-04-26 18:04:08 +09:00
Andrew Murray
f64dd53897 Test invalid WebP background colors 2022-04-26 18:55:54 +10:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
Cleanup: various
2022-04-26 18:51:44 +10:00
Hugo van Kemenade
42a81c4173
Merge pull request #6239 from radarhere/ppm_token
Decode bytes before passing to f-string
2022-04-26 09:14:20 +03:00
Hugo van Kemenade
2f2cb6724e
Merge pull request #6235 from Iniquitatis/patch-1
Fixed enum typo
2022-04-26 08:36:46 +03:00
Andrew Murray
5fc64efb7a Merge remote-tracking branch 'radarhere/typo' into patch-1 2022-04-26 08:00:35 +10:00
Hugo van Kemenade
64880ab8d5
Merge pull request #88 from radarhere/cleanup 2022-04-25 22:06:52 +03:00
Hugo van Kemenade
79e8eba3f8
Docs: spacing
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-25 18:13:50 +03:00
Andrew Murray
5d4258e72b Simplified index slicing 2022-04-25 22:52:29 +10:00
Andrew Murray
139e1e81cc Update CHANGES.rst [ci skip] 2022-04-25 11:18:31 +10:00
Andrew Murray
853a95d56b
Merge branch 'main' into add-cygwin-to-ci 2022-04-25 11:00:09 +10:00
Andrew Murray
9490509784
Merge pull request #6237 from hugovk/deprecate-qt5
Deprecate support for Qt 5 (PyQt5 and PySide2)
2022-04-25 10:03:35 +10:00
mergify[bot]
439d197add
Merge pull request #6241 from insumanth/mandelbrot_typo
Update Image.py docstring
2022-04-24 23:48:35 +00:00
Sumanth
f77aabf281
Update Image.py docstrings.
Update Image.py file with  a typo in effect_mandelbrot method.
The Typo was in docstrings of the effect_mandelbrot method in Image module of PIL.
2022-04-24 18:42:37 +05:30
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
5867e0bbac Decode bytes before passing to f-string 2022-04-24 15:42:45 +10:00
Hugo van Kemenade
889ceedfb9
Ignore warning
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-24 08:28:21 +03:00
Hugo van Kemenade
25b69f6578
Merge pull request #6238 from radarhere/harfbuzz
Updated harfbuzz to 4.2.1
2022-04-24 08:26:11 +03:00
Andrew Murray
83281c778d Updated harfbuzz to 4.2.1 2022-04-24 14:12:25 +10:00
Andrew Murray
53a8e747cd Updated harfbuzz to 4.2.1 2022-04-24 14:12:03 +10:00
Hugo van Kemenade
b32641a7c5
Merge pull request #87 from radarhere/deprecate-qt5
Run deprecated import check before imports from other tests
2022-04-23 16:30:52 +03:00
DWesl
9fb79513a2 FIX, CI: Change shell to stay in repository. 2022-04-23 08:51:09 -04:00
DWesl
46c1f9389e CI: Update pip before installing dependencies.
Avoid pip warnings.
2022-04-23 08:33:13 -04:00
DWesl
1674e425a7 CI: Sort the Cygwin requirements. 2022-04-23 08:33:13 -04:00
DWesl
7605e46011 CI: Set shell for Cygwin CI steps
Allows me to avoid .ci/build_cygwin.sh
2022-04-23 08:31:51 -04:00
Max Base
a1972168cc
Update CHANGES.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-23 12:24:09 +04:30
Max Base
4deb85389f
Update CHANGES.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-23 12:24:03 +04:30
Andrew Murray
47cf0296c3 Updated to PyQt6 2022-04-23 10:22:29 +10:00
Andrew Murray
40711f9edb Run deprecated import check before imports from other tests 2022-04-23 08:01:02 +10:00
Andrew Murray
dd7cbdec95
Merge pull request #6233 from python-pillow/pipfile
Run Tidelift Align on Pipfile changes
2022-04-23 06:44:54 +10:00
Hugo van Kemenade
f854d7f7c9 Deprecate support for Qt 5 (PyQt5 and PySide2). Use Qt 6 (PyQt6 or PySide6) instead. 2022-04-22 15:56:11 +03:00
DWesl
805e8f10ba
CI: Try to fix Cygwin pip cache 2022-04-22 08:25:46 -04:00
Hugo van Kemenade
7db6a5a48e
Merge pull request #6236 from radarhere/jammy
Added Ubuntu 22.04 to Docker jobs
2022-04-22 13:46:26 +03:00
Andrew Murray
a7438ecaf0 Added Ubuntu 22.04 to Docker jobs 2022-04-22 17:35:20 +10:00
Andrew Murray
21c91c1a36 Fixed typo [ci skip] 2022-04-22 08:46:27 +10:00
Dominus Iniquitatis
9145c778ec
Fixed a typo in 9.1.0 changelog 2022-04-22 01:20:34 +03:00
Andrew Murray
a40c7a6bea If font is file-like object, do not re-read from object to get variant 2022-04-22 07:31:20 +10:00
DWesl
c1d3bac917
CI: Fix runner username for pip cache 2022-04-21 10:26:12 -04:00
Andrew Murray
de1ba373e1 Update CHANGES.rst [ci skip] 2022-04-21 22:10:55 +10:00
Andrew Murray
ebb5ed9d92
Merge pull request #6224 from AlexTedeschi/patch-1
Increase wait time of temporary file deletion on Windows
2022-04-21 22:07:59 +10:00
Andrew Murray
df4ddc1d84 Run Tidelift Align on Pipfile changes 2022-04-21 12:05:47 +03:00
Andrew Murray
1e3fdb3055 Pad COLORMAP to 768 items 2022-04-21 11:29:17 +10:00
DWesl
be6dd712ba
Ci: Simplify Cygwin pip cache
This might pave the way for caching the Cygwin install, which might speed things up a bit.
2022-04-20 20:48:57 -04:00
Andrew Murray
2c5e5049db Ignore compression value from BMP info dictionary 2022-04-21 07:58:12 +10:00
DWesl
bd61d1ef1b
FIX, CI: Actually run pip 2022-04-20 10:28:02 -04:00
DWesl
97e6197e9f
CI: Set up cache for Cygwin pip
Copied from the MIT-licensed:
https://github.com/actions/cache/blob/main/examples.md#using-pip-to-get-cache-location
2022-04-20 10:17:45 -04:00
Hugo van Kemenade
c6637bc4de
Merge pull request #6228 from radarhere/fribidi
Updated fribidi to 1.0.12
2022-04-20 08:54:00 +03:00
Hugo van Kemenade
2122489db9
Merge pull request #6229 from radarhere/libtiff
Skip tests unless libtiff is available
2022-04-20 08:52:13 +03:00
Andrew Murray
0374d6190b Skip tests unless libtiff is available 2022-04-20 11:10:48 +10:00
Andrew Murray
acc0fa0d79
Merge pull request #6227 from raygard/main
Update GIF encoding information
2022-04-20 09:21:29 +10:00
Andrew Murray
110238bccb Updated fribidi to 1.0.12 2022-04-20 08:37:45 +10:00
Ray Gardner
b01a2effd2 Update image-file-formats.rst
Correct encoding of GIF files from run-length to LZW.
2022-04-19 13:40:56 -06: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
46ba6b51de
Merge pull request #6215 from kolibril13/readURL
Add example to read image from URL
2022-04-19 07:51:33 +10:00
Andrew Murray
6674ee6f5a multibuild now considers PLAT when selecting focal test images 2022-04-19 07:21:32 +10:00
Alex Tedeschi
4279c74289
Increase wait time of temporary file deletion
Increase wait time to 4 seconds from 2 seconds for the deletion of the temporary file made from .show(). The Windows default image viewer at times can take longer than 2 seconds to open and display an image causing the image to never display for the user.
2022-04-18 16:23:50 -04:00
Hugo van Kemenade
bf46c6a648
Fix docstring
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-18 07:42:05 +03:00
Andrew Murray
189c9362fc pre-commit autoupdate 2022-04-18 14:40:12 +10:00
Andrew Murray
23560348c1
Use python3 in build system information
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-18 14:37:00 +10:00
Andrew Murray
232df4734e Tests directory does not need to be specified 2022-04-18 13:01:07 +10:00
Andrew Murray
e8b2b9baca Use python3 2022-04-18 12:53:55 +10:00
Andrew Murray
a33dc56560
Merge pull request #6220 from nulano/deprecate-fill
Deprecate FreeTypeFont.getmask2 fill parameter
2022-04-18 08:05:10 +10:00
Ondrej Baranovič
995be34ddb
flip so the conditional is positive
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-17 19:27:14 +02:00
nulano
ab86bdda0a
fix deprecation test 2022-04-17 16:03:53 +02:00
Andrew Murray
c87c2cf5b3 Added removal date for fill parameter 2022-04-17 10:03:50 +02:00
Andrew Murray
2a29b2dba1 Document that fill parameter is optional 2022-04-17 10:03:50 +02:00
Andrew Murray
98e995f6c7 FreeTypeFont.getmask2 fill parameter has been deprecated 2022-04-17 10:03:50 +02:00
Hugo van Kemenade
2dd848ca4f
Include deprecation removal date
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-17 08:06:28 +03:00
Andrew Murray
e62449f94c Added DeferredError to _fp 2022-04-17 12:14:53 +10:00
Andrew Murray
f18688e84e Removed unused variable 2022-04-17 12:13:58 +10:00
Andrew Murray
4e075adcc5 Merged _close_fp into close and __exit__ 2022-04-17 12:13:58 +10:00
Andrew Murray
2ae52552f7 Renamed __fp to _fp 2022-04-17 12:13:58 +10:00
Andrew Murray
43b423bc25
Merge pull request #6196 from hugovk/cleanup-names
Cleanup: adjust names
2022-04-17 07:30:20 +10:00
nulano
b4b8249c9d
None is also not a valid value 2022-04-16 17:46:43 +02:00
nulano
d088c804d0
release notes 2022-04-16 17:36:21 +02:00
nulano
a766b5b0d5
deprecate fill in imageFont 2022-04-16 17:07:32 +02:00
Hugo van Kemenade
967c875e6b
Merge pull request #86 from radarhere/cleanup-names
Cleanup: adjust names
2022-04-16 17:13:10 +03:00
Andrew Murray
e4b39d9cc7 Variable in function should be snake_case 2022-04-16 22:15:48 +10:00
Andrew Murray
280b4e9e1a Updated variable name in comment 2022-04-16 22:15:21 +10:00
DWesl
80b8e125bf
Merge pull request #2 from radarhere/add-cygwin-to-ci
Only install NumPy through pip on 64-bit.

Thanks for catching that, I'd forgotten the NumPy 1.21 problems were only on 64-bit.
2022-04-16 07:51:56 -04:00
Andrew Murray
35fbf22250
Merge branch 'main' into cleanup-names 2022-04-16 19:49:40 +10:00
Andrew Murray
cdfe08bc5e Only install NumPy through pip on 64-bit 2022-04-16 19:14:00 +10:00
Andrew Murray
535c45717f
Merge pull request #6184 from hugovk/deprecations-helper
Add deprecations helper
2022-04-16 18:58:46 +10:00
Andrew Murray
c8118438ae Do not update frame position until local image is found 2022-04-16 17:07:39 +10:00
Jan-Hendrik Müller
f9bf1cd59d
Update docs/handbook/tutorial.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-16 08:12:54 +02:00
Andrew Murray
635f8cf327 Added Python 3.9 2022-04-16 15:42:09 +10:00
DWesl
1d1c22e1d4
CI: Update versions of actions used by Cygwin CI
As suggested by code review.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-15 20:45:19 -04:00
DWesl
7099ade15a
Merge branch 'main' into add-cygwin-to-ci 2022-04-15 14:47:28 -04:00
Jan-Hendrik Müller
12665d8db4
add read from URL example 2022-04-15 14:02:52 +02:00
Andrew Murray
92f96b44e1
Merge branch 'main' into cleanup-names 2022-04-15 20:45:44 +10:00
Hugo van Kemenade
c456aecb12
Merge pull request #6212 from radarhere/unused
Removed unused test function
2022-04-15 13:42:53 +03:00
Hugo van Kemenade
a0b98d805e
Merge pull request #85 from radarhere/cleanup-names
Variable in function should be snake_case
2022-04-15 12:58:09 +03:00
Hugo van Kemenade
136d1a89df
Fix deprecation warning
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-15 12:08:15 +03:00
Andrew Murray
72a59d298a Variable in function should be snake_case 2022-04-15 19:00:23 +10:00
Andrew Murray
ae12b1d2dc Removed unused function 2022-04-15 18:23:02 +10:00
Max Base
5f5e30880a
change aloc to *aloc 2022-04-14 13:35:04 +04:30
Max Base
ab7f6c87db
Merge pull request #1 from radarhere/improve-changeslog
Aligned headings
2022-04-14 13:27:14 +04:30
Hugo van Kemenade
0329b8fa1d
Seven days before stale 2022-04-13 16:07:20 +03:00
Hugo van Kemenade
317ea9a8bb
Remove debug mode so it can close stale issues 2022-04-13 16:04:23 +03:00
Hugo van Kemenade
fb361fc89e
Consider stale after some time, make available for closure immediately
For https://github.com/python-pillow/Pillow/pull/6203
2022-04-13 15:57:20 +03:00
Andrew Murray
3f3c16ee26 Aligned headings [ci skip] 2022-04-13 21:52:29 +10:00
Andrew Murray
950d0ad1d3 Fixed behaviour change from #5901 endian fix 2022-04-12 23:12:54 +10:00
Andrew Murray
a04d6919e1
Merge pull request #6204 from hugovk/stale
Stale action: skip PRs without the special label and never close PRs
2022-04-12 22:38:29 +10:00
Hugo van Kemenade
d144fe325d Never close PRs 2022-04-12 14:54:29 +03:00
Hugo van Kemenade
4160d9145e Skip all PRs without the special label 2022-04-12 14:53:50 +03:00
Hugo van Kemenade
40a8cd3470
Merge pull request #6203 from hugovk/stale 2022-04-12 13:58:22 +03:00
Hugo van Kemenade
df51c357eb
Bump to v5
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-12 13:41:13 +03:00
Hugo van Kemenade
c45a29d5fe TEMP testing 2022-04-12 13:25:31 +03:00
Hugo van Kemenade
4258246ed5 Use actions/stale to close 'Awaiting OP Action' that have had no response in 7 days 2022-04-12 13:25:31 +03:00
Hugo van Kemenade
9951de08c0 [Test] argument name should be snake_case 2022-04-11 15:29:01 +03:00
Hugo van Kemenade
a715bf2d6f [Test] function name should be snake_case 2022-04-11 15:29:01 +03:00
Hugo van Kemenade
fca64bc0d3 [Test] class names should be CamelCase 2022-04-11 15:29:01 +03:00
Max Base
a82ab509df
Fix errors, complete table 2022-04-11 12:30:51 +04:30
Max Base
e03120a474
errors 2022-04-11 12:26:08 +04:30
Max Base
d8a69ebf75
Fix errors 2022-04-11 12:17:44 +04:30
Max Base
261a24752c
Fix rst error: <string>:3150: (WARNING/2) Inline emphasis start-string without end-string. 2022-04-11 12:13:59 +04:30
Max Base
39e689c090
CHANGES: remove unreleased from end of subtitles 2022-04-11 12:07:12 +04:30
Max Base
63b33aab39
Change + to - 2022-04-11 12:01:49 +04:30
Max Base
5e1c7d7914
Update CHANGES.rst 2022-04-11 12:00:05 +04:30
Max Base
386c64bb43
Next update: complete CHANGES 2022-04-11 11:58:16 +04:30
Max Base
edfed60183
Next: working on CHANGES 2022-04-11 11:56:34 +04:30
Max Base
ee59485683
Change pre/code to head and items 2022-04-11 11:53:03 +04:30
Hugo van Kemenade
fe4c859fc1 [Private] argument name should be snake_case 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
7fa92c67b1 [Private] class names should be CamelCase 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d241e38120 [Private] function names should be snake_case 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d3c9a6504e Variable in function should be snake_case 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
965df6df6f Add missing paramters to docstrings 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
1997c814ab Move useful comment into docstring 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
855c1a12da Use self for first method parameter 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
73cf0cb3d9 Use cls for classmethods 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
830da5c41e Rewrite dict creation as dict literal for better performance 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
9d87b26a67 Don't redeclare loop variable 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
b863da6deb Don't redeclare (unused) loop variable 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
ee85e387ba Remove redundant parentheses 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
6a648c9ce7 Add comma to make a tuple 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
a9707e0a6f Remove redundant regex escapes 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
c9acb9b387
Update docstring
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-10 19:27:57 +03:00
Hugo van Kemenade
13994d4b36 More f-strings 2022-04-10 17:56:42 +03:00
Hugo van Kemenade
74ccda3aff Simplify chained comparison 2022-04-10 17:50:17 +03:00
Hugo van Kemenade
935bdfa516 Use triple-quoted docstrings 2022-04-10 17:47:32 +03:00
Hugo van Kemenade
d32d96fab1 Remove redundant property already defined in another section 2022-04-10 17:39:56 +03: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
Andrew Murray
98e8e6df33 Update CHANGES.rst [ci skip] 2022-04-09 07:57:15 +10:00
Hugo van Kemenade
331595926c
Merge pull request #84 from radarhere/deprecations-helper 2022-04-08 22:32:59 +03:00
Hugo van Kemenade
63f64de8b5
Merge pull request #6188 from radarhere/point 2022-04-08 20:05:30 +03:00
Hugo van Kemenade
ec9b0aba8f
Merge pull request #6190 from radarhere/load 2022-04-08 20:03:55 +03:00
Andrew Murray
e824558076 If removal version has arrived, raise an error 2022-04-08 21:22:31 +10:00
Hugo van Kemenade
68b95e3782
Merge pull request #280 from radarhere/zlib 2022-04-08 13:24:35 +03:00
Andrew Murray
0b5cdba431 Load before getting size in resize() 2022-04-08 19:11:27 +10:00
Andrew Murray
fd9f83364a
Merge pull request #282 from radarhere/deployment
Fixed setting MACOSX_DEPLOYMENT_TARGET
2022-04-08 18:39:26 +10:00
Andrew Murray
42f67d184a Round lut values where necessary 2022-04-07 08:58:57 +10:00
Hugo van Kemenade
4996f84fb3
Merge pull request #6182 from radarhere/fribidi 2022-04-06 16:59:58 +03:00
Hugo van Kemenade
e3045433d6
Merge pull request #281 from radarhere/macos 2022-04-06 16:59:56 +03:00
Hugo van Kemenade
aae38c55b2
Update raw strings
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-06 13:37:17 +03:00
Hugo van Kemenade
4cb8e4b3fa Add deprecations helper 2022-04-06 13:19:52 +03:00
Andrew Murray
0413c3429b Update CHANGES.rst [ci skip] 2022-04-06 19:22:05 +10:00
Hugo van Kemenade
98abd62cc2
Merge pull request #6186 from radarhere/thumbnail_load 2022-04-06 11:11:10 +03:00
Andrew Murray
910a29fb92 Load image before performing size calculations in thumbnail() 2022-04-06 11:19:39 +10:00
Andrew Murray
6470199028 Fixed setting MACOSX_DEPLOYMENT_TARGET 2022-04-05 20:55:13 +10:00
Hugo van Kemenade
f1aeb5ea7a
Merge pull request #6180 from radarhere/ghostscript
Updated Ghostscript to 9.56.1
2022-04-05 08:27:59 +03:00
Andrew Murray
b2081a60eb Search for libfribidi.dylib in /usr/local/lib 2022-04-05 09:28:41 +10:00
Andrew Murray
c3c5b31ef1 Updated Ghostscript to 9.56.1 2022-04-05 07:51:51 +10:00
Andrew Murray
986ae73562
Merge pull request #6158 from hugovk/furo
Replace Read the Docs Sphinx Theme with Furo
2022-04-04 23:23:57 +10:00
pre-commit-ci[bot]
553bfc4a6c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-04-04 12:26:39 +00:00
Hugo van Kemenade
dfbe9f01e9
Merge pull request #83 from radarhere/furo 2022-04-04 15:25:51 +03:00
Andrew Murray
757c7d61eb Rearranged CSS 2022-04-04 21:33:12 +10:00
Andrew Murray
78927dd5c6 Test fribidi, harfbuzz and raqm on macOS 2022-04-04 20:46:36 +10:00
Andrew Murray
ba5f2d75b5
Merge pull request #6167 from gmarkall/unpack-bgra16
Add support for unpacking 16-bit BGRA
2022-04-04 07:49:45 +10:00
Graham Markall
80af77d53c
Merge pull request #1 from radarhere/unpack-bgra16
Updated BGRA comments
2022-04-03 21:26:24 +01:00
Andrew Murray
4a25f7020d Update CHANGES.rst [ci skip] 2022-04-04 05:26:50 +10:00
Hugo van Kemenade
188211a913
Merge pull request #6178 from radarhere/imagetk
Deprecated PhotoImage.paste() box parameter
2022-04-03 10:06:37 +03: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
Andrew Murray
19c8a64b41 Update CHANGES.rst [ci skip] 2022-04-03 06:34:03 +10:00
Andrew Murray
cf8be490e2
Merge pull request #6172 from hugovk/update-release-things
Release updates
2022-04-03 06:28:47 +10:00
Andrew Murray
2f88192705 Documented deprecation of PhotoImage.paste() box parameter 2022-04-03 06:15:42 +10:00
mergify[bot]
7a894881b7
Merge pull request #6177 from radarhere/size
Removed documentation for deprecated size parameter
2022-04-02 13:52:09 +00:00
Hugo van Kemenade
c3686c2d15
Fix commands
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-02 16:12:34 +03:00
Andrew Murray
a724be66be Deprecated PhotoImage.paste() box parameter 2022-04-02 23:44:28 +11: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
216e3d79a9 Removed documentation for deprecated size parameter 2022-04-02 23:33:19 +11:00
Andrew Murray
20ae1f4019 Switched back to main multibuild repository 2022-04-02 22:26:39 +11:00
Andrew Murray
29c122fe5d Updated BGRA comments 2022-04-02 22:00:49 +11:00
Andrew Murray
6b2da2f123 Consider transparency from each frame when saving 2022-04-02 21:04:22 +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
Hugo van Kemenade
a575ec33d2
Merge pull request #6174 from radarhere/fedora
Removed Fedora 34
2022-04-02 08:58:54 +03:00
Andrew Murray
c0dabe9b5a
Corrected release runs-on 2022-04-02 13:57:09 +11:00
mergify[bot]
9c501b9785
Merge pull request #6171 from tacaswell/doc_fix_constant_dep_version
DOC: the constants were deprecated in 9.1.0 not 9.2.0
2022-04-01 18:53:45 +00:00
Thomas A Caswell
282f1637b2
MNT: update precommit config to account for click 8.1 breaking black 2022-04-01 13:55:03 -04:00
Thomas A Caswell
5de3460543
DOC: the constants were deprecated in 9.1.0 not 9.2.0 2022-04-01 13:43:35 -04:00
Hugo van Kemenade
e811ff4671 9.2.0.dev0 version bump 2022-04-01 17:53:13 +03:00
Andrew Murray
1982743afc Removed Fedora 34 2022-04-01 22:00:07 +11:00
Hugo van Kemenade
ceae4965a2 Fix 'No module named check-manifest' 2022-04-01 11:15:44 +03:00
Hugo van Kemenade
48a65656ee Call twine via 'python -m' and with '--strict' 2022-04-01 11:15:09 +03:00
Hugo van Kemenade
75c618ab50 Pillow -> 9.1.0 2022-04-01 11:04:11 +03:00
Hugo van Kemenade
5d070222d2 Update CHANGES.rst [ci skip] 2022-04-01 10:48:32 +03:00
Hugo van Kemenade
1e0bc4acbb 9.1.0 version bump 2022-04-01 10:48:00 +03:00
Hugo van Kemenade
0606f02860
Merge pull request #6168 from hugovk/release-notes
Add musllinux wheels to 9.1.0 release notes
2022-04-01 09:56:11 +03:00
Hugo van Kemenade
703f54c847
Merge pull request #5500 from scaramallion/dev-j2k 2022-04-01 09:39:07 +03:00
Hugo van Kemenade
4181f49155
Wording
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-01 08:10:24 +03:00
Hugo van Kemenade
78c389ed86
Merge pull request #6169 from radarhere/freetype
Updated freetype to 2.12
2022-04-01 08:08:35 +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
081c3ba249 Updated freetype to 2.12 2022-04-01 08:10:50 +11: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
Hugo van Kemenade
31e08c86e1
Wording
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-03-31 22:40:41 +03:00
Hugo van Kemenade
e0de5b67ce Document mct and no_jp2 options for saving JPEG 2000 2022-03-31 22:19:00 +03:00
Andrew Murray
698f52916e Parametrized test 2022-03-31 22:13:17 +03:00
Andrew Murray
c3e0fd1a7a Moved getvalue asserts outside of image context managers 2022-03-31 22:13:17 +03:00
scaramallion
07be0d26ba Re-add explicit default MCT value 2022-03-31 22:13:17 +03:00
scaramallion
bab4effbce Fix s390x build failure 2022-03-31 22:13:17 +03:00
scaramallion
b5a59d8860 Remove redundant im.load() in tests 2022-03-31 22:13:17 +03:00
scaramallion
462e3fdaa5 Remove duplicate test 2022-03-31 22:13:17 +03:00
scaramallion
da7e331573 Fix typo in handbook entry 2022-03-31 22:13:17 +03:00
scaramallion
74d7319c66 Reword the handbook entries to make explicit reference to RCT and ICT 2022-03-31 22:13:17 +03:00
scaramallion
4e7f041795 Rename parameter and add more tests 2022-03-31 22:13:17 +03:00
scaramallion
f8a74cbed1 Fix priority when selecting j2k kind 2022-03-31 22:13:17 +03:00
scaramallion
de26f78eb1 Add 'mct' and 'use_jp2' options for J2K saving 2022-03-31 22:13:17 +03:00
Hugo van Kemenade
5e511d5b11
Merge pull request #6135 from carandraug/document-jpeg-quality-keep 2022-03-31 21:34:02 +03:00
Hugo van Kemenade
463e156a17 Add musllinux wheels to 9.1.0 release notes 2022-03-31 17:23:21 +03:00
Andrew Murray
dae82d16ba Update CHANGES.rst [ci skip] 2022-04-01 00:38:19 +11:00
Hugo van Kemenade
785faa8747
Merge pull request #6165 from nulano/dlerror 2022-03-31 16:35:37 +03:00
Graham Markall
e500dcfb97 Add support for unpacking 16-bit BGRA 2022-03-31 10:42:54 +01: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
b2d6671410
Merge pull request #6164 from radarhere/harfbuzz
Updated harfbuzz to 4.2.0
2022-03-31 07:42:02 +03: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
Ondrej Baranovič
237f6a2662
don't call dlerror in fribidi shim 2022-03-31 02:13:05 +02:00
Andrew Murray
36df718b44 Update CHANGES.rst [ci skip] 2022-03-31 08:03:20 +11:00
Andrew Murray
d00fd468ec Updated harfbuzz to 4.2.0 2022-03-31 08:01:00 +11: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
Hugo van Kemenade
e60ca89721
Merge pull request #6150 from radarhere/gif 2022-03-30 23:23:59 +03:00
Andrew Murray
43faf9c544 Update CHANGES.rst [ci skip] 2022-03-31 00:19:28 +11:00
Hugo van Kemenade
4bc6483564
Merge pull request #6034 from radarhere/imageops 2022-03-30 16:16:57 +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
Andrew Murray
24054d8fcc Document how to restore original setting 2022-03-30 07:29:23 +11:00
Andrew Murray
a7d36ef1f1 Added release notes 2022-03-29 22:11:42 +11:00
Andrew Murray
5fb1ff6369 Further explain GIF palettes combining 2022-03-29 22:05:21 +11:00
Andrew Murray
e22a4395d3 Renamed setting 2022-03-29 21:26:29 +11:00
Hugo van Kemenade
a6efaa1ae1
Merge pull request #6160 from radarhere/zlib
Updated zlib to 1.2.12
2022-03-29 08:25:57 +03:00
Andrew Murray
5b6433ac02 Update CHANGES.rst [ci skip] 2022-03-29 09:49:05 +11:00
Andrew Murray
77b4004d43 Updated URLs to HTTPS 2022-03-29 08:23:13 +11:00
Andrew Murray
696cd9ce5b Updated zlib to 1.2.12 2022-03-29 08:21:45 +11:00
Hugo van Kemenade
8b4c1b92a9 Remove unnecesary table of contents 2022-03-28 20:48:30 +03:00
Hugo van Kemenade
4459dfadcb
Merge pull request #6159 from radarhere/jpeg_zero 2022-03-28 20:37:04 +03:00
Hugo van Kemenade
7064a445c9 Invert text anchor images when light mode+dark toggle or dark mode+not light toggle (=dark or auto) 2022-03-28 20:32:26 +03:00
Andrew Murray
3ce484bd3d Use different logos for light and dark mode 2022-03-28 20:00:07 +03:00
Hugo van Kemenade
abd9eda499 Replace Read the Docs Sphinx Theme with Furo 2022-03-28 20:00:07 +03:00
Andrew Murray
33022eef16 Added versionadded 2022-03-28 22:02:26 +11:00
Andrew Murray
ae8de77721 Raise ValueError when trying to save empty image 2022-03-28 21:18:53 +11:00
Andrew Murray
0eb50500d7 Update CHANGES.rst [ci skip] 2022-03-28 18:31:44 +11:00
Hugo van Kemenade
1bc0e1bb9d
Merge pull request #5973 from radarhere/planar_configuration 2022-03-27 18:52:44 +03:00
Hugo van Kemenade
f7169f9c93
Merge pull request #5980 from radarhere/polygon 2022-03-27 18:51:10 +03:00
Hugo van Kemenade
5a35e87e65
Merge pull request #5958 from radarhere/memory 2022-03-27 18:49:07 +03:00
Hugo van Kemenade
57a5066d14
Merge pull request #6032 from radarhere/tk 2022-03-27 18:46:45 +03:00
Hugo van Kemenade
35e1932748
Merge pull request #5970 from radarhere/warnings 2022-03-27 18:43:38 +03:00
Andrew Murray
577e44dff6 Update CHANGES.rst [ci skip] 2022-03-27 22:56:52 +11:00
Hugo van Kemenade
fa6e18a771
Merge pull request #6152 from radarhere/screencapture
Use screencapture arguments to crop on macOS
2022-03-27 11:27:16 +03:00
Hugo van Kemenade
96a9776931
Merge pull request #6151 from radarhere/pdf
Do not mark L mode JPEG as 1 bit in PDF
2022-03-27 11:23:57 +03:00
Andrew Murray
a7a85ca302 Update CHANGES.rst [ci skip] 2022-03-27 12:27:23 +11:00
Hugo van Kemenade
5ff4a137c7
Merge pull request #6147 from radarhere/webp 2022-03-26 19:51:32 +02:00
Hugo van Kemenade
aeba11db1b
Merge pull request #6148 from radarhere/gif_size 2022-03-26 19:48:08 +02:00
Hugo van Kemenade
8107098657
Merge pull request #6132 from radarhere/fillorder 2022-03-26 19:47:14 +02:00
Hugo van Kemenade
b624aaf792
Merge pull request #6157 from radarhere/appveyor 2022-03-26 19:45:06 +02:00
Andrew Murray
6a4c1d3b67
Added pytest-timeout 2022-03-26 15:14:47 +11:00
Andrew Murray
55852d5392
Use consistent term 2022-03-26 13:44:27 +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
77f12cd473
Merge pull request #6155 from radarhere/bmp 2022-03-24 11:51:40 +02:00
Andrew Murray
47426c5ee2 #6102 added support for RLE8 2022-03-24 19:03:37 +11:00
Andrew Murray
b08cf7bddb Update CHANGES.rst [ci skip] 2022-03-24 18:58:51 +11:00
Hugo van Kemenade
9134f07615
Merge pull request #6134 from radarhere/created_cleanup
If an error occurs after creating a file, remove the file
2022-03-24 08:08:36 +02:00
Hugo van Kemenade
5cb020df8f
Merge pull request #6130 from radarhere/return
decode() should return -1 when finished
2022-03-24 08:07:14 +02:00
Hugo van Kemenade
3ce6501228
Merge pull request #6136 from radarhere/imageshow
Fixed calling DisplayViewer or XVViewer without a title
2022-03-24 07:35:59 +02: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
Hugo van Kemenade
e5ce1c8c57
Merge pull request #6128 from radarhere/gif_rgba 2022-03-23 18:36:03 +02:00
Hugo van Kemenade
c3d0dcda7a
Merge pull request #6122 from radarhere/ico 2022-03-23 17:07:00 +02:00
Hugo van Kemenade
3cce863ec8
Merge pull request #6124 from radarhere/exif 2022-03-23 17:01:22 +02:00
Hugo van Kemenade
a921fcbf75
Merge pull request #6102 from radarhere/bmp_rle8 2022-03-23 17:00:31 +02: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
mergify[bot]
bda004bafd
Merge pull request #6153 from radarhere/harfbuzz
Updated harfbuzz to 4.1.0
2022-03-23 09:19:27 +00:00
Andrew Murray
70ba0705de Updated harfbuzz to 4.1.0 2022-03-23 18:30:48 +11:00
Andrew Murray
13579d7757 Updated harfbuzz to 4.1.0 2022-03-23 18:30:12 +11:00
Andrew Murray
4ddb6fcff2 Update CHANGES.rst [ci skip] 2022-03-23 12:41:41 +11:00
Andrew Murray
a4bb0ec660
Merge pull request #6006 from lukegb/tk-in-binary
Support Python distributions where _tkinter is compiled in
2022-03-23 12:40:27 +11:00
Hugo van Kemenade
d0f1f663d3
Merge pull request #6141 from radarhere/imports 2022-03-22 23:27:03 +02:00
Andrew Murray
1acc32d1d9
Updated syntax 2022-03-22 22:34:04 +11:00
Andrew Murray
c5efe60c37 Reverted converting L with transparency to LA after first frame 2022-03-22 22:07:37 +11:00
Andrew Murray
dd2b91c5b8 Use screencapture arguments to crop on macOS 2022-03-22 21:58:32 +11:00
Andrew Murray
bde3086592 Do not mark L mode JPEG as 1 bit 2022-03-22 21:41:11 +11:00
Andrew Murray
ce8c682748 Added setting to convert to RGB only at a different palette 2022-03-22 20:28:49 +11:00
Andrew Murray
66bb2bd5e8 Added setting to convert first GIF frame to RGB 2022-03-22 20:20:38 +11:00
Andrew Murray
7928e944cb Keep subsequent L frames without transparency as L 2022-03-22 20:20:38 +11:00
Andrew Murray
b0d0d2b9cc Fixed saving L mode GIF with background as WebP 2022-03-22 20:17:28 +11:00
Hugo van Kemenade
a6a843e548
Merge pull request #6140 from radarhere/webp_duration
Added WebP default duration of zero when saving
2022-03-22 09:23:10 +02:00
Andrew Murray
d806227199 Do not expand GIF during n_frames 2022-03-21 23:19:26 +11:00
Hugo van Kemenade
5c9cab437b
Merge pull request #265 from radarhere/exclude 2022-03-20 11:25:05 +02:00
Andrew Murray
ebdb47e693 Support reading I;16R TIFF images 2022-03-20 13:34:50 +11: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
Hugo van Kemenade
15dc291469
Merge pull request #6143 from radarhere/period
Removed period before colon
2022-03-19 10:03:45 +02:00
Andrew Murray
be9ee98631 Removed period before colon 2022-03-19 17:48:31 +11:00
Andrew Murray
2a285d1b1f Only import ctypes as needed on Windows 2022-03-19 14:46:25 +11:00
Andrew Murray
ca3bc290e3 Record resolution instead of requiring ctypes 2022-03-19 14:45:40 +11:00
Andrew Murray
625d7accd6 Update CHANGES.rst [ci skip] 2022-03-19 07:52:35 +11:00
Hugo van Kemenade
7857a1dff0
Merge pull request #6119 from radarhere/ppm_maxval 2022-03-18 18:14:40 +02:00
Hugo van Kemenade
f3a3b20c51
Merge pull request #6129 from radarhere/merge 2022-03-17 22:51:38 +02:00
Andrew Murray
2981569b29 Added default duration of zero 2022-03-17 23:49:23 +11:00
Andrew Murray
edc6c3d2f0 Use maxval instead of unreliable 32-bit specific behaviour 2022-03-16 22:10:47 +11:00
Andrew Murray
e3b53dc7e0 Use SAFEBLOCK instead of arbitrary large number 2022-03-16 21:23:29 +11:00
mergify[bot]
0cf072db39
Merge pull request #6137 from radarhere/unused
Removed unused variable
2022-03-15 12:16:46 +00:00
Andrew Murray
6f128c4c39 Removed unused variable 2022-03-15 22:15:24 +11:00
Andrew Murray
f3b7ee2d3e Do not pass None to subprocess 2022-03-15 08:31:17 +11:00
David Miguel Susano Pinto
0c4f11a603 doc: document "keep" for JPEG save quality option. 2022-03-14 17:01:03 +00:00
Andrew Murray
71c30ed266 If an error occurs after creating a file, remove the file 2022-03-14 23:33:45 +11:00
Andrew Murray
55be0ae6f4 Parametrized test 2022-03-14 08:07:13 +11:00
Andrew Murray
0d5a2d2b83 Allow PyDecoder to pass truncated data to C decoder 2022-03-13 14:11:28 +11:00
Andrew Murray
e32a94e835 Removed tokens_read variable 2022-03-13 13:36:26 +11:00
Hugo van Kemenade
6faebd3ff3
Merge pull request #5984 from radarhere/libwebp
libwebp 1.2.2 fixed endian bugs
2022-03-12 09:21:49 +02:00
Andrew Murray
87dbc7043b decode() should return -1 when finished 2022-03-12 18:12:56 +11:00
Andrew Murray
4fcef0d163 Removed re-raising of exception 2022-03-12 17:44:32 +11:00
Andrew Murray
9e04416c6c Removed token_spans variable 2022-03-12 17:40:08 +11:00
Andrew Murray
073acd4c82 Moved decoder names out of MODES 2022-03-12 17:32:15 +11:00
Andrew Murray
b12c2fe682 Added merging images example 2022-03-12 16:17:56 +11:00
Andrew Murray
76871795f7 Resolved UNDONE by removing code 2022-03-12 15:54:08 +11:00
Andrew Murray
59780abd79 Save multiple images at different bit depths if provided 2022-03-12 15:49:36 +11:00
Andrew Murray
268be11be6 If primary image is already destination size, do not duplicate 2022-03-12 15:49:36 +11:00
Andrew Murray
5ce67cd896 Use _binary instead of struct 2022-03-12 15:49:36 +11:00
Andrew Murray
a8586fe1ff Do not save duplicates when duplicate sizes are supplied 2022-03-12 15:49:36 +11:00
Andrew Murray
4e16a9a942 Retain RGBA transparency when saving multiple frames 2022-03-12 15:14:36 +11:00
mergify[bot]
475b7233d6
Merge pull request #6125 from radarhere/harfbuzz
Updated harfbuzz to 4.0.1
2022-03-11 23:34:12 +00: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
8fa4f807bc Update CHANGES.rst [ci skip] 2022-03-12 08:31:32 +11:00
Andrew Murray
07210e9425 Handle EXIF data truncated to just the header 2022-03-12 08:23:40 +11:00
Hugo van Kemenade
515957b2ac
Merge pull request #6097 from radarhere/bigtiff 2022-03-11 23:05:41 +02:00
Hugo van Kemenade
3e16c3dc28
Merge pull request #6077 from radarhere/gif 2022-03-11 23:05:10 +02:00
Andrew Murray
1db5699f91 Updated harfbuzz to 4.0.1 2022-03-12 07:42:25 +11:00
Andrew Murray
4afcd8eb83 Updated harfbuzz to 4.0.1 2022-03-12 07:33:23 +11:00
Andrew Murray
e9ded85459 Added release notes 2022-03-11 08:49:47 +11:00
Andrew Murray
ca6724bb9d Merge branch 'main' into gif 2022-03-11 08:44:42 +11:00
Andrew Murray
5c1221f070 Update CHANGES.rst [ci skip] 2022-03-11 07:47:06 +11:00
Hugo van Kemenade
5c931de27f
Merge pull request #6117 from radarhere/return 2022-03-10 22:27:03 +02:00
Hugo van Kemenade
06396094c0
Merge pull request #6116 from radarhere/load_prepare 2022-03-10 22:26:00 +02:00
Hugo van Kemenade
652542c770
Merge pull request #6112 from radarhere/i_i16_conversion
Clip I;16 to be unsigned, not signed
2022-03-10 19:56:45 +02:00
Hugo van Kemenade
29960c6610
Merge pull request #6108 from radarhere/none 2022-03-10 17:36:13 +02:00
Hugo van Kemenade
d0a33addc5
Merge pull request #6086 from radarhere/l_gif 2022-03-10 17:35:00 +02:00
Andrew Murray
ad07b04678 Maximum maxval is 65535 2022-03-10 09:55:47 +11:00
Andrew Murray
039b7ecd56 Finish reading data at eof 2022-03-09 22:36:34 +11:00
Andrew Murray
9db527a473 Finish once enough data has been read 2022-03-09 22:36:33 +11:00
Andrew Murray
ae06f2e274 Added file to supported list 2022-03-09 22:36:33 +11:00
Andrew Murray
11f1ba3540 Skip additional data if past end of row 2022-03-09 22:36:32 +11:00
Andrew Murray
0ace3fcd26 Added BMP RLE8 decoder 2022-03-09 22:35:48 +11:00
Andrew Murray
60de3b7d74 I mode data can also be read from PPM 2022-03-09 22:29:52 +11:00
Andrew Murray
4283a604c0 Added support for arbitrary maxval 2022-03-09 22:29:45 +11:00
Andrew Murray
e87432b745 First return value is unused 2022-03-08 19:51:24 +11:00
Andrew Murray
54a4a38e42 Return -1 when finished decoding 2022-03-08 19:48:58 +11:00
Andrew Murray
0d6f3ad6cc Removed load_prepare nearly identical to ImageFile load_prepare 2022-03-08 19:01:57 +11:00
Andrew Murray
397a940995
Merge pull request #6094 from radarhere/decoder
Improved codec documentation
2022-03-07 08:01:31 +11:00
Andrew Murray
8e9d3201eb
Corrected grammar
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-03-07 07:15:23 +11:00
Hugo van Kemenade
c16737d589
Merge pull request #6096 from radarhere/cleanup 2022-03-06 20:12:13 +02:00
Hugo van Kemenade
fe9b6998f8
Merge pull request #6099 from radarhere/pixels
Document alternatives to accessing individual pixels
2022-03-06 09:17:45 +02:00
pre-commit-ci[bot]
0215175e1d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-03-06 02:39:09 +00:00
Andrew Murray
d20f39d02e
Merge branch 'main' into plainPPM 2022-03-06 13:38:19 +11:00
Hugo van Kemenade
180c89f755
Merge pull request #6092 from radarhere/accept 2022-03-05 23:10:08 +02:00
Andrew Murray
633abcbe7e
Updated error message
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-03-06 07:27:11 +11:00
Hugo van Kemenade
6b9f8548c4
Merge pull request #6111 from radarhere/actions
Updated setup-python, checkout and upload-artifact actions to v3
2022-03-05 08:32:13 +02:00
Hugo van Kemenade
c32f908629
Merge pull request #6106 from radarhere/imagestat
Document that histogram() uses 256 bins per channel
2022-03-05 08:27:25 +02:00
Andrew Murray
c8b69a78f3 Clip I;16 to be unsigned, not signed 2022-03-05 13:42:39 +11:00
Hugo van Kemenade
38f4660d9e
Merge pull request #6109 from radarhere/black 2022-03-04 14:23:53 +02: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
Andrew Murray
954aa4e01d Updated setup-python, checkout and upload-artifact actions to v3 2022-03-04 20:04:12 +11:00
Andrew Murray
e5537b545a
Merge branch 'main' into add-cygwin-to-ci 2022-03-04 17:20:02 +11:00
Andrew Murray
97982cf703 Replaced assert_image_equal with assert_image_equal_tofile 2022-03-04 17:09:33 +11:00
Andrew Murray
2922a00e9c Renamed decoder 2022-03-04 17:08:40 +11:00
Andrew Murray
7aa7d850ee Added context managers 2022-03-04 17:08:10 +11:00
Piolie
be97a851a8 Update src/PIL/PpmImagePlugin.py
Remove commented line.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-03-04 17:03:17 +11:00
Piolie
c1744e8536 Add tests for plain PPM 2022-03-04 17:03:07 +11:00
Piolie
652f447412 Implement grayscale/color decoder 2022-03-04 16:59:01 +11:00
Piolie
ea7e108ca3 Implement bitonal decoder 2022-03-04 16:58:56 +11:00
Piolie
1ed05715d2 Expand preamble and _open function 2022-03-04 16:58:48 +11:00
Andrew Murray
72b7ab54bd pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
Andrew Murray
d1124cd2b9 Update CHANGES.rst [ci skip] 2022-03-04 16:35:28 +11:00
Andrew Murray
6d432f2a81
Merge pull request #5121 from Piolie/PPMheaders
Improve handling of PPM headers
2022-03-04 16:30:35 +11:00
Andrew Murray
f7504b1ef9 Changed variable 2022-03-04 15:49:37 +11:00
Andrew Murray
4f8173f53f Refactored to reduce risk of infinite loop 2022-03-04 15:22:47 +11:00
Andrew Murray
d96830115f Updated tests 2022-03-04 15:22:41 +11:00
Andrew Murray
65edcc4f77 Merge branch 'main' into PPMheaders 2022-03-04 12:30:41 +11:00
Andrew Murray
f5b9e2c43a Explicitly check if magic number is empty 2022-03-04 12:29:20 +11:00
Andrew Murray
3426052874 Removed re-raising of exception 2022-03-04 12:27:28 +11:00
Andrew Murray
cb4e26783f Retain variable case for backwards compatibility 2022-03-04 12:27:14 +11:00
Andrew Murray
e2e87d73c3 Reverted SyntaxError change to match other plugins 2022-03-04 12:26:55 +11:00
Andrew Murray
c27519960f Check if self.im is not None 2022-03-03 22:10:19 +11:00
Andrew Murray
de968dd920 Document that histogram() uses 256 bins per channel 2022-03-02 21:21:25 +11:00
mergify[bot]
92c26a77ca
Merge pull request #6104 from radarhere/harfbuzz
Updated harfbuzz to 4.0.0
2022-03-02 06:51:21 +00:00
Andrew Murray
81a4c41022 Update CHANGES.rst [ci skip] 2022-03-02 17:36:26 +11:00
Hugo van Kemenade
2355001797
Merge pull request #6101 from radarhere/mpo
Reset size when seeking away from "Large Thumbnail" MPO frame
2022-03-02 08:08:20 +02: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
Andrew Murray
211639b4f3 Updated harfbuzz to 4.0.0 2022-03-02 11:00:28 +11:00
Andrew Murray
7d3274518d Allow LA to be used as a mask in paste() 2022-03-01 21:05:42 +11:00
Hugo van Kemenade
172fd6c3a7
Merge pull request #6098 from radarhere/python310 2022-03-01 12:04:00 +02:00
Andrew Murray
e2b007f0c2 Use transparency info key when converting to LA 2022-03-01 20:25:25 +11:00
Andrew Murray
5c6212052c Convert subsequent frames of L mode GIF to LA if transparency is present 2022-03-01 20:11:35 +11:00
Andrew Murray
573cf278f1 Reset size when seeking away from "Large Thumbnail" MPO frame 2022-03-01 19:10:10 +11:00
Andrew Murray
2b9cc3ccc5 Documented writing your own encoder in C 2022-03-01 16:34:21 +11:00
Andrew Murray
a7e8a386d3 Mention PsdImagePlugin as a plugin using multiple tiles 2022-03-01 15:44:12 +11:00
Andrew Murray
0cd550719a Link to demonstrations of PyDecoder and PyEncoder 2022-03-01 14:56:04 +11:00
Andrew Murray
4615e1d42a Document alternatives to accessing individual pixels 2022-03-01 14:13:40 +11:00
Andrew Murray
d05281fe69 Improved documentation for cleanup() in Python codecs 2022-03-01 13:38:20 +11:00
Andrew Murray
95e3194497 Improved documentation for _pulls_fd and _pushes_fd 2022-03-01 13:15:12 +11:00
Andrew Murray
3b79a776d6 Removed "Experimental" label from pulls_fd 2022-03-01 13:15:12 +11:00
Andrew Murray
3cb355c1af Refer to set_as_raw() in Python decoder documentation 2022-03-01 13:15:12 +11:00
Andrew Murray
fc7319318e Added BigTIFF reading 2022-03-01 09:23:12 +11:00
Andrew Murray
949e4afaa9 Updated Python for doccheck to 3.10 2022-03-01 09:19:04 +11:00
Hugo van Kemenade
37d28ce514
Merge pull request #6095 from radarhere/pyencoder 2022-02-28 22:18:19 +02:00
Andrew Murray
bb9338e34d Removed duplicate code 2022-02-28 14:13:04 +11:00
Andrew Murray
4d868abd8a Moved non-codec code outside of try block 2022-02-28 14:13:04 +11:00
Andrew Murray
a606fd85a3 Run encoder cleanup method after errors as well 2022-02-28 14:12:56 +11:00
Andrew Murray
f2987d65c0 Linked to file codec documentation 2022-02-28 08:36:26 +11:00
Andrew Murray
13cedb9221 Added release notes for #6069 2022-02-28 08:36:18 +11:00
Andrew Murray
2f2b48dc2c Update CHANGES.rst [ci skip] 2022-02-28 08:32:21 +11:00
mergify[bot]
8abff14a3a
Merge pull request #6072 from hugovk/extras_require
Replace requirements.txt with extras
2022-02-27 21:31:03 +00:00
Andrew Murray
2559913342 Update CHANGES.rst [ci skip] 2022-02-28 08:03:16 +11:00
Hugo van Kemenade
00563327a2
Quotes may be needed on macOS
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-02-27 18:43:06 +02:00
Hugo van Kemenade
1d3b373160
Merge pull request #6069 from radarhere/pyencoder 2022-02-27 18:34:09 +02:00
Hugo van Kemenade
841d60c35f
Merge pull request #6087 from radarhere/tga 2022-02-27 18:25:21 +02:00
Andrew Murray
56324c300d Simplify code by using _accept 2022-02-27 14:48:36 +11:00
Andrew Murray
e2288356ca Use _accept check in _open 2022-02-27 14:48:36 +11:00
Andrew Murray
885e305fe9 Make code clearer by matching _accept condition 2022-02-27 14:48:36 +11:00
Andrew Murray
83b9e66133 Moved flags check into _accept 2022-02-27 14:48:36 +11:00
Andrew Murray
efb9d503a7 Raise SyntaxError if data is not as expected 2022-02-27 14:48:36 +11:00
Andrew Murray
fbaaf3c19b Do not read data until necessary 2022-02-27 14:48:36 +11:00
Hugo van Kemenade
6b9b392ccc
Merge pull request #6091 from radarhere/libjpeg_turbo 2022-02-26 22:27:45 +02:00
Hugo van Kemenade
8dafc8a333
Merge pull request #259 from radarhere/libjpeg_turbo 2022-02-26 22:27:40 +02:00
Andrew Murray
5e32c5d22f Updated libjpeg-turbo to 2.1.3 2022-02-26 15:25:50 +11:00
Andrew Murray
0edc65a385 Updated libjpeg-turbo to 2.1.3 2022-02-26 15:23:05 +11:00
Andrew Murray
e36774617c Added BLP1 saving 2022-02-25 23:58:13 +11:00
Hugo van Kemenade
7ee9a0ed86
Merge pull request #81 from radarhere/extras_require 2022-02-25 08:54:49 +02:00
Andrew Murray
1859bc3462 Added reading non-JPEG BLP1 as RGBA 2022-02-25 17:50:21 +11:00
Andrew Murray
3ec928251c Fixed reading uncompressed BLP2 with alpha 2022-02-25 16:54:53 +11:00
Andrew Murray
169025df6c Added BLP saving 2022-02-25 16:53:53 +11:00
Andrew Murray
747029bea9 Simplified code 2022-02-25 16:07:32 +11:00
Andrew Murray
a0e1fde1ed Added PyEncoder 2022-02-25 16:07:01 +11:00
Andrew Murray
2e71925ee9 Further ensuring dependencies are installed 2022-02-25 10:37:38 +11:00
Andrew Murray
fa1e89ff84 Further invoking of commands through python3 2022-02-25 10:25:06 +11:00
Andrew Murray
62a80867d6 Removed deprecated install-venv 2022-02-25 10:24:50 +11:00
Andrew Murray
dac5dfc35b Changed level of other Deprecations subheadings to be consistent 2022-02-25 10:24:29 +11:00
Andrew Murray
afb7728b8c Moved unrelated tests out of TestPyDecoder 2022-02-25 09:41:39 +11:00
Andrew Murray
0d729941a8 Handle packets that cross scan lines 2022-02-25 09:41:16 +11:00
Andrew Murray
17d342bc4b Simplified code as both values are 7 bit 2022-02-25 09:41:16 +11:00
Hugo van Kemenade
c55d5d2401 Document requirements.txt -> extras_require in release notes 2022-02-24 17:59:34 +02:00
Andrew Murray
7566f8c3b2 Ensure dependencies are installed 2022-02-24 17:59:34 +02:00
Andrew Murray
c0e770c3c9 Invoke commands through python3 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
8c52290b94 Capitalisation 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
247809aa54 Remove non-existent commands from help 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
3f06b0e3d5 Docs: olefile required FpxImagePlugin and MicImagePlugin 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
c4f783e099 Install for docs build using 'pip install .[docs]' 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
b14aa51037 Replace requirements.txt with extras_require 2022-02-24 17:59:34 +02:00
Hugo van Kemenade
14b9b597ff
Merge pull request #6089 from radarhere/heap_verification 2022-02-24 17:15:16 +02:00
Andrew Murray
839b634fd5 Install gcc to allow coverage to build 2022-02-24 09:16:32 +11:00
Andrew Murray
57f106c683 Enable heap verification without gflags 2022-02-24 09:16:05 +11:00
Hugo van Kemenade
b3599de6c9
Merge pull request #6080 from radarhere/gif_test
Test that n_frames and is_animated do not change GIF
2022-02-23 18:03:37 +02:00
Hugo van Kemenade
96516ce5f1
Merge pull request #6078 from radarhere/imageshow 2022-02-23 14:56:18 +02:00
Hugo van Kemenade
4fc0319593
Merge pull request #6088 from radarhere/gentoo 2022-02-23 11:53:39 +02:00
Andrew Murray
415d679f84 Added Gentoo to Docker jobs 2022-02-23 15:26:16 +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
4638c4fba6
Merge pull request #6081 from radarhere/size 2022-02-22 09:33:06 +02:00
Hugo van Kemenade
bd96420032
Merge pull request #6082 from radarhere/duplicate 2022-02-22 09:17:59 +02: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
030a6225de Removed duplicate test 2022-02-22 11:03:36 +11:00
Andrew Murray
3c1e7a7f5a Corrected docstring [ci skip] 2022-02-22 10:32:02 +11:00
Andrew Murray
9006836c28 Test that n_frames and is_animated do not change the image 2022-02-22 08:55:02 +11:00
Andrew Murray
40561c9517 Document #6045 2022-02-21 21:04:24 +11:00
Andrew Murray
35cdcdc65d Added ImageShow.register examples 2022-02-21 20:32:21 +11:00
Andrew Murray
c4f4c049a2
Merge pull request #256 from radarhere/pypy
Added PyPy3.8
2022-02-21 20:16:11 +11:00
Andrew Murray
f8546768d6 Do not update images during n_frames or is_animated seeking 2022-02-21 18:34:05 +11:00
Hugo van Kemenade
9e6537df5a
Merge pull request #6076 from radarhere/pytest 2022-02-21 08:56:29 +02:00
Hugo van Kemenade
54def7682a
Merge pull request #257 from radarhere/pytest 2022-02-21 08:52:41 +02:00
Andrew Murray
590c616cfd If next byte ends the GIF, stay on the current frame 2022-02-21 17:35:50 +11:00
Andrew Murray
73cf28cc94 If GIF has already seeked past first frame, it is animated 2022-02-21 15:57:13 +11:00
Andrew Murray
dae1f691c2 Updated checks that no warnings were raised 2022-02-21 13:49:01 +11:00
Andrew Murray
c84fbfaa49 Added pytest-timeout 2022-02-21 13:33:24 +11:00
Andrew Murray
54be93c8b0 Update CHANGES.rst [ci skip] 2022-02-21 12:36:01 +11:00
Andrew Murray
edbfb3c6d0 Added PyPy3.8 2022-02-21 12:32:29 +11:00
mergify[bot]
c58d2817bc
Merge pull request #6056 from radarhere/fits
Added FITS reading
2022-02-20 21:49:01 +00:00
Andrew Murray
ee46ef2a61
Updated formatting
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-02-21 08:03:50 +11:00
Hugo van Kemenade
b803b7c2a1
Merge pull request #6061 from radarhere/getpalette 2022-02-20 22:15:13 +02:00
Andrew Murray
764c3517bc Added documentation links 2022-02-20 23:57:17 +11:00
Andrew Murray
11948050ae Updated tests in light of #6060 2022-02-20 23:54:12 +11:00
Andrew Murray
7aa49741c6 Merge branch 'main' into getpalette 2022-02-20 23:52:20 +11:00
Andrew Murray
737fe769a6 Added release notes 2022-02-19 23:01:19 +11:00
Andrew Murray
da451e5bea Record the version the rawmode argument was added 2022-02-19 22:55:23 +11:00
Hugo van Kemenade
b78e601b63
Merge pull request #6071 from radarhere/handler
Fixed BUFR, GRIB and HDF5 stub saving
2022-02-19 11:25:42 +02:00
Hugo van Kemenade
de06aba8f1
Merge pull request #6068 from radarhere/quantize
Changed quantize default dither to FLOYDSTEINBERG
2022-02-19 11:24:17 +02:00
Hugo van Kemenade
bfa6da63a4
Merge pull request #6045 from radarhere/imageshow
Do not automatically remove temporary ImageShow files on Unix
2022-02-19 11:06:10 +02:00
Hugo van Kemenade
3d33987d7c
Merge pull request #4685 from Meithal/patch-3
Correctly read JPEG compressed BLP images
2022-02-19 11:03:36 +02:00
Hugo van Kemenade
e5fa767024
Merge pull request #6067 from radarhere/subsampling
Corrected JPEG subsampling documentation
2022-02-19 10:57:41 +02:00
Hugo van Kemenade
e0afe932a1
Merge pull request #6057 from radarhere/mode_conv
Merged _MODE_CONV typ into ImageMode as typestr
2022-02-19 10:13:36 +02:00
Andrew Murray
7dca0135dd Merge branch 'main' into fits 2022-02-19 14:41:45 +11:00
Andrew Murray
2368723230 Deprecated FitsStubImagePlugin 2022-02-19 14:41:12 +11:00
Andrew Murray
3f5fad3a27 Fixed BUFR, GRIB and HDF5 stub saving 2022-02-19 14:29:03 +11:00
Andrew Murray
341802c2dc Removed unused argument 2022-02-19 10:50:07 +11:00
Andrew Murray
7538864839 Changed quantize default dither to FLOYDSTEINBERG 2022-02-19 10:49:46 +11:00
Andrew Murray
f6e024212c Use enums for quantize instead of raw values 2022-02-19 10:49:23 +11:00
Andrew Murray
af345358e3 Update CHANGES.rst [ci skip] 2022-02-19 10:43:15 +11:00
Andrew Murray
aca936c85e
Document the version when FITS was added
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-02-19 10:37:59 +11:00
Andrew Murray
60e3734b30 Added release notes 2022-02-19 10:36:31 +11:00
Hugo van Kemenade
1ec7be9a87
Merge pull request #6060 from radarhere/palette
Consider palette size when converting and in getpalette()
2022-02-18 23:31:56 +02:00
Hugo van Kemenade
07741c9315
Merge pull request #5954 from radarhere/enum 2022-02-18 15:53:41 +02:00
Andrew Murray
5d7b6c9d88 Documented deprecation 2022-02-18 22:13:11 +11:00
Hugo van Kemenade
6b8edca6df
Merge pull request #6066 from radarhere/install 2022-02-18 08:47:02 +02:00
mergify[bot]
29b7030631
Merge pull request #6065 from hugovk/mac-install-openjpeg
macOS: 'brew install openjpeg' for JPEG2000 support
2022-02-17 23:09:32 +00:00
Andrew Murray
a5ada2c56f Added a note about the default subsampling 2022-02-18 09:56:59 +11:00
Andrew Murray
6bbdd2510e Use --no-binary when installing from source 2022-02-18 09:26:57 +11:00
Hugo van Kemenade
cfad80cbe6 macOS: 'brew install openjpeg' for JPEG2000 support 2022-02-17 22:24:45 +02:00
Andrew Murray
f2a8c45744 Remove incorrect documentation of "-1" subsampling setting 2022-02-17 23:54:10 +11:00
Hugo van Kemenade
669247cbd7
Merge pull request #6063 from radarhere/copyright 2022-02-17 13:43:43 +02:00
Andrew Murray
58509a48a8 Use existing image 2022-02-17 22:22:44 +11:00
Andrew Murray
985e4fbe40 Simplified code 2022-02-17 22:22:34 +11:00
Hugo van Kemenade
b8ceb43863
Merge pull request #254 from radarhere/auditwheel 2022-02-17 09:56:24 +02:00
Andrew Murray
74080b94f9 Updated comment 2022-02-17 18:55:48 +11:00
Andrew Murray
9ae80a804f Update CHANGES.rst [ci skip] 2022-02-17 18:53:18 +11:00
Hugo van Kemenade
0aca22e863
Merge pull request #6052 from radarhere/p2pa 2022-02-17 09:39:39 +02:00
Hugo van Kemenade
b4e487b731
Merge pull request #6062 from radarhere/copyright 2022-02-17 09:18:57 +02:00
Andrew Murray
d4ee19199c Replaced test image to avoid copyrighted color space 2022-02-17 14:39:18 +11:00
Andrew Murray
6be87277f7 Allow rawmode None to return the palette in the current mode 2022-02-17 10:35:13 +11:00
Andrew Murray
852859476b Added rawmode argument to getpalette() 2022-02-17 10:15:03 +11:00
Hugo van Kemenade
bd4e20f8c2
Merge pull request #6058 from radarhere/relative
Replaced absolute PIL import with relative import
2022-02-17 00:15:53 +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
Andrew Murray
54cb09d8b4 When converting to P, restrict colors to palette size 2022-02-16 11:01:00 +11:00
Andrew Murray
948c064b28 Allow getpalette() to return less than 256 colors 2022-02-16 09:56:13 +11:00
Andrew Murray
10e1731149 Update CHANGES.rst [ci skip] 2022-02-16 07:39:35 +11:00
Hugo van Kemenade
f5a77fed39
Merge pull request #6054 from radarhere/palette 2022-02-15 19:01:07 +02:00
Andrew Murray
9d3c8d2714 Added further typestr entries 2022-02-15 22:30:33 +11:00
Andrew Murray
fbd23bbf28 Clarified code 2022-02-15 22:30:33 +11:00
Andrew Murray
902e3812a8 Use ternary operator 2022-02-15 22:30:33 +11:00
Andrew Murray
3bbcad1ad2 Avoid circular dependency 2022-02-15 22:30:12 +11:00
Andrew Murray
bba493d702 Replaced absolute PIL import with relative import 2022-02-15 21:50:20 +11:00
Hugo van Kemenade
0163e70c87
Merge pull request #253 from radarhere/readme 2022-02-15 09:11:05 +02:00
Andrew Murray
a2313be894 Merged _MODE_CONV typ into ImageMode as typestr 2022-02-15 18:01:02 +11:00
Andrew Murray
95c17a8334 Replaced _MODE_CONV extra with bands length 2022-02-15 17:39:56 +11:00
Andrew Murray
dfdb17671d Added FITS reading 2022-02-15 11:22:46 +11:00
Andrew Murray
9a4106c14f
Merge branch 'main' into enum 2022-02-15 08:12:28 +11:00
Hugo van Kemenade
7b3f28047f
Merge pull request #6053 from radarhere/simplified
Simplified code
2022-02-14 19:16:39 +02:00
Hugo van Kemenade
7736764ce3
Merge pull request #6050 from radarhere/ppc64le
Only skip test if libimagequant is earlier than 4 on ppc64le
2022-02-14 19:15:34 +02:00
Andrew Murray
41a9975377 Moved strcmp outside of loop 2022-02-14 21:50:19 +11:00
Andrew Murray
9cdb0508b6 Attach RGBA palettes from putpalette() when suitable 2022-02-14 20:28:47 +11:00
Andrew Murray
5411263d92 Simplified code 2022-02-14 19:24:47 +11:00
Andrew Murray
83d4f451fa Ensure image is opaque after converting P to PA with RGB palette 2022-02-14 16:10:59 +11:00
Andrew Murray
604c0aa2c1 Removed NumPy instructions [ci skip] 2022-02-14 12:36:46 +11:00
Andrew Murray
45534d130b Only skip test if libimagequant is earlier than 4 on ppc64le 2022-02-14 12:12:33 +11:00
Andrew Murray
993bb23ce0 Do not manually remove temporary files on Unix in get_command() 2022-02-14 09:33:58 +11:00
Hugo van Kemenade
f7648bccfc
Merge pull request #252 from radarhere/harfbuzz 2022-02-13 22:06:19 +02:00
Hugo van Kemenade
cac305f8d2
Merge pull request #6048 from radarhere/harfbuzz 2022-02-13 21:08:29 +02:00
Andrew Murray
b818ad6103 Updated harfbuzz to 3.4.0 2022-02-13 21:58:46 +11:00
Andrew Murray
72f93aeca7 Updated harfbuzz to 3.4.0 2022-02-13 21:57:14 +11:00
Andrew Murray
3ba9587675 Added test 2022-02-12 09:07:17 +11:00
Andrew Murray
e19447cbbb Do not manually remove temporary files on Unix 2022-02-12 08:04:40 +11:00
Andrew Murray
7f8df9d712 Use "title" argument for display 2022-02-12 07:49:27 +11:00
Andrew Murray
70a17080e4 Updated return values to match docstring 2022-02-12 07:49:20 +11:00
Andrew Murray
1646326506 Update CHANGES.rst [ci skip] 2022-02-11 08:23:04 +11:00
mergify[bot]
89768e3d57
Merge pull request #6042 from radarhere/tiff_bits
Clarify code and comments
2022-02-10 21:20:22 +00:00
Hugo van Kemenade
f5fab326fa
Merge pull request #6030 from radarhere/photoshopblocks
Added get_photoshop_blocks() to parse Photoshop TIFF tag
2022-02-10 09:40:17 +02:00
Hugo van Kemenade
6520d44496
Merge pull request #6041 from mikhail-iurkov/tiff_bits
Drop excess values in BITSPERSAMPLE
2022-02-10 09:32:34 +02:00
Andrew Murray
8b6ee688d8 Added release notes for #5959 2022-02-10 13:56:27 +11:00
Andrew Murray
912296200c Added release notes for #5942 2022-02-10 13:53:39 +11:00
Andrew Murray
f797137ab5 Added release notes for #5972 2022-02-10 13:53:35 +11:00
Andrew Murray
657ec4aa3d Added release notes for #5891 2022-02-10 13:53:30 +11:00
Andrew Murray
ef1373838d Added release notes 2022-02-10 12:15:25 +11:00
Andrew Murray
2ae70f144f Added get_photoshop_blocks() to parse Photoshop tag 2022-02-10 12:00:23 +11:00
Andrew Murray
1f82202998 Adjusted comments 2022-02-10 11:08:25 +11:00
Andrew Murray
e098481279 Combined width and height into size 2022-02-10 11:02:13 +11:00
Andrew Murray
b38a67fa12
Merge branch 'main' into enum 2022-02-10 09:52:24 +11:00
Andrew Murray
4e65e2c29d Update CHANGES.rst [ci skip] 2022-02-10 09:47:43 +11:00
Hugo van Kemenade
2d38daca9a
Merge pull request #6038 from radarhere/macos 2022-02-09 17:31:11 +02:00
Mikhail Iurkov
2bbf5f0981
Lint 2022-02-09 16:53:27 +03:00
Mikhail Iurkov
bb5a090f60
Drop excess values in BITSPERSAMPLE 2022-02-09 16:40:43 +03:00
mergify[bot]
1c679a93f9
Merge pull request #6040 from hugovk/fix-docs-return
Fix return in docs
2022-02-09 13:19:48 +00:00
Hugo van Kemenade
8b7c37dc0c
Merge pull request #6035 from nulano/raqm-warn 2022-02-09 14:34:33 +02:00
Hugo van Kemenade
9d106ba619
Merge pull request #6031 from radarhere/unpack 2022-02-09 14:33:19 +02:00
Hugo van Kemenade
601c9d8515 Fix return in docs 2022-02-09 14:28:43 +02:00
Andrew Murray
d7922d1e85 Updated macOS tested Pillow versions [ci skip] 2022-02-09 14:27:21 +11:00
Hugo van Kemenade
4fc553ccfb
Merge pull request #6036 from radarhere/centos_docker 2022-02-08 18:00:27 +02:00
Andrew Murray
9237150431 Added CentOS Stream 9 2022-02-08 23:35:01 +11:00
nulano
a278e0aa65
issue warning if Raqm layout is requested, but Raqm is not available 2022-02-07 23:57:35 +00:00
Andrew Murray
ecb64fe210 Allow 1 mode images to be inverted 2022-02-08 09:12:01 +11:00
DWesl
4d0e294eb0
CI: Revert changes to test.sh
Some early runs needed to explicitly specify the minor version to avoid calling python3.9 which had none of the dependencies installed.
That problem should be fixed.
2022-02-07 17:00:37 -05:00
Hugo van Kemenade
f018518e24
Merge pull request #6017 from radarhere/lcms2
Updated lcms2 to 2.13.1
2022-02-07 13:51:30 +02:00
Hugo van Kemenade
7d31065ad3
Merge pull request #6026 from radarhere/appveyor
Upgraded AppVeyor Python 3.10 image to Visual Studio 2022
2022-02-07 13:51:05 +02:00
Andrew Murray
3114064b16 Removed redundant try catch 2022-02-07 21:06:36 +11:00
Andrew Murray
c6b81d5989 Ensure Tkinter hook is activated for getimage() 2022-02-07 19:15:25 +11:00
Hugo van Kemenade
ab8125fa6b
Merge pull request #6029 from radarhere/harfbuzz
Updated harfbuzz to 3.3.2
2022-02-07 07:12:46 +02: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
85b872deb6 Added unpacker from RGBA;15 to RGB 2022-02-07 10:18:14 +11:00
Andrew Murray
d9a328c02e Updated harfbuzz to 3.3.2 2022-02-07 08:14:09 +11:00
Andrew Murray
718b72c0fd Updated harfbuzz to 3.3.2 2022-02-07 08:13:20 +11:00
DWesl
5588f572de BUG: Only set title in ImageShow.DisplayViewer when title provided 2022-02-06 12:03:36 -05:00
DWesl
b582806887 Merge remote-tracking branch 'upstream/main' into add-cygwin-to-ci 2022-02-06 11:03:11 -05:00
DWesl
2d6dee1dae CI: Try to get Cygwin workflow working. 2022-02-06 07:34:15 -05:00
Andrew Murray
f3762905e0 Upgraded Python 3.10 image to VS 2022 2022-02-06 08:32:37 +11:00
Hugo van Kemenade
71839a7623
Merge pull request #6016 from radarhere/releasenotes
Corrected sentence
2022-02-04 07:13:32 +02: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
Andrew Murray
9434799415 Updated lcms2 to 2.13.1 2022-02-04 03:29:26 +11:00
Andrew Murray
caf6fc60ca Corrected sentence [ci skip] 2022-02-04 03:19:49 +11:00
Ondrej Baranovič
249728197e
brew remove libxcb libxdmcp 2022-02-03 15:27:39 +00:00
Hugo van Kemenade
5a8ad4e443
Merge pull request #6014 from radarhere/libimagequant 2022-02-03 12:19:17 +02:00
Andrew Murray
9d8f173e39 Updated libimagequant to 4.0.0 2022-02-03 18:05:50 +11:00
Andrew Murray
131212368d Install netpbm 2022-02-03 15:55:44 +11:00
DWesl
6b05452d18
Merge pull request #1 from radarhere/add-cygwin-to-ci
CI: Add a Cygwin run to GitHub Actions

There are still a few things that are weird, but this looks much better than what I have now.
2022-02-02 23:02:24 -05:00
Andrew Murray
6fded1ac97 Install cjpeg and djpeg 2022-02-03 14:07:51 +11:00
Andrew Murray
41f6533a9c Pillow -> 9.0.1 2022-02-03 11:39:21 +11:00
Andrew Murray
e3d98c9aca
Merge pull request #6012 from radarhere/releasenotes
Added release notes for 9.0.1
2022-02-03 10:41:04 +11:00
Andrew Murray
8ef2d987ab Added release notes for 9.0.1 2022-02-03 09:48:56 +11:00
Andrew Murray
596eaf35cc Update CHANGES.rst [ci skip] 2022-02-03 09:46:57 +11:00
Andrew Murray
ed283d15ca
Merge pull request #6010 from radarhere/show_file
In show_file, use os.remove to remove temporary images
2022-02-03 09:41:20 +11:00
Andrew Murray
f84ab3bb8a
Merge pull request #6009 from radarhere/eval
Restrict builtins within lambdas for ImageMath.eval
2022-02-03 09:22:22 +11:00
Andrew Murray
10c4f75aaa Added delay after opening image with xdg-open 2022-02-03 08:58:12 +11:00
Andrew Murray
143032103c Updated formatting
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-02-03 08:48:43 +11:00
Andrew Murray
8da80130db In show_file, use os.remove to remove temporary images 2022-02-03 08:48:36 +11:00
Andrew Murray
dd46100bdc Restrict builtins within lambdas for ImageMath.eval 2022-02-03 08:42:53 +11:00
Hugo van Kemenade
eccd853d14
Merge pull request #6007 from radarhere/load 2022-02-02 18:37:26 +02:00
Andrew Murray
05637393a6 Install Pillow directly 2022-02-02 15:31:31 +11:00
Andrew Murray
8d2c56ec1f Upload errors on failure 2022-02-02 15:31:30 +11:00
Andrew Murray
4be3b760f2 Connected Cygwin jobs to mergify 2022-02-02 15:31:30 +11:00
Andrew Murray
728bc7d778 Added matrix to test Python 3.7 and 32-bit 2022-02-02 15:31:30 +11:00
Andrew Murray
629340654c Switched to cygwin/cygwin-install-action 2022-02-02 15:31:20 +11:00
Andrew Murray
e1c27358ba Switched to windows-latest 2022-02-02 14:44:16 +11:00
Andrew Murray
8e3878dec2 Update CHANGES.rst [ci skip] 2022-02-02 14:33:19 +11:00
Andrew Murray
c74313a4c8
Merge pull request #5811 from gaborkertesz-linaro/winarm64
Windows: Enable win-arm64 for MSVC
2022-02-02 14:28:12 +11:00
Andrew Murray
fb7edfda68 Improved consistency of returning an image access object from load() 2022-02-02 11:49:31 +11:00
Luke Granger-Brown
a13ba2ee3b Support Python distributions where _tkinter is compiled in
In some cases, the Tk library may have been directly compiled in or
bundled into the main executable by the time Pillow runs, in which case
__file__ isn't available (nor would it make sense to use, anyway).

If __file__ is missing, then set the library path to None and rely on
our Tk loader being able to find the function pointers within the main
binary - we know we probably have it because we've managed to import it
already.
2022-02-01 19:57:01 +00:00
Gabor Kertesz
22a1f6db5e lcms2: Update to VS2019
In order to enable win-arm64, VS2019 should be used, while other
platforms should work with newer version as well.
Tested on x64-win10.
2022-02-01 09:18:28 +01:00
Gabor Kertesz
f22d3561fd Windows: Enable ARM64 for MSVC
This patch enables ARM64 as a new platform for Windows.
Platform query and documentation is updated accordingly.
2022-02-01 09:18:11 +01:00
Andrew Murray
369124f3c8
Merge pull request #6004 from hugovk/rm-centos-8
Stop testing EOL CentOS 8
2022-02-01 10:17:43 +11:00
mergify[bot]
b4a3b6368d
Merge pull request #6003 from hugovk/update-harfbuzz
Update harfbuzz to 3.3.1
2022-01-31 22:45:09 +00:00
Hugo van Kemenade
54e9decde3 Remove EOL CentOS 8 2022-01-31 23:41:16 +02:00
Hugo van Kemenade
87ab18f804
Update harfbuzz to 3.3.1 2022-01-31 23:27:35 +02:00
Andrew Murray
5512cf9d2a
Merge pull request #6002 from python-pillow/fix-lcms2-url
Fix lcms2 URL
2022-02-01 08:27:02 +11:00
Hugo van Kemenade
cc4f9a2a7d Update harfbuzz to 3.3.0 2022-01-31 20:38:47 +02:00
Hugo van Kemenade
3ac2da533a
Fix lcms2 URL 2022-01-31 18:56:52 +02:00
mergify[bot]
24b5213419
Merge pull request #6001 from nulano/raqm-0.9.0
Remove patch for Raqm<0.9.0
2022-01-31 02:14:05 +00:00
nulano
999ef3e4ea Revert "detect FreeType / HarfBuzz features"
This reverts commit 6565d13275.
2022-01-31 00:11:47 +00:00
mergify[bot]
7d82ac8669
Merge pull request #6000 from radarhere/raqm
Updated raqm to 0.9.0
2022-01-30 22:01:28 +00:00
Andrew Murray
36f293071e Updated raqm to 0.9.0 2022-01-31 08:05:01 +11:00
Hugo van Kemenade
6e1b592218
Merge pull request #5999 from radarhere/windows_latest
Switched from windows-2019 to windows-latest in GitHub Actions
2022-01-30 10:05:08 +02:00
Andrew Murray
d8e94c206e Switched from windows-2019 to windows-latest 2022-01-30 14:40:30 +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
Hugo van Kemenade
5fdf29f13b
Merge pull request #5998 from radarhere/lcms2 2022-01-30 00:26:58 +02:00
Andrew Murray
7ab973c4c9 Updated lcms2 to 2.13 2022-01-30 08:01:35 +11:00
Andrew Murray
b1885f27f0 Updated lcms2 to 2.13 2022-01-30 07:59:00 +11:00
Hugo van Kemenade
c3845a934b
Merge pull request #5996 from radarhere/parametrize
Parametrize test
2022-01-29 09:12:26 +02:00
Andrew Murray
179cdd4444 Merge branch 'main' into add-cygwin-to-ci 2022-01-29 13:59:37 +11:00
DWesl
1b6a8c6122 TST: Parametrize numpy roundtrip to find failing case
Segfaults are annoying to debug.
2022-01-29 13:07:27 +11:00
Hugo van Kemenade
be51f57309
Merge pull request #5995 from radarhere/raqm 2022-01-28 18:06:42 +02:00
Andrew Murray
04a3ac32a0 Updated raqm to 0.8.0 2022-01-28 22:04:57 +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
Hugo van Kemenade
1c622714f0
Merge pull request #5994 from radarhere/badges
Updated GitHub Actions badges
2022-01-28 07:27:36 +02:00
Andrew Murray
bd63a49bcd Added MinGW GitHub Actions badge 2022-01-28 11:25:24 +11:00
Andrew Murray
5848726cad Link directly to workflow pages 2022-01-28 11:23:51 +11:00
Andrew Murray
546573fa3d Added Lint badge 2022-01-28 11:13:54 +11:00
Hugo van Kemenade
8e4a618b55
Merge pull request #5989 from radarhere/raqm 2022-01-26 10:50:32 +02:00
Hugo van Kemenade
47e233a6cf
Merge pull request #5987 from radarhere/deprecations 2022-01-26 10:46:55 +02:00
Andrew Murray
93008c2095 Upgraded raqm to 0.8.0 2022-01-26 12:23:43 +11:00
Andrew Murray
1d91f6dce5 Document when file argument will be removed 2022-01-26 09:08:41 +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
76115e3c1b
Merge pull request #5985 from radarhere/psd
Removed unused variables
2022-01-24 07:49:01 +02: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
31aa2ad98c Removed unused variables 2022-01-24 11:06:41 +11: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
Andrew Murray
eb1fc4ad9f Added pytest skip message 2022-01-24 07:47:44 +11:00
Hugo van Kemenade
0a49ec1cc0
Merge pull request #5891 from shamrin/stable-jupyter-text-output
Keep IPython/Jupyter text/plain output stable
2022-01-23 10:29:50 +02:00
Andrew Murray
e05b8d7481 libwebp 1.2.2 fixed endian bugs 2022-01-23 08:56:14 +11:00
mergify[bot]
c4a1e08d23
Merge pull request #5982 from radarhere/webp
Updated libwebp to 1.2.2
2022-01-21 23:15:02 +00:00
Andrew Murray
54f85ddcad Updated libwebp to 1.2.2 2022-01-22 09:30:12 +11:00
Andrew Murray
4eb80cb6bf Update CHANGES.rst [ci skip] 2022-01-22 09:14:01 +11:00
Hugo van Kemenade
53d0dd5ed1
Merge pull request #5972 from radarhere/crop 2022-01-21 08:37:28 +02:00
Andrew Murray
b894c8c73d Connected discontiguous polygon corners 2022-01-21 11:55:59 +11:00
Andrew Murray
591231bbb4
Changed error wording
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-01-21 08:19:27 +11:00
Hugo van Kemenade
48d32fe81f
Merge pull request #5977 from radarhere/tk 2022-01-20 12:28:59 +02:00
Andrew Murray
ef99a73473 Clarified that version numbers refer to Tk, not Pillow 2022-01-20 10:04:35 +11:00
Andrew Murray
67944cedc7 Always save with contiguous planar configuration 2022-01-18 19:40:57 +11:00
Hugo van Kemenade
2a69567eb1
Merge pull request #242 from radarhere/link
Updated link
2022-01-18 09:20:07 +02:00
Hugo van Kemenade
08df73cf66
Merge pull request #5969 from radarhere/links
Updated links
2022-01-18 09:19:44 +02:00
Andrew Murray
af90dd773b Raise an error when performing a negative crop 2022-01-18 16:38:00 +11:00
Andrew Murray
b38f4e7c33 Updated link [ci skip] 2022-01-18 14:29:56 +11:00
Andrew Murray
a77babd6a4 Updated links 2022-01-18 14:26:52 +11:00
Andrew Murray
c692fb42f8 Fixed comparison warnings 2022-01-18 14:19:43 +11:00
Andrew Murray
ddb0a6393f Added test 2022-01-18 11:46:29 +11:00
Andrew Murray
acd33bf62a Removed unused images 2022-01-18 09:10:36 +11:00
Andrew Murray
1be53c8bb3 Removed debugging 2022-01-18 09:08:50 +11:00
Hugo van Kemenade
83d369a347
Merge pull request #5964 from radarhere/macos 2022-01-17 10:19:58 +02:00
Hugo van Kemenade
70ba8bf964
Merge pull request #5965 from radarhere/docker 2022-01-17 09:49:37 +02:00
Andrew Murray
c8d650f383 Added Debian 11 Bullseye 2022-01-17 14:07:30 +11:00
Andrew Murray
b53cb3f675 Updated macOS tested Pillow versions [ci skip] 2022-01-17 09:47:27 +11:00
Andrew Murray
730e24e163 Update CHANGES.rst [ci skip] 2022-01-17 07:35:11 +11:00
Hugo van Kemenade
95c7083063
Merge pull request #5959 from radarhere/imageshow_file 2022-01-16 14:41:28 +02:00
Hugo van Kemenade
2378d40769
Merge pull request #5961 from radarhere/pip_install
Invoke pip using Python
2022-01-16 09:15:11 +02:00
Andrew Murray
1ac96dc923 Invoke pip using Python 2022-01-16 14:09:12 +11:00
Andrew Murray
5df83a57ff Documented deprecation 2022-01-16 11:38:34 +11:00
Andrew Murray
26496a6c98 Update CHANGES.rst [ci skip] 2022-01-16 10:52:22 +11:00
Hugo van Kemenade
47bac9b6bb
Merge pull request #5956 from radarhere/spider 2022-01-15 18:14:59 +02:00
Andrew Murray
86944abbab Deprecated show_file "file" argument in favour of "path" 2022-01-15 16:08:37 +11:00
Andrew Murray
ed8073e846 Deprecated constants in favour of enums 2022-01-15 10:07:07 +11:00
Andrew Murray
f8e4e9c2dd Added enums 2022-01-15 09:02:31 +11:00
Andrew Murray
fe32501922 Corrected allocation 2022-01-14 10:16:35 +11:00
Andrew Murray
a9441a475d Added IREC header entry for use with Bio-formats library 2022-01-12 17:29:25 +11:00
Andrew Murray
ba86d90a00 Simplified code 2022-01-12 15:17:04 +11:00
mergify[bot]
fd2b07c454
Merge pull request #5955 from hugovk/link-cwe
Autolink CWE numbers with sphinx-issues
2022-01-11 23:56:03 +00:00
Hugo van Kemenade
2885b7f3ff
Dont need to pin for GHA
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-01-12 01:25:58 +02:00
Hugo van Kemenade
47fe0b1b9f Autolink CWE numbers with sphinx-issues 2022-01-11 18:48:56 +02:00
Hugo van Kemenade
51a9dad82d
Merge pull request #5953 from radarhere/verbose 2022-01-11 15:14:23 +02:00
Andrew Murray
01e7b3943d Simplified code 2022-01-11 13:50:57 +11:00
Andrew Murray
9c6df29b4d Removed unreachable error 2022-01-11 13:50:57 +11:00
Andrew Murray
90f3f72e19 Removed unused constant 2022-01-11 13:30:51 +11:00
Andrew Murray
9a9afd36b4
Merge pull request #5935 from FirefoxMetzger/add-missing-ImageModes
Add missing ImageModes
2022-01-11 11:56:16 +11:00
Sebastian Wallkötter
11dd543837 remove mode BGR 2022-01-10 08:17:53 +01:00
Andrew Murray
2d7c1bcc9d Update CHANGES.rst [ci skip] 2022-01-10 16:42:26 +11:00
Hugo van Kemenade
ac7f42c2c6
Merge pull request #5946 from radarhere/file_pointer
Ensure duplicated file pointer is closed
2022-01-10 07:38:17 +02:00
Andrew Murray
6e5e45a9ec Ensure duplicated file pointer is closed 2022-01-09 16:10:12 +11:00
DWesl
4e7e70fd79 CI: Install netpbm and dependencies on Cygwin CI. 2022-01-08 10:08:18 -05:00
Hugo van Kemenade
eff6c34bd1
Merge pull request #5942 from radarhere/error 2022-01-08 10:55:38 +02:00
Andrew Murray
2d9dfefe6e Added specific error if coordinate type is incorrect 2022-01-08 13:47:51 +11:00
Andrew Murray
7191555d89
Merge pull request #5940 from hugovk/add-cves
Add CVE IDs
2022-01-08 09:59:29 +11:00
Hugo van Kemenade
b2c6db8d3b Add CVE IDs 2022-01-07 22:48:26 +02:00
DWesl
a23131c22e CI: Stop trying to run the netpbm tests. 2022-01-07 14:49:45 -05:00
DWesl
7ad8fdb677 CI: Get all the tests running on Cygwin. 2022-01-07 14:34:30 -05:00
Hugo van Kemenade
5908ccc5ae
Merge pull request #5938 from radarhere/zero
Return an empty bytestring from tobytes() for an empty image
2022-01-07 08:34:50 +02:00
Hugo van Kemenade
3ca33707dc
Merge pull request #5937 from radarhere/duplicate
Removed duplicate check
2022-01-07 08:26:20 +02:00
Andrew Murray
b5160591bc Return an empty bytestring from tobytes() for an empty image 2022-01-07 16:29:38 +11:00
Andrew Murray
fbe396f22a Removed duplicate check 2022-01-07 12:34:58 +11:00
Sebastian Wallkötter
f40c005399 Add missing ImageModes
The modes are mentioned in the docs, but weren't part of ImageMode.
2022-01-06 07:58:57 +01:00
Hugo van Kemenade
0648692b2c
Merge pull request #5934 from radarhere/setup 2022-01-06 00:28:29 +02:00
Andrew Murray
5a35e7baee Replaced direct invocation of setup.py 2022-01-06 06:19:51 +11:00
Andrew Murray
3f77466f11
Merge pull request #5930 from hugovk/rm-__eq__-readonly
Remove readonly from Image.__eq__
2022-01-05 08:45:58 +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
Hugo van Kemenade
e077229d7a Remove readonly from Image.__eq__ 2022-01-04 11:32:15 +02:00
Andrew Murray
1359e70d7e Updated names for mergify 2022-01-04 09:29:34 +11:00
mergify[bot]
9f6e947269
Merge pull request #5925 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-01-03 19:42:00 +00: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]
52f29a537d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-01-03 17:11:34 +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
pre-commit-ci[bot]
3446537c60
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 911470a610e47d9da5ea938b0887c3df62819b85 → f1d4e742c91dd5179d742b0db9293c4472b765f8](911470a610...f1d4e742c9)
- [github.com/PyCQA/isort: fd5ba70665a37ec301a1f714ed09336048b3be63 → c5e8fa75dda5f764d20f66a215d71c21cfa198e1](fd5ba70665...c5e8fa75dd)
- [github.com/asottile/yesqa: 644ede78511c02fc6f8e03e014cc1ddcfbf1e1f5 → 35cf7dc24fa922927caded7a21b2a8cb04bf8e10](644ede7851...35cf7dc24f)
- [github.com/PyCQA/flake8: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 → cbeb4c9c4137cff1568659fcc48e8b85cddd0c8d](dcd740bc0e...cbeb4c9c41)
- [github.com/pre-commit/pre-commit-hooks: 38b88246ccc552bffaaf54259d064beeee434539 → 8fe62d14e0b4d7d845a7022c5c2c3ae41bdd3f26](38b88246cc...8fe62d14e0)
2022-01-03 17:10:44 +00:00
Andrew Murray
05b63366df 9.1.0.dev0 version bump 2022-01-03 09:22:31 +11: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
Andrew Murray
82541b6dec 9.0.0 version bump 2022-01-02 20:51:23 +11:00
Andrew Murray
cae5ac495b
Merge pull request #5924 from radarhere/cves
CVEs TBD
2022-01-02 19:53:13 +11:00
Andrew Murray
ed4cf78137 CVEs TBD 2022-01-02 18:09:45 +11:00
mergify[bot]
d7f60d1d5a
Merge pull request #5923 from radarhere/imagemath_eval
Restrict builtins for ImageMath.eval()
2022-01-02 07:04:41 +00: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
8531b01d6c Restrict builtins for ImageMath.eval 2022-01-02 17:23:49 +11: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
Hugo van Kemenade
1efb1d9fab
Merge pull request #5922 from radarhere/releasenotes 2022-01-01 15:25:11 +02:00
Andrew Murray
f6c78713a4 Added release notes for #5919, #5920 and #5921 2022-01-01 22:10:48 +11:00
Andrew Murray
032d2dc365 Update CHANGES.rst [ci skip] 2022-01-01 22:00:12 +11:00
mergify[bot]
baae9ec4b6
Merge pull request #5921 from radarhere/jpeg_eoi
Ensure JpegImagePlugin stops at the end of a truncated file
2022-01-01 10:58:21 +00:00
Andrew Murray
1059eb5376 If appended EOI did not work, do not keep trying 2022-01-01 21:04:32 +11:00
Andrew Murray
525c840b0f Updated path after pillow-wheels switched to libjpeg-turbo 2022-01-01 20:15:06 +11:00
Hugo van Kemenade
7291c3827f
Merge pull request #5918 from radarhere/main
Updated copyright year
2022-01-01 10:41:07 +02:00
Andrew Murray
5543e4e2d4
Merge pull request #5920 from radarhere/calloc
Fixed ImagePath.Path array handling
2022-01-01 19:16:11 +11:00
Andrew Murray
c48271ab35 Handle case where path count is zero 2022-01-01 15:44:04 +11:00
Andrew Murray
1e092419b6 Initialize coordinates to zero 2022-01-01 15:44:04 +11:00
Andrew Murray
a8f90a3916
Merge pull request #5919 from radarhere/duplicate
Remove consecutive duplicates that only differ by their offset
2022-01-01 15:35:10 +11:00
Andrew Murray
7370a0b1cf Remove consecutive duplicates that only differ by their offset 2022-01-01 14:54:23 +11:00
Andrew Murray
0bb3f87dcc
Updated copyright year 2022-01-01 10:40:57 +11:00
Andrew Murray
89d0d38796
Merge pull request #5917 from radarhere/releasenotes
Added release notes for pillow-wheels#237
2021-12-31 19:30:35 +11:00
Andrew Murray
949b431f03 Added release notes for pillow-wheels#237 2021-12-31 18:09:44 +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
Hugo van Kemenade
1d3fbf2049
Merge pull request #5915 from radarhere/load 2021-12-30 10:39:08 +02:00
Hugo van Kemenade
25165c1f0f
Merge pull request #5916 from radarhere/libimagequant 2021-12-30 10:37:20 +02:00
Andrew Murray
bd05a8dd13 Updated libimagequant to 2.17.0 2021-12-30 15:42:30 +11:00
Andrew Murray
6565d5b1f3
Merge pull request #5517 from kmilos/patch-1
Explicitly enable strip chopping for large uncompressed TIFFs
2021-12-30 15:34:02 +11:00
Andrew Murray
8e9da1559b Lint fix 2021-12-30 14:47:59 +11:00
Andrew Murray
cdb0fba2ed Removed redundant part of condition 2021-12-30 11:45:40 +11:00
mergify[bot]
b5387b4e5a
Merge pull request #236 from radarhere/fixes
Fix failing main build
2021-12-29 17:18:50 +00:00
mergify[bot]
aa287bc934
Merge pull request #5913 from radarhere/sys
Added sys import
2021-12-29 14:14:43 +00:00
Andrew Murray
1998d12bb6 Added sys import 2021-12-30 00:11:20 +11:00
Andrew Murray
4d1d2c9855
Merge pull request #5807 from DWesl/tkimaging-on-cygwin
Use the Windows method to get TCL functions on Cygwin
2021-12-30 00:08:31 +11: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
Andrew Murray
d8f2fb50a4
Merge pull request #5404 from radarhere/feed
Changed error type to allow for incremental WebP parsing
2021-12-29 07:33:56 +11:00
Andrew Murray
e61336681b Update CHANGES.rst [ci skip] 2021-12-28 19:17:31 +11:00
Hugo van Kemenade
3c39be3bc2
Merge pull request #5901 from radarhere/i16
Improved I;16 operations on big endian
2021-12-28 10:12:00 +02:00
Hugo van Kemenade
fccc261386
Merge pull request #5899 from radarhere/bmp
Ensure that BMP pixel data offset does not ignore palette
2021-12-28 10:10:08 +02:00
Hugo van Kemenade
17ec8b5c98
Merge pull request #5879 from radarhere/quantize
Limit quantized palette to number of colors
2021-12-28 10:08:54 +02:00
Hugo van Kemenade
39de05363a
Merge pull request #5870 from radarhere/setup
Use latin1 encoding to decode bytes
2021-12-28 10:07:44 +02:00
Hugo van Kemenade
cc670c940e
Merge pull request #5869 from radarhere/quantize_palette
Fixed palette index for zeroed color in FASTOCTREE quantize
2021-12-28 10:05:58 +02:00
Hugo van Kemenade
f560707def
Merge pull request #5859 from radarhere/saving_rgba_gif
When saving RGBA to GIF, make use of first transparent palette entry
2021-12-28 10:04:10 +02:00
Hugo van Kemenade
1806cf5607
Merge pull request #5848 from radarhere/sampleformat
Pass SAMPLEFORMAT to libtiff
2021-12-28 10:03:16 +02:00
Hugo van Kemenade
e7b53259d1
Merge pull request #5824 from radarhere/l_macro
Added rounding when converting P and PA
2021-12-28 10:02:36 +02:00
Andrew Murray
44bd03fb6e Update CHANGES.rst [ci skip] 2021-12-28 18:56:25 +11:00
Hugo van Kemenade
8e631e4cd9
Merge pull request #5910 from radarhere/putdata
Improved putdata() documentation and data handling
2021-12-28 09:53:33 +02:00
Andrew Murray
aeb549ef8f Fixed unpacking I;16B to I;16 on big endian 2021-12-28 17:38:01 +11:00
Andrew Murray
4b7b07de70 Fixed JPEG2000 I;16 images on big endian 2021-12-28 17:06:05 +11:00
Andrew Murray
16167e82e6 Update CHANGES.rst [ci skip] 2021-12-28 12:00:32 +11:00
Andrew Murray
43b800d933
Merge pull request #5912 from radarhere/fix-pdf-redos-carriage-return
Exclude carriage return in PDF regex to help prevent ReDoS
2021-12-28 11:53:43 +11:00
Hugo van Kemenade
dd8049363e Use more specific regex chars to prevent ReDoS - exclude carriage return 2021-12-28 10:22:39 +11:00
Andrew Murray
e0d5417bcd Raise an error if sequence is not flattened 2021-12-28 09:38:41 +11:00
Andrew Murray
e9294d890f Accept float values for putdata() in Python 3.10 2021-12-28 09:38:41 +11:00
Andrew Murray
020308a7be Clarified that the sequence object for putdata() should be flattened 2021-12-28 09:38:41 +11:00
Hugo van Kemenade
282d8250c6
Merge pull request #5908 from radarhere/none 2021-12-27 15:44:40 +02:00
Andrew Murray
9bc02adcb4 Update CHANGES.rst [ci skip] 2021-12-27 17:10:14 +11:00
Andrew Murray
7adab8f21f
Merge pull request #5909 from radarhere/transform
Fixed freeing pointer in ImageDraw.Outline.transform
2021-12-27 16:25:24 +11:00
Andrew Murray
4222605442 Fixed freeing pointer 2021-12-27 13:39:37 +11:00
Andrew Murray
0af91de452 Image.NONE is only used for resampling and dithers 2021-12-27 12:27:06 +11:00
DWesl
fa536b4d34 Merge branch 'main' of upstream into add-cygwin-to-ci 2021-12-26 14:28:29 -05:00
Hugo van Kemenade
11c536b6d4
Merge pull request #5907 from radarhere/assert_image
Do not compare properties to themselves
2021-12-26 09:38:25 +02:00
Andrew Murray
73ccda9cd1 Do not compare properties to themselves 2021-12-26 13:27:41 +11:00
Alex Clark
9d0703a8a8
Merge pull request #5763 from python-pillow/new-badge 2021-12-25 07:21:33 -05:00
Hugo van Kemenade
1e847256db
Merge pull request #5905 from radarhere/xdgviewer
Added release notes for #5897
2021-12-24 17:52:05 +02:00
Hugo van Kemenade
bf1583fe03
Merge pull request #5906 from radarhere/pip_install
Replaced further direct invocations of setup.py
2021-12-24 13:14:53 +02:00
Andrew Murray
c202fc7f93 Replaced further direct invocations of setup.py 2021-12-24 11:12:51 +11:00
Andrew Murray
b07404e140 Added release notes for #5897 2021-12-24 09:05:54 +11:00
Andrew Murray
8568fab63e Update CHANGES.rst [ci skip] 2021-12-24 08:15:33 +11:00
Hugo van Kemenade
1510efb647
Merge pull request #5897 from m-shinder/main
Added ImageShow support for xdg-open
2021-12-23 08:32:16 +02:00
Andrew Murray
d0faeb4e5e
Added XDGViewer class 2021-12-23 11:15:29 +11:00
Hugo van Kemenade
960da06557
Merge pull request #5902 from radarhere/typo
Fixed typo
2021-12-22 12:13:23 +02:00
Andrew Murray
34ad580f42 Fixed typo 2021-12-22 16:42:39 +11:00
Alex Clark
085b05d87b Lint fix 2021-12-21 11:02:14 -05:00
Andrew Murray
ff723e45ab Ensure that pixel data offset does not ignore palette 2021-12-21 12:43:50 +11:00
Alex Clark
7a426109a1 Add lock file 2021-12-20 13:19:45 -05:00
mihail
5cca90a37c
Add: XDGViewer which uses xdg-open
Synopsis

xdg-open { file | URL }

xdg-open { --help | --manual | --version }

Use 'man xdg-open' or 'xdg-open --manual' for additional info.
2021-12-20 12:09:07 +03:00
mergify[bot]
591e79e01e
Merge pull request #5862 from kolibril13/pathlib
Added PIL + pathlib Tutorial
2021-12-19 23:11:07 +00:00
Andrew Murray
a12c18608e
Corrected variable name 2021-12-20 09:39:09 +11:00
Jan-Hendrik Müller
36caa53fed
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-12-19 22:48:23 +01:00
Hugo van Kemenade
0badf97592
Merge pull request #5896 from radarhere/pip_install 2021-12-19 15:39:47 +02:00
Jan-Hendrik Müller
6b871fa18a
Merge pull request #1 from radarhere/pathlib
Improved batch processing example in tutorial
2021-12-19 13:28:52 +01:00
Jan-Hendrik Müller
cd613e6850
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-12-19 13:26:30 +01:00
Andrew Murray
e94a54ce25 Replaced further direct invocations of setup.py 2021-12-19 12:13:37 +11:00
DWesl
77c8a07f1c DOC: Rearrange the Cygwin entries on the support matrix.
From a suggestion on the PR, make it clearer that Cygwin runs on
Windows.  Also record the Cygwin versions in the check against Python
versions.
2021-12-18 10:07:36 -05:00
DWesl
b9fee08c59 TST: Parametrize numpy roundtrip to find failing case
Segfaults are annoying to debug.
2021-12-18 10:00:14 -05:00
DWesl
1c25d95d5a CI: Get cygwin tests running
They segfault in one of the NumPy tests, but they run.
2021-12-18 09:55:24 -05:00
Andrew Murray
6c8ac0e700 Added "os" example 2021-12-18 21:59:09 +11:00
Andrew Murray
946571d4a3 Moved batch processing example under "More on reading images" 2021-12-18 21:23:07 +11:00
Andrew Murray
d455abffee Moved all pathlib logic out of function 2021-12-18 21:16:50 +11:00
Andrew Murray
a1677ead44 Switched from deprecated "setup.py install" to "pip install ." 2021-12-18 19:43:23 +11:00
Andrew Murray
e7e05e2701 GHA: Restored macos-latest for PyPy builds 2021-12-18 19:39:05 +11:00
pre-commit-ci[bot]
56d630294c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-12-15 20:39:43 +00:00
Alexey Shamrin
b3cb55f823
keep IPython/Jupyter text/plain output stable 2021-12-15 22:35:32 +02:00
Hugo van Kemenade
2a38670169
Merge pull request #5888 from radarhere/gha_pypy 2021-12-15 11:14:04 +02:00
Andrew Murray
603fb34701 GHA: Still use macos-latest for non-PyPy builds 2021-12-15 08:10:12 +11:00
Andrew Murray
6899f06cf9 Update CHANGES.rst [ci skip] 2021-12-15 07:26:19 +11:00
mergify[bot]
f4c010b188
Merge pull request #5856 from cmbruns/cmbruns/grayscale-16-bit-qimage
Support 16-bit grayscale ImageQt conversion
2021-12-14 20:24:27 +00:00
Andrew Murray
768c189a29 Correct image by scaling pixels 2021-12-15 06:39:05 +11:00
Christopher Bruns
e87745d9ec Check if installed Qt version supports Format_Grayscale16 2021-12-15 06:39:05 +11:00
Christopher Bruns
b1cc094f57 Add 16-bit grayscale test 2021-12-15 06:39:05 +11:00
Christopher Bruns
6aca23cfa3 Support 16-bit grayscale ImageQt conversion. 2021-12-15 06:39:05 +11:00
Andrew Murray
c43f55121c
Merge pull request #5886 from hugovk/gha-macos-10.15
GHA: Use macos-10.15 to fix build
2021-12-15 06:34:43 +11:00
Hugo van Kemenade
5b023c7d48 GHA: Use macos-10.15 to fix build 2021-12-14 17:10:09 +02:00
Hugo van Kemenade
a0ec5b7095
Merge pull request #5885 from hugovk/effbot 2021-12-14 12:57:32 +02:00
Hugo van Kemenade
8c405a9ab5 Dedicate the release to Fredrik Lundh 2021-12-13 23:43:04 +02:00
Hugo van Kemenade
aec595a10c
Merge pull request #235 from radarhere/harfbuzz 2021-12-12 11:15:50 +02:00
Hugo van Kemenade
383379567a
Merge pull request #5883 from radarhere/harfbuzz 2021-12-12 11:15:46 +02:00
Andrew Murray
97afc0daeb Updated harfbuzz to 3.2.0 2021-12-12 16:00:01 +11:00
Andrew Murray
3378799b4d Updated harfbuzz to 3.2.0 2021-12-12 15:59:29 +11:00
DWesl
7fd3e9977e CI: Make sure correct version of python is used for testing.
Cygwin is trying to use the highest-available Python version.
One of the Python packages has scripts in /usr/bin that should be in the python39- subpackage.
2021-12-11 15:59:45 -05:00
DWesl
90cf149cbe CI: Fix the spelling on the codecov repository. 2021-12-11 15:17:28 -05:00
DWesl
4cfb1a854f CI: Use the new GitHub Action for codecov
The old bash downloader will be removed soon.
2021-12-11 15:13:56 -05:00
DWesl
407abbfa18 CI: Try to get tests fully working
The actual test step wasn't running, so try to run that as a shell
script rather than an executable.  Also get more of the dependencies
installed.
2021-12-11 15:12:31 -05:00
DWesl
9ec4034bff CI: Incorporate suggestions from PR.
Upload coverage information, add Cygwin to the list of systems with CI,
space out entries.
2021-12-11 08:27:35 -05:00
Andrew Murray
ec198899f6 Limit quantized palette to number of colors 2021-12-11 16:23:37 +11:00
Andrew Murray
fdec387b4a Fixed palette index for zeroed color in FASTOCTREE quantize 2021-12-11 16:07:45 +11:00
DWesl
1daaf9273c CI: Split the config check from the actual test.
I'm using selftest.py to check whether I've installed everything.
Pytest actually finds and runs the tests.  For some reason that wasn't
running earlier.
2021-12-10 21:53:43 -05:00
DWesl
cd087c6007 CI: Fix the path to the build wheels.
setup.py bdist_wheel goes to dist/*.whl
pip wheel goes to *.whl
2021-12-10 21:20:47 -05:00
DWesl
8ebac45f24 CI: Explicitly use dash to get shell globbing. 2021-12-10 21:14:41 -05:00
DWesl
a4495decf8 CI: Stop using dash so the DOS line endings don't throw things off. 2021-12-10 19:57:44 -05:00
DWesl
b798989f33 CI: Make sure all python requirements are installed in Cygwin CI.
For some reason wheel wasn't installed properly.
2021-12-10 19:08:28 -05:00
DWesl
67bef87a07 CI: Specify where the command line goes in the shell.
I think this is how specifying the shell works.  The documentation
isn't terribly clear.
2021-12-10 18:21:23 -05:00
DWesl
fdbb1870d4 CI: Add a cygwin run to GitHub Actions.
Requested for the _imagingtk fix.
2021-12-10 08:52:46 -05:00
Hugo van Kemenade
cc927343da
Merge pull request #5876 from radarhere/libimagequant 2021-12-08 13:42:37 +02:00
Andrew Murray
7b201798ad Updated libimagequant to 2.17.0 2021-12-08 19:00:50 +11:00
Hugo van Kemenade
421e7f3c5a
Merge pull request #5872 from radarhere/safe_read 2021-12-07 15:30:56 +02:00
Andrew Murray
5c05fe4d9b Fixed raising OSError in _safe_read when size is greater than SAFEBLOCK 2021-12-07 11:40:44 +11:00
Hugo van Kemenade
81a3f68cf7
Merge pull request #5874 from radarhere/gif 2021-12-06 23:34:23 +02:00
Andrew Murray
6f2f01b23f Added release notes for #5857 2021-12-07 06:46:07 +11:00
Andrew Murray
0e10a5cc7b When saving RGBA, make use of first transparent palette entry 2021-12-07 06:37:01 +11:00
Andrew Murray
6791112a98 Update CHANGES.rst [ci skip] 2021-12-07 06:32:12 +11:00
Hugo van Kemenade
94ca035495
Merge pull request #5857 from radarhere/gif 2021-12-06 20:58:21 +02:00
Andrew Murray
722126aa0a Use latin1 encoding to decode bytes 2021-12-05 15:59:27 +11:00
Andrew Murray
c5d9223a8b
Merge pull request #5861 from hugovk/workflow_dispatch
GHA: Add workflow_dispatch to enable manually triggering builds
2021-12-05 15:48:37 +11:00
Andrew Murray
06372b5e4b
Merge pull request #5798 from ilai-deutel/fix-webp-memory-leak
WebP: Fix memory leak during decoding on failure
2021-12-05 14:54:16 +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
mergify[bot]
fa2bbf76f4
Merge pull request #5867 from radarhere/freetype
Updated freetype to 2.11.1
2021-12-04 21:50:00 +00:00
Andrew Murray
5549e629c1 Updated freetype to 2.11.1 2021-12-05 00:58:34 +11:00
Andrew Murray
37339ce9ed Updated freetype to 2.11.1 2021-12-05 00:57:36 +11:00
Alex Clark
ca8fc4872f Update lock file 2021-12-04 08:26:18 -05:00
Hugo van Kemenade
2d769b0842
Merge pull request #5866 from radarhere/code 2021-12-04 09:43:08 +02:00
Andrew Murray
85a27c145d Python variables are one word 2021-12-04 07:50:12 +11:00
Andrew Murray
675c5e1a9c Apply black formatting to code examples 2021-12-04 07:50:08 +11:00
Alex Clark
789fcb8b05 Remove sphinx for testing tidelift alignment 2021-12-03 07:26:39 -05:00
Alex Clark
360b1693d4 Add packaging remove docutils 2021-12-02 11:34:53 -05:00
Jan-Hendrik Müller
cab7d8a8ab
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-12-02 16:20:13 +01:00
Alex Clark
1d82b6b74e Add pipenv files for tidelift cli 2021-12-01 19:14:50 -05:00
Jan-Hendrik Müller
21351c8982
Update docs/handbook/tutorial.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-12-01 23:23:17 +01:00
Jan-Hendrik Müller
52ac725ae0
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-12-01 23:06:52 +01:00
Alex Clark
d23afb3e26
Update .github/workflows/tidelift.yml
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-12-01 17:05:02 -05:00
Alex Clark
ae4d5d913c Not deprecated, re-add org and proj 2021-12-01 14:15:40 -05:00
Alex Clark
c373ac188c Remove org and proj because deprecated, I think 2021-12-01 14:13:07 -05:00
Alex Clark
91fb7fc067 Add hugovk suggestion 2021-12-01 13:58:13 -05:00
Jan-Hendrik Müller
af924a1f96 added pathlib tutorial 2021-12-01 17:21:21 +01:00
Hugo van Kemenade
915d014136 GHA: Change condition to allow manually building wheels in forks 2021-12-01 12:42:11 +02:00
Hugo van Kemenade
22ad04743c GHA: Add workflow_dispatch to enable manually triggering builds 2021-11-30 22:14:34 +02:00
Andrew Murray
eeb685b6c4 GIFs change mode for later frames [ci skip] 2021-11-29 18:50:22 +11:00
Andrew Murray
1fb1bec0e8 Added test 2021-11-29 17:49:19 +11:00
Andrew Murray
6337428df1 Loading transparent pixels in C from subsequent GIF frames is no longer a problem 2021-11-29 17:49:12 +11:00
Andrew Murray
b383a175be Convert subsequent GIF frames to RGB or RGBA 2021-11-29 17:49:06 +11:00
Hugo van Kemenade
bd00cd9214
Merge pull request #5853 from radarhere/harfbuzz 2021-11-27 10:28:37 +02:00
Andrew Murray
1c54a4be45 Updated harfbuzz to 3.1.2 2021-11-27 14:55:54 +11:00
Andrew Murray
317247fab2 Update CHANGES.rst [ci skip] 2021-11-26 00:14:33 +11:00
Andrew Murray
ab6efcb925
Merge pull request #5665 from infmagic2047/master
Do not return in ImageFile when saving to stdout
2021-11-26 00:12:40 +11:00
Hugo van Kemenade
848a56f0b1
Merge pull request #5851 from radarhere/context_managers 2021-11-25 15:00:15 +02:00
Andrew Murray
3a302f3e4b Only add test to PPM 2021-11-25 23:33:59 +11:00
Andrew Murray
3af00edc85 Added context managers 2021-11-25 23:16:07 +11:00
Hugo van Kemenade
0bd97c3df9
Merge pull request #5849 from radarhere/fromarray 2021-11-23 12:18:45 +02:00
Andrew Murray
cea84e6b2d Improved explanation of fromarray "mode" parameter 2021-11-23 20:35:35 +11:00
Andrew Murray
2e9193a485 Pass SAMPLEFORMAT to libtiff 2021-11-23 08:10:18 +11:00
Hugo van Kemenade
ae7c2cb2e6
Merge pull request #5847 from radarhere/documentation 2021-11-22 09:36:44 +02:00
Andrew Murray
e06e18a8ef Added release notes for #5829 2021-11-22 10:12:48 +11:00
Andrew Murray
9dad104385 Added release notes for #5694 2021-11-22 09:56:32 +11:00
Andrew Murray
db6e75156c Document polygon width parameter 2021-11-22 09:49:35 +11:00
Andrew Murray
b70384653e Corrected parameter order 2021-11-22 09:48:31 +11:00
Andrew Murray
2ad8573581 Update CHANGES.rst [ci skip] 2021-11-22 08:50:38 +11:00
Hugo van Kemenade
c7a90551ae
Merge pull request #5829 from radarhere/tga_orientation 2021-11-21 14:14:41 +02:00
Hugo van Kemenade
877d97e858
Merge pull request #5845 from radarhere/icns 2021-11-21 14:12:01 +02:00
Hugo van Kemenade
b692faf596
Merge pull request #5839 from radarhere/tiff 2021-11-21 13:59:12 +02:00
Hugo van Kemenade
c857366d39
Merge pull request #5694 from radarhere/polygon_width 2021-11-21 13:58:18 +02:00
Hugo van Kemenade
059503b9c0
Merge pull request #5844 from radarhere/numpy_array 2021-11-21 13:06:15 +02:00
Andrew Murray
838c8efa25 Corrected file length in header 2021-11-20 14:17:42 +11:00
Andrew Murray
83c42fcabd Do not redeclare class each time when converting to NumPy 2021-11-20 10:13:10 +11:00
mergify[bot]
e1eefe4486
Merge pull request #5841 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.2
2021-11-19 09:04:19 +00:00
Andrew Murray
9e3263290a Updated libjpeg-turbo to 2.1.2 2021-11-19 19:04:17 +11:00
Andrew Murray
863064f968
Merge pull request #5840 from hugovk/setup-python-cache-pip
GHA: Use actions/setup-python's pip cache
2021-11-19 11:44:04 +11:00
Hugo van Kemenade
71f7c806ac
Simplify cache-dependency-path
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-11-18 14:33:57 +02:00
Hugo van Kemenade
b744e7933a Use actions/setup-python's pip cache 2021-11-18 13:42:41 +02:00
Andrew Murray
7d4a8668b1 Block tile TIFF tags when saving 2021-11-18 22:01:53 +11:00
Andrew Murray
90a52d3c0d Added width argument to polygon 2021-11-16 22:02:54 +11:00
Andrew Murray
d6e42f3307 Update CHANGES.rst [ci skip] 2021-11-16 18:09:12 +11:00
Hugo van Kemenade
2849347694
Merge pull request #5835 from radarhere/alpha 2021-11-16 09:07:18 +02:00
Hugo van Kemenade
749754af88
Merge pull request #5833 from hoodmane/fix-pushes_fd-signature 2021-11-16 09:03:38 +02:00
Andrew Murray
d7873e02ab Added test that translucent polygon pixels do not combine 2021-11-16 11:12:48 +11:00
Hood
7a93328834 Fix _get_pushes_fd and _get_pulls_fd method signatures
Getters are supposed to have signature "PyObject *(PyObject *self, void *closure)", but the closure argument is often not used.
In wasm it causes a trap if a function is declared with one argument and then called with two.
2021-11-15 08:49:55 -08:00
Andrew Murray
ca15c684ea Only prevent repeated polygon pixels when drawing with transparency 2021-11-15 23:28:29 +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
Andrew Murray
be4c59d2a9 Update CHANGES.rst [ci skip] 2021-11-12 23:08:56 +11:00
Andrew Murray
937be347df
Merge pull request #5826 from hugovk/pickle-font
Add support for pickling TrueType fonts
2021-11-12 23:03:20 +11:00
Hugo van Kemenade
4fca3b4091
Merge pull request #5828 from radarhere/macos_sdk_path 2021-11-12 13:57:50 +02:00
Hugo van Kemenade
9f7f340bb7 Move to 'Other Changes' 2021-11-11 14:46:48 +02:00
Andrew Murray
fc90a9285a Added support for top right and bottom right orientations 2021-11-11 21:53:28 +11:00
Andrew Murray
2ce7dd5ef6 Moved macOS SDK logic into a separate method 2021-11-11 20:51:13 +11:00
Andrew Murray
3b701dcc16 Only prefer command line tools SDK on macOS over the default 2021-11-11 20:47:46 +11:00
Hugo van Kemenade
81af72bb89
Fix code example
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-11-11 11:27:13 +02: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
Hugo van Kemenade
18d34b287f Add support for pickling TrueType fonts 2021-11-10 14:34:20 +02:00
Andrew Murray
bb6212a332 Added rounding when converting P and PA 2021-11-10 08:00:58 +11:00
mergify[bot]
24f0bbf5ec
Merge pull request #5823 from radarhere/appveyor
Removed setuptools install from AppVeyor
2021-11-09 09:32:15 +00:00
Hugo van Kemenade
c5e02ccd56
Merge pull request #5822 from radarhere/macos 2021-11-09 11:19:31 +02:00
Andrew Murray
2401c590a2 Removed setuptools install 2021-11-09 19:37:34 +11:00
Andrew Murray
fa4ae3dc2c Updated macOS tested Pillow versions [ci skip] 2021-11-09 18:21:09 +11:00
Andrew Murray
3b8e486d82
Merge pull request #5821 from hugovk/rm-docutils-pin
Docs: Remove docutils pin
2021-11-09 10:15:50 +11:00
Hugo van Kemenade
6bada2872e Require sphinx_rtd_theme>=1 2021-11-08 23:34:31 +02:00
Hugo van Kemenade
5d3e0d795b Revert "Temporarily pin docutils to fix bullets in sphinx_rtd_theme"
This reverts commit 9509a73ed9.
2021-11-08 23:01:51 +02:00
Hugo van Kemenade
a7a568d4a2
Merge pull request #5820 from radarhere/harfbuzz 2021-11-08 14:44:45 +02:00
Andrew Murray
08504ead91 Updated harfbuzz to 3.1.1 2021-11-08 22:09:18 +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
Andrew Murray
a3d1e2f85d Update CHANGES.rst [ci skip] 2021-11-05 19:10:06 +11:00
Andrew Murray
a70e3c828f
Merge pull request #5768 from hugovk/rm-3.6
Drop support for soon-EOL Python 3.6
2021-11-05 19:08:02 +11:00
DWesl
5a41417224 Skip test_readonly_save on Cygwin.
The test seems to require opening a file for reading, mmapping it,
then opening that file for writing.  Windows doesn't allow this.
2021-11-04 19:48:53 -04:00
Hugo van Kemenade
fcb87ecbe1
Merge pull request #5808 from radarhere/harfbuzz 2021-11-04 08:49:11 +02:00
DWesl
29b92391bc Suggestion: use 'var in tuple' instead of chained comparisons. 2021-11-03 21:26:55 -04:00
Andrew Murray
814680fc42 Updated harfbuzz to 3.1.0 2021-11-04 10:34:02 +11:00
Andrew Murray
669ba570d5
Merge branch 'main' into rm-3.6 2021-11-04 08:27:36 +11:00
pre-commit-ci[bot]
b542da8eb5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-11-03 17:16:23 +00:00
DWesl
c8391aaa4b Use the Windows functions to get TCL functions on Cygwin.
This is related to linking semantics, so Cygwin should follow the Windows codepath.
2021-11-03 13:03:55 -04:00
Hugo van Kemenade
f671ec82fa
Merge pull request #5806 from radarhere/fedora 2021-11-03 14:37:01 +02:00
Andrew Murray
604b029989
Merge pull request #5805 from hugovk/3.10.0-appveyor
Test Python 3.10.0 final on AppVeyor
2021-11-03 23:09:19 +11:00
Andrew Murray
25979a51e7 Added Fedora 35 2021-11-03 21:31:12 +11:00
Hugo van Kemenade
73d9209bf9 Test Python 3.10.0 final on AppVeyor 2021-11-03 12:25:57 +02:00
Hugo van Kemenade
eac6821aa1
Merge pull request #76 from radarhere/rm-3.6 2021-11-02 14:31:47 +02:00
Andrew Murray
3b7890c709 Python 3.6 Docker jobs have been updated to Python 3.9 2021-11-02 23:07:32 +11: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
a215f725ba Update CHANGES.rst [ci skip] 2021-10-31 17:51:23 +11:00
Andrew Murray
2ae150ddb9
Merge pull request #5793 from landfillbaby/patch-1
Fix compilation on Termux
2021-10-31 17:49:46 +11:00
Ilaï Deutel
596e80c654
WebP: Fix memory leak during decoding on failure
When creating the `WebPAnimDecoder` object, we create a `WebPAnimDecoderObject` and populate its data using `WebPDataCopy()`.

Subsequently, if either `WebPAnimDecoderNew()` or `WebPAnimDecoderGetInfo()` fails, data is not currently deallocated. This commit clears the decoder object's data in that situation.
2021-10-28 18:15:43 +00:00
mergify[bot]
caa0deb4c7
Merge pull request #5796 from radarhere/https
Changed URLs to https
2021-10-27 12:32:51 +00:00
Andrew Murray
97ed2ecd97 Changed URLs to https 2021-10-27 22:51:54 +11:00
Andrew Murray
ff1cb396d0
Merge pull request #5785 from hugovk/replace-setup.py-dist-with-build
Replace 'setup.py sdist' with '-m build --sdist'
2021-10-26 19:23:14 +11:00
Andrew Murray
f33f19f8dc Merge branch 'main' into rm-3.6 2021-10-26 18:53:48 +11:00
Andrew Murray
772f79bc8b
Merge pull request #5784 from hugovk/setup-py-to-cfg
Use declarative package configuration
2021-10-25 22:43:30 +11:00
Hugo van Kemenade
36eb97d3c0
Merge branch 'main' into rm-3.6 2021-10-25 12:05:05 +03:00
Hugo van Kemenade
704336f92e
Merge pull request #5792 from radarhere/display_title 2021-10-25 12:03:42 +03:00
Andrew Murray
993da90316
Merge pull request #5779 from hugovk/update-expected-pillow-10-release-date
Update expected Pillow 10 release date: 2023-07-01
2021-10-25 12:57:20 +11:00
pre-commit-ci[bot]
f246049c4a [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-10-24 11:39:10 +00:00
Lucy Phipps
e3c8ef980b
fix compilation on Termux 2021-10-24 12:38:13 +01:00
Andrew Murray
127315275f Update CHANGES.rst [ci skip] 2021-10-24 12:23:07 +11:00
Andrew Murray
ef99db8871 Added release notes for #5788 2021-10-24 11:53:45 +11:00
mergify[bot]
d24c26dbc8
Merge pull request #5790 from nulano/patch-1
Document #5788: "Use title for display"
2021-10-23 09:41:24 +00:00
Ondrej Baranovič
954baa1e73
document #5788 2021-10-23 10:51:46 +02:00
Hugo van Kemenade
7250e3db52
Merge pull request #5788 from radarhere/display_title
Use title for display
2021-10-23 11:36:17 +03:00
Andrew Murray
b3e690a270 Use title for display 2021-10-23 15:53:08 +11:00
Hugo van Kemenade
5057f0afaf Replace 'setup.py sdist' with '-m build --sdist' 2021-10-22 12:01:42 +03:00
Hugo van Kemenade
a44e8e626d Use declarative package configuration 2021-10-21 09:41:34 +03:00
Hugo van Kemenade
24ca657e29 Remove command for Python 3.6
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2021-10-19 15:34:52 +03:00
Hugo van Kemenade
31a96b9c9b Upgrade Python syntax with pyupgrade --py36-plus and format with Black 2021-10-19 15:34:52 +03:00
Hugo van Kemenade
716a0baf74 Drop support for EOL Python 3.6 2021-10-19 15:34:52 +03:00
Andrew Murray
862be7cbcd Update CHANGES.rst [ci skip] 2021-10-19 19:40:46 +11:00
Andrew Murray
cf757e6f77
Merge pull request #5777 from hugovk/rm-freetype-2.7
Remove support for FreeType 2.7 and older
2021-10-19 19:35:06 +11:00
Hugo van Kemenade
66ad6ffc7a
Merge pull request #75 from radarhere/rm-freetype-2.7 2021-10-19 10:15:42 +03:00
Andrew Murray
06ab0324a3 Added Tidelift Align badge to docs 2021-10-19 17:08:05 +11:00
Andrew Murray
e6ffeac66f Updated image comparison 2021-10-19 16:08:23 +11:00
Andrew Murray
44a61bb380
Merge pull request #5778 from hugovk/add-pypy-3.8
Test PyPy3.8
2021-10-19 11:27:51 +11:00
Andrew Murray
af745d6f52
Merge pull request #5780 from hugovk/mingq-pytest-timeout
CI: Install pytest-timeout for MinGW CI
2021-10-19 08:38:44 +11:00
Hugo van Kemenade
90d5edb0e4 Install pytest-timeout for MinGW CI 2021-10-18 16:06:07 +03:00
Hugo van Kemenade
6e310e3e2e Update expected Pillow 10 release date: 2023-07-01 2021-10-18 15:48:49 +03:00
Hugo van Kemenade
3e9a6f7508 Test slower macOS first, for slightly faster builds 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
86f32f6074 Test PyPy3.8 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
67b4cb52d1 Stop testing Python 3.6 on CI 2021-10-18 14:33:02 +03:00
Hugo van Kemenade
b4bd8943fa
Merge pull request #5775 from hugovk/mingw-qt6 2021-10-18 12:38:14 +03:00
Hugo van Kemenade
cb5c8f6f86 Remove unused left_old variable 2021-10-18 11:28:14 +03:00
mergify[bot]
bc31502183
Merge pull request #5776 from radarhere/removals
Removed deprecated PILLOW_VERSION, Image.show command parameter, Image._showxv and ImageFile.raise_ioerror
2021-10-18 07:00:31 +00:00
Hugo van Kemenade
606b5ae1e5 Remove support for FreeType 2.7 and older 2021-10-18 09:29:53 +03:00
Andrew Murray
20cf82b2af Moved PILLOW_VERSION deprecation to be more prominent 2021-10-18 17:20:56 +11:00
Andrew Murray
83864b01cf Removed Image.show command parameter 2021-10-18 11:08:51 +11:00
Andrew Murray
499040491b Removed Image._showxv 2021-10-18 11:06:06 +11:00
Andrew Murray
e444e7ab6d Removed ImageFile.raise_ioerror 2021-10-18 11:06:02 +11:00
Andrew Murray
cd50d468ba Removed PILLOW_VERSION 2021-10-18 11:05:53 +11:00
Hugo van Kemenade
174fad7d3d
Merge pull request #5773 from radarhere/copy
Improved image lifecycle documentation
2021-10-17 09:10:33 +03:00
Hugo van Kemenade
033d1fc8ec
Merge pull request #74 from radarhere/mingw-qt6
Use QIODevice instead of QIODeviceBase
2021-10-17 09:00:18 +03:00
Andrew Murray
43ceaa1614 Use QIODevice instead of QIODeviceBase 2021-10-17 13:14:47 +11:00
Andrew Murray
dd08584f7a
Updated syntax
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-10-17 10:37:19 +11:00
Hugo van Kemenade
d1148378bc Fix for PyQt6 2021-10-16 23:04:43 +03:00
Hugo van Kemenade
2f29c1233a Test PyQt6 on MinGW 2021-10-16 23:01:08 +03:00
Andrew Murray
669512c2ac __exit__ does not destroy the core image object 2021-10-16 23:26:43 +11:00
Hugo van Kemenade
3c8128d2af
Merge branch 'main' into new-badge 2021-10-16 15:22:20 +03:00
Andrew Murray
fa74f2272b Copied images are not associated with the original file 2021-10-16 23:09:04 +11:00
Andrew Murray
fa53b71afe
Merge pull request #5770 from hugovk/rename-master-to-main
Rename master to main
2021-10-16 23:08:33 +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
a8c18d0817 Rename master to main 2021-10-15 17:30:05 +03:00
Hugo van Kemenade
fd50dc2dc5 Rename master to main 2021-10-15 16:02:27 +03:00
Hugo van Kemenade
95cff6e959
Merge pull request #5766 from radarhere/fedora 2021-10-15 13:40:34 +03:00
Hugo van Kemenade
5135e4461b
Merge pull request #5767 from hugovk/update-release-notes 2021-10-15 11:53:13 +03:00
Hugo van Kemenade
adfe06ef96 Docs: No security updates in 8.4.0 2021-10-15 11:23:38 +03:00
Andrew Murray
90ffafeebc Removed Fedora 33 docker job 2021-10-15 19:19:26 +11:00
Hugo van Kemenade
d7b64a6621 9.0.0.dev0 version bump 2021-10-15 11:17:23 +03:00
Hugo van Kemenade
a2a4245e92 Pillow -> 8.4.0 2021-10-15 09:41:07 +03:00
Hugo van Kemenade
40e7ff6226 8.4.0 version bump 2021-10-15 09:27:22 +03:00
Hugo van Kemenade
3c92b34b70 Fix badge HTML 2021-10-14 23:04:22 +03:00
Hugo van Kemenade
836f740f7b Don't run for forks: missing secrets would fail 2021-10-14 23:00:02 +03:00
Alex Clark
76b5760b38 Create tidelift.yml 2021-10-14 22:57:34 +03:00
Alex Clark
c8822a6cac Add tidelift alignment badge 2021-10-14 22:57:15 +03:00
Hugo van Kemenade
0fc4fb671c
Merge pull request #5765 from python-pillow/rm-tidelift-action 2021-10-14 22:56:35 +03:00
Hugo van Kemenade
ce3c925a51
Delete tidelift.yml 2021-10-14 22:46:42 +03:00
Hugo van Kemenade
1b5e662ee6
Merge pull request #5761 from nulano/stroke 2021-10-14 21:33:07 +03:00
Alex Clark
5c69dc7c9a
Create tidelift.yml 2021-10-14 13:42:18 -04:00
Hugo van Kemenade
e04f2ed55b
Merge pull request #5744 from kmilos/patch-2 2021-10-14 17:13:31 +03:00
nulano
19f4c6fd23 don't use bitmap glyphs when drawing text with stroker 2021-10-14 08:19:04 +01:00
pre-commit-ci[bot]
dbb0a41600 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-10-13 21:10:23 +00:00
Andrew Murray
1140f6538d
Ensure reset after test failure
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2021-10-14 08:09:36 +11:00
Andrew Murray
0b7fcbbc93
Merge branch 'master' into patch-2 2021-10-13 23:50:23 +11:00
Hugo van Kemenade
b34430b402
Merge pull request #5750 from radarhere/zero
Fixed Python errors when saving a (0, 0) TIFF image
2021-10-13 14:29:12 +03:00
Andrew Murray
b5d6a73da9 Added test 2021-10-13 11:39:31 +02:00
Andrew Murray
88850e6373 Update CHANGES.rst [ci skip] 2021-10-13 09:40:18 +11:00
Hugo van Kemenade
1cbb3f1427
Merge pull request #5736 from nulano/raqm-0.7.2 2021-10-12 16:22:32 +03:00
Hugo van Kemenade
a74bcf353a
Merge pull request #227 from radarhere/python310 2021-10-12 10:27:35 +03:00
Hugo van Kemenade
ac74226de9
Merge pull request #5756 from radarhere/gif_transparency 2021-10-12 10:04:44 +03:00
Andrew Murray
378a44e17b Updated to Python 3.10 in multibuild 2021-10-12 17:20:40 +11:00
Andrew Murray
174b4893f3 Prefer global transparency for disposal method 2 2021-10-12 09:45:52 +11:00
Hugo van Kemenade
464d0b1174
Merge pull request #225 from radarhere/zlib_auditwheel 2021-10-11 15:27:46 +03:00
Andrew Murray
8de429ecb9 Fixed Python errors when saving a (0, 0) TIFF image 2021-10-08 13:12:21 +11:00
Andrew Murray
2d7c487cf8
Merge pull request #5748 from hugovk/3.10.0
Test Python 3.10.0 final on GitHub Actions
2021-10-05 20:49:00 +11:00
Hugo van Kemenade
8eb3c9791d Test Python 3.10.0 final on GitHub Actions 2021-10-05 11:54:12 +03:00
mergify[bot]
00746530f8
Merge pull request #5747 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-04 17:18:01 +00:00
pre-commit-ci[bot]
448de228d2
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: e3000ace2fd1fcb1c181bb7a8285f1f976bcbdc7 → 911470a610e47d9da5ea938b0887c3df62819b85](e3000ace2f...911470a610)
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
2021-10-04 16:54:25 +00:00
Hugo van Kemenade
c38d5d81fd
Merge pull request #5746 from radarhere/macos
Updated capitalization
2021-10-02 09:24:55 +03:00
Andrew Murray
515314b85c Updated capitalization 2021-10-02 09:50:27 +10:00
Miloš Komarčević
63879f04b1
Make TIFF strip size configurable 2021-10-01 13:50:02 +02:00
Hugo van Kemenade
9025ae8332
Merge pull request #5737 from radarhere/macos
Updated macOS tested Pillow versions
2021-09-28 07:38:20 +03:00
Hugo van Kemenade
2aede5f030
Merge pull request #5735 from radarhere/ghostscript
Updated Ghostscript to 9.55.0
2021-09-28 07:37:39 +03:00
Andrew Murray
5b7fb4f960 Updated macOS tested Pillow versions [ci skip] 2021-09-28 11:44:47 +10:00
nulano
6565d13275 detect FreeType / HarfBuzz features 2021-09-28 00:37:43 +02:00
nulano
aeb3c810d0 upgrade vendored raqm to 0.7.2 2021-09-27 22:37:55 +02:00
Andrew Murray
a80f8133d6 Updated Ghostscript to 9.55.0 2021-09-27 23:19:05 +10:00
Hugo van Kemenade
c37c08436b
Merge pull request #5732 from radarhere/fribidi
Updated fribidi to 1.0.11
2021-09-24 18:30:50 +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
Andrew Murray
3fdb2190d2 Updated fribidi to 1.0.11 2021-09-24 08:36:57 +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
7dc8920e3f
Merge pull request #5727 from nulano/imagequant-2.16.0 2021-09-22 11:49:20 +03:00
Hugo van Kemenade
d76fd93a77
Merge pull request #5726 from radarhere/libimagequant
Updated libimagequant to 2.16.0
2021-09-21 08:23:27 +03:00
nulano
aa27c4d96b update imagequant patches 2021-09-21 04:49:35 +02:00
Ondrej Baranovič
52fa7aefb5
update winbuild imagequant to 2.16.0 2021-09-21 03:37:58 +02:00
Andrew Murray
836e6d98a3 Updated libimagequant to 2.16.0 2021-09-21 07:46:37 +10:00
Hugo van Kemenade
ffde039f26
Merge pull request #5724 from radarhere/accept 2021-09-20 18:10:49 +03:00
pre-commit-ci[bot]
99428bb878 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-09-20 12:22:11 +00:00
Andrew Murray
312ed69c01 Commented unused method 2021-09-20 22:17:06 +10:00
Andrew Murray
c1db69cc3f Renamed register_open accept method for consistency 2021-09-20 22:16:37 +10:00
Hugo van Kemenade
0a47b7306b
Merge pull request #5722 from nulano/remove-raqm-cmake
Remove raqm.cmake
2021-09-19 10:29:21 +03:00
Ondrej Baranovič
2205f6050e
document --no-fribidi option 2021-09-18 23:00:39 +02:00
Ondrej Baranovič
8fd843bf16
Delete raqm.cmake 2021-09-18 22:57:43 +02:00
Hugo van Kemenade
2496b0d29b
Merge pull request #5720 from radarhere/harfbuzz
Updated harfbuzz to 3.0.0
2021-09-18 10:11:15 +03: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
58fcc6edee Updated harfbuzz to 3.0.0 2021-09-18 08:19:11 +10:00
Andrew Murray
3c8056a6cb Updated harfbuzz to 3.0.0 2021-09-18 08:17:44 +10:00
Andrew Murray
571feef28e
Merge pull request #5714 from hugovk/add-centos-stream-8
Add CentOS Stream 8
2021-09-17 22:02:32 +10:00
Hugo van Kemenade
709a904438
Merge pull request #5719 from radarhere/macos 2021-09-17 14:52:26 +03:00
Andrew Murray
83f6a909d6 Updated macOS tested Pillow versions [ci skip] 2021-09-17 21:40:00 +10:00
Hugo van Kemenade
8148647e64
Merge pull request #73 from radarhere/add-centos-stream-8 2021-09-17 14:28:05 +03:00
Andrew Murray
4cfc9721d2 Added CentOS Stream 8 to CI targets 2021-09-17 21:26:10 +10:00
Hugo van Kemenade
5b7add9df7 Add CentOS Stream 8 2021-09-16 14:40:34 +03:00
Andrew Murray
8714ac5566
Merge pull request #5713 from hugovk/docs-update-ci-table
Docs: Update CI targets table
2021-09-16 18:47:09 +10:00
Hugo van Kemenade
37d3dc20c4
Merge pull request #72 from radarhere/docs-update-ci-table
Merged identical cells
2021-09-16 08:40:45 +03:00
Andrew Murray
9301422d16 Merged identical cells 2021-09-16 08:25:51 +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
Hugo van Kemenade
21906a8172 Docs: Update CI targets table 2021-09-15 16:13:53 +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
dae542b25e
Merge pull request #5710 from radarhere/selftest
Moved _info function into docstring
2021-09-13 10:51:44 +03:00
Andrew Murray
84ee93f7bf Moved _info function into docstring 2021-09-13 17:14:59 +10:00
Hugo van Kemenade
63c5faa0f6
Merge pull request #5688 from Google-Autofuzz/new_atheris 2021-09-13 09:27:57 +03:00
Andrew Murray
d7798fb0e8
Merge pull request #5709 from hugovk/update-ci
CI: Split MINGW to own workflow, remove redundant job
2021-09-12 18:17:47 +10:00
Hugo van Kemenade
a761d9b0c7
Rename to "Build" for consistency
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-09-12 10:10:31 +03:00
Hugo van Kemenade
2bd2fbbf0b Move MinGW to own workflow 2021-09-11 17:13:48 +03:00
Hugo van Kemenade
d72b507a42 Remove unused job 2021-09-11 16:53:37 +03:00
mergify[bot]
cf6b101b09
Merge pull request #5708 from radarhere/tiff
Updated docstring
2021-09-11 10:13:11 +00:00
Andrew Murray
8264aa81d9
Updated capitalisation
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-09-11 19:48:43 +10:00
Andrew Murray
c39e545949 Updated docstring 2021-09-11 19:24:24 +10:00
Hugo van Kemenade
e122e8f3a6
Merge pull request #5705 from radarhere/harfbuzz
Updated harfbuzz to 2.9.1
2021-09-08 08:36:50 +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
7350890129
Merge pull request #5704 from hugovk/docs-fix-bullets
Docs: Temporarily pin docutils to fix bullets in sphinx_rtd_theme
2021-09-08 08:27:51 +10:00
Andrew Murray
a0e13805d3 Updated harfbuzz to 2.9.1 2021-09-08 07:46:21 +10:00
Andrew Murray
df105aa3f7 Updated harfbuzz to 2.9.1 2021-09-08 07:40:58 +10:00
Hugo van Kemenade
9509a73ed9 Temporarily pin docutils to fix bullets in sphinx_rtd_theme 2021-09-07 17:00:47 +03:00
Andrew Murray
75a2ece0d1 Update CHANGES.rst [ci skip] 2021-09-07 08:25:56 +10:00
Hugo van Kemenade
ba7502c056
Merge pull request #5575 from radarhere/tiff_exif
Added "exif" keyword argument to TIFF saving
2021-09-07 00:06:28 +03:00
Andrew Murray
3f3828040b
Merge branch 'master' into tiff_exif 2021-09-07 06:33:37 +10:00
Andrew Murray
ecf3a34717 Update CHANGES.rst [ci skip] 2021-09-07 06:30:44 +10:00
Hugo van Kemenade
869b786db1
Merge pull request #5696 from radarhere/quantize_palette 2021-09-06 15:42:12 +03:00
Hugo van Kemenade
ff9fccafbb
Merge pull request #219 from radarhere/numpy_pypy 2021-09-06 10:52:02 +03:00
Hugo van Kemenade
50d6254999
Merge pull request #5702 from radarhere/numpy
Install numpy on Python 3.10
2021-09-06 08:09:04 +03:00
Andrew Murray
83c01b702f Upgraded numpy on 32-bit PyPy3.7 to match 64-bit 2021-09-06 12:18:03 +10:00
Andrew Murray
632c11b2ab Install numpy on Python 3.10 2021-09-06 07:36:40 +10:00
Andrew Murray
ab90e939b5 Update CHANGES.rst [ci skip] 2021-09-06 06:35:43 +10:00
Hugo van Kemenade
a918186d92
Merge pull request #5667 from radarhere/ico
Read ICO AND mask from end
2021-09-05 14:30:10 +03:00
Hugo van Kemenade
65b5f91b60
Merge pull request #5659 from wiredfool/fli_framesize 2021-09-05 14:14:58 +03:00
Hugo van Kemenade
59be686276 Pillow -> 8.3.2 2021-09-02 16:23:33 +03:00
Hugo van Kemenade
98319efcc5 Update CHANGES.rst 2021-09-02 15:07:13 +03:00
Hugo van Kemenade
949503b160 Update release notes 2021-09-02 15:04:28 +03:00
Hugo van Kemenade
5d399603db Update test case
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-09-02 15:03:03 +03:00
Hugo van Kemenade
1dc6564eb7 Raise ValueError if color specifier is too long 2021-09-02 15:02:57 +03:00
Eric Soroos
d5edc5ff09 FLI tests for Oss-fuzz crash.
* Note, valgrind doesn't pick this up, it's only the oss-fuzz
  reproducer that catches it OMM.
2021-09-02 15:02:27 +03:00
Eric Soroos
a20d45fc0b Fix 6-byte OOB read in FliDecode 2021-09-02 15:00:11 +03:00
Hugo van Kemenade
ec1a00c7fe
Add 8.3.2 (2021-09-02) [CI skip] 2021-09-01 18:55:54 +03:00
Hugo van Kemenade
07a76e1fa6
Merge pull request #5699 from hugovk/8.3.2-release-notes
Add release notes for Pillow 8.3.2
2021-09-01 18:06:57 +03:00
Hugo van Kemenade
874118e343
Merge pull request #5651 from nulano/5637
Hide FriBiDi shim symbols to avoid conflict with real FriBiDi library
2021-09-01 18:06:45 +03:00
Hugo van Kemenade
ad1522aa55 Add release notes for Pillow 8.3.2 2021-09-01 13:14:47 +03:00
Hugo van Kemenade
5ef629069d
Merge pull request #5698 from radarhere/python310 2021-09-01 12:51:54 +03:00
Andrew Murray
9189c4b08b Pillow 8.3.2 supports Python 3.10 [ci skip] 2021-09-01 19:46:24 +10:00
Andrew Murray
0dba28613b Copy Python palette to new image in quantize() 2021-08-31 00:33:10 +10: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
pre-commit-ci[bot]
3b69035d4b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-08-25 14:52:20 +00:00
Julien Voisin
9d48143567 Improve the fuzzer wrt. the current atheris version 2021-08-25 16:50:47 +02:00
Andrew Murray
1b397751ec
Added context managers 2021-08-24 23:43:38 +10:00
Andrew Murray
d50052a75c Update CHANGES.rst [ci skip] 2021-08-24 22:33:08 +10:00
Hugo van Kemenade
57c672efcc
Merge pull request #5654 from radarhere/ihdr 2021-08-24 15:08:23 +03:00
Andrew Murray
7f3646493c Update CHANGES.rst [ci skip] 2021-08-24 21:56:36 +10:00
Andrew Murray
8b639f7546
Merge pull request #5686 from hugovk/fix-test-warnings
Fix/filter/avoid test warnings
2021-08-24 21:53:03 +10:00
Hugo van Kemenade
4c7777c425
Merge pull request #5599 from radarhere/palette
Updates for ImagePalette channel order
2021-08-24 14:52:46 +03:00
Hugo van Kemenade
d5d6c3ba8c
Merge pull request #5611 from radarhere/apng_info 2021-08-24 11:59:38 +03:00
Hugo van Kemenade
d773fcd23d Filter out UserWarning: Truncated File Read 2021-08-24 11:33:43 +03:00
Hugo van Kemenade
2f8b3d0ff9 Ignore new test_images file 2021-08-24 11:20:09 +03:00
Hugo van Kemenade
320ab8172e Avoid DecompressionBombWarning: Image size (151587072 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack. 2021-08-24 11:19:45 +03:00
Hugo van Kemenade
474270fbd5 Filter out UserWarning: Truncated File Read 2021-08-24 11:03:10 +03:00
Hugo van Kemenade
2b9e230f76 Fix ResourceWarning: unclosed file 2021-08-24 10:58:02 +03:00
Hugo van Kemenade
fb0aad5abd
Merge pull request #5681 from radarhere/harfbuzz 2021-08-18 18:56:05 +03: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
Andrew Murray
c5ac932638 Updated harfbuzz to 2.9.0 2021-08-18 21:55:12 +10:00
Andrew Murray
f518149a1b Update CHANGES.rst [ci skip] 2021-08-16 10:59:51 +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
e554ac96c4
Merge pull request #5660 from radarhere/python_mingw
Updated MinGW CI Python version
2021-08-15 11:10:38 +03:00
Hugo van Kemenade
d62605c6ff
Merge pull request #5678 from radarhere/n_frames
Corrected property name
2021-08-15 11:10:10 +03: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
26d932505f Corrected property name [ci skip] 2021-08-15 17:28:52 +10:00
Hugo van Kemenade
a352c18fe9
Merge pull request #5676 from radarhere/libwebp 2021-08-15 00:06:48 +03:00
Hugo van Kemenade
2d01f7d022
Merge pull request #5655 from radarhere/whiteiszero
Allow saving 1 and L mode TIFF with PhotometricInterpretation 0
2021-08-14 20:41:08 +03:00
Andrew Murray
4419eda505 Updated libwebp to 1.2.1 2021-08-14 19:55:01 +10:00
Andrew Murray
d23b263335 Updated libwebp to 1.2.1 2021-08-14 19:53:28 +10:00
Andrew Murray
5db0969f6f Update CHANGES.rst [ci skip] 2021-08-14 08:33:28 +10:00
Hugo van Kemenade
a7f5b25dc3
Merge pull request #5603 from radarhere/gif_palette
For GIF save_all with palette, do not include palette with each frame
2021-08-13 13:20:57 +03:00
Hugo van Kemenade
ea4263c448
Merge pull request #5634 from radarhere/putpalette
putpalette() rawmode may be modes that can be unpacked to RGB
2021-08-13 13:19:50 +03:00
Hugo van Kemenade
3d35e5458f
Merge pull request #5606 from radarhere/convert_transparency 2021-08-13 13:18:39 +03:00
Hugo van Kemenade
afebfcb096
Merge pull request #5647 from radarhere/transform_palette 2021-08-13 13:18:00 +03:00
Hugo van Kemenade
786218e08a
Merge pull request #5674 from radarhere/install
Updated FreeBSD package install command to Python 3.8
2021-08-13 11:13:05 +03:00
Andrew Murray
0cbc033b34 Updated FreeBSD package install command to Python 3.8 [ci skip] 2021-08-13 17:54:48 +10:00
Hugo van Kemenade
f27fe2a316
Merge pull request #213 from hugovk/add-3.10-travis 2021-08-12 21:22:43 +03:00
mergify[bot]
95885d14aa
Merge pull request #5670 from radarhere/pre-commit
pre-commit autoupdate --freeze
2021-08-12 13:52:56 +00: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
fc95a0c3c0 Added quarterly autoupdate_schedule 2021-08-12 22:36:41 +10:00
Andrew Murray
98aa0f10ad pre-commit autoupdate --freeze 2021-08-12 21:50:09 +10: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
Andrew Murray
a3a03f3ee9
Merge pull request #5666 from hugovk/wheel-3.10
CI: Install PyQt5 on Python 3.10
2021-08-11 09:19:45 +10:00
Hugo van Kemenade
d5e4b1474a
Merge pull request #5668 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.1
2021-08-10 21:34:25 +03:00
Yutao Yuan
0f11d22cce Add tests for saving to stdout 2021-08-10 19:12:20 +08:00
Andrew Murray
eaa7b829e2 Updated libjpeg-turbo to 2.1.1 2021-08-10 16:50:56 +10:00
Hugo van Kemenade
fb56c61373
Merge pull request #71 from radarhere/wheel-3.10
Install NumPy on Python 3.10
2021-08-10 08:58:08 +03:00
Andrew Murray
771c7d937e Install numpy on Python 3.10 2021-08-10 12:46:12 +10:00
Andrew Murray
cbdc751628 Read AND mask from end 2021-08-10 07:04:36 +10:00
Yutao Yuan
f55ccd9563 Remove stdout check in ImageFile._save 2021-08-09 23:13:54 +08:00
Hugo van Kemenade
953b57510f
Merge pull request #5658 from radarhere/make_hash
Updated location of make_hash script
2021-08-09 18:07:12 +03:00
Hugo van Kemenade
370f32ba72 Install wheel on CI to avoid legacy setup.py installs 2021-08-09 17:00:07 +03:00
Hugo van Kemenade
81e866a824 Wheel now works on Python 3.10 2021-08-09 16:17:09 +03:00
Andrew Murray
db3cccb9c0 Updated MinGW CI Python version [ci skip] 2021-08-09 08:30:37 +10:00
Eric Soroos
8f300af691 Actually check the framesize in FliDecode. 2021-08-08 15:02:18 +02:00
Andrew Murray
9ad8c0c415 Updated location of make_hash script [ci skip] 2021-08-08 13:08:42 +10:00
Andrew Murray
99940765b2 Update CHANGES.rst [ci skip] 2021-08-07 09:39:41 +10:00
mergify[bot]
43785a3201
Merge pull request #5620 from radarhere/eps
Added "transparency" argument to EpsImagePlugin load()
2021-08-06 15:32:13 +00:00
Hugo van Kemenade
2e5ce839ba
Merge pull request #5633 from radarhere/save_path
Corrected pathlib.Path detection when saving
2021-08-06 17:15:15 +03:00
Andrew Murray
9bf7dae03d Allow saving L mode TIFF with PhotometricInterpretation 0 2021-08-06 23:50:52 +10:00
Andrew Murray
4063deddac
Merge branch 'master' into eps 2021-08-06 23:32:02 +10:00
Andrew Murray
6798c87caf Update CHANGES.rst [ci skip] 2021-08-06 23:31:14 +10:00
mergify[bot]
545196c137
Merge pull request #5618 from radarhere/wal
Added WalImageFile class
2021-08-06 13:29:19 +00:00
Andrew Murray
0c43da5e3c Added release notes 2021-08-06 22:41:44 +10:00
Andrew Murray
b3fda8c9c6 Added release notes 2021-08-06 22:33:55 +10:00
Andrew Murray
caecb3a772 Merge branch 'master' into wal 2021-08-06 22:03:51 +10:00
Andrew Murray
929c561937 Merge branch 'master' into eps 2021-08-06 22:03:12 +10:00
Andrew Murray
887d111e4d Update CHANGES.rst [ci skip] 2021-08-06 22:01:06 +10:00
Hugo van Kemenade
025f2071f5
Merge pull request #5598 from radarhere/i16
Consider I;16 pixel size when drawing text
2021-08-06 14:10:04 +03:00
Hugo van Kemenade
3307bf691f
Merge pull request #5594 from radarhere/convert
If default conversion from P is RGB with transparency, convert to RGBA
2021-08-06 14:08:38 +03:00
Andrew Murray
2dab52b8a8 Allow saving 1 mode TIFF with PhotometricInterpretation 0 2021-08-05 23:27:08 +10:00
Andrew Murray
6596e31605 Determine mode purely from ihdr header box 2021-08-05 01:06:01 +10:00
nulano
259c671a55 hide FriBiDi shim symbols to avoid conflict with real FriBiDi library 2021-08-03 00:03:21 +02:00
Andrew Murray
b8b4bf425d Update CHANGES.rst [ci skip] 2021-08-03 08:02:40 +10:00
Hugo van Kemenade
5a9dacfc26
Merge pull request #5646 from radarhere/expand 2021-08-02 20:13:34 +03:00
Andrew Murray
633d5d57f4 Update CHANGES.rst [ci skip] 2021-08-03 00:07:22 +10:00
Andrew Murray
6406dabf29
Merge pull request #5568 from rogermb/jpeg2000-resolution
Add support for reading DPI information from JPEG2000 images
2021-08-03 00:06:13 +10:00
Andrew Murray
4f43851071 Added release notes [ci skip] 2021-08-03 00:03:53 +10:00
Andrew Murray
02d92a594c Merge branch 'master' into expand 2021-08-02 23:39:16 +10:00
Andrew Murray
dab5721c34 Favour integer operations when calculating DPI 2021-08-02 22:09:35 +10:00
Andrew Murray
9f42a17b2d Update CHANGES.rst [ci skip] 2021-08-02 21:42:03 +10:00
Alexander Karpinsky
a312b0e9d0
Merge pull request #5639 from uploadcare/jpeg-safe-dpi-read
Add TypeError handling to pass corrupted DPI value in EXIF
2021-08-02 14:34:54 +03:00
Alexander Karpinsky
b2a503e466
Merge pull request #102 from radarhere/jpeg-safe-dpi-read
Updated comment
2021-08-02 12:34:36 +03:00
Andrew Murray
8ab06b4dac Updated comment [ci skip] 2021-08-01 21:06:33 +10:00
Andrew Murray
8045ecceef Added tests 2021-08-01 19:01:43 +10:00
Andrew Murray
8828080868 Removed unreachable code 2021-08-01 18:39:54 +10:00
Andrew Murray
0c600f1d88 Prevent reading past end of file pointer even if box length allows it 2021-08-01 18:39:47 +10:00
Andrew Murray
3ee5a9b094 Stop reading from "res " after all information is extracted 2021-08-01 18:39:35 +10:00
Andrew Murray
ae54838146 If DPI is invalid, ignore it instead of raising an error 2021-08-01 18:38:56 +10:00
Hugo van Kemenade
3346389ace
Merge pull request #5648 from radarhere/releasenotes
Added release notes for #5641
2021-08-01 10:45:12 +03:00
Andrew Murray
3cf2fffa33 Added release notes for #5641 2021-08-01 09:54:40 +10:00
Andrew Murray
d1815377b8 Copy palette to new image in transform() 2021-07-31 22:49:16 +10:00
Andrew Murray
eee0953bb3 Update CHANGES.rst [ci skip] 2021-07-31 13:55:28 +10:00
Andrew Murray
61419b54d6
Merge pull request #5645 from farizrahman4u/patch-2
Do not close file pointer in SGI save handler
2021-07-31 13:53:37 +10:00
Fariz Rahman
c42e6bab1c
Merge pull request #1 from radarhere/patch-2
Added test and flush file pointer
2021-07-31 01:05:42 +04:00
Andrew Murray
9125631ff0 Added flush 2021-07-30 20:29:22 +10:00
Andrew Murray
300f1ffc02 Added test 2021-07-30 20:29:07 +10:00
Andrew Murray
438c3cc097 Speed up rotating square images by 90 or 270 degrees 2021-07-30 19:57:09 +10:00
Andrew Murray
6cb127c8cd Update CHANGES.rst [ci skip] 2021-07-30 10:26:07 +10:00
mergify[bot]
71b7f3daf3
Merge pull request #5641 from radarhere/palette_size
Deprecate ImagePalette size parameter
2021-07-29 23:42:25 +00:00
Fariz Rahman
feb3103bfd
SGI save handler should not close output stream 2021-07-30 00:57:00 +04:00
Andrew Murray
01ab019ed8 Update CHANGES.rst [ci skip] 2021-07-29 16:55:50 +10:00
Hugo van Kemenade
e276655179
Merge pull request #5624 from radarhere/macos_zlib 2021-07-29 09:51:33 +03:00
Andrew Murray
7c7620d71f
Highlight class name
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-07-29 16:49:09 +10:00
Andrew Murray
a9372d5cf0 Fixed generated palettes 2021-07-29 16:20:20 +10:00
Andrew Murray
d0a30ec369 Updated documentation 2021-07-29 16:20:20 +10:00
Andrew Murray
cf275737ee Do not rearrange palette channels 2021-07-29 16:20:20 +10:00
Andrew Murray
41b968ad10 Deprecate ImagePalette size parameter 2021-07-29 16:19:53 +10:00
Andrew Murray
3462b5fd74 Update CHANGES.rst [ci skip] 2021-07-28 22:26:02 +10:00
Hugo van Kemenade
faaeee1e7d
Merge pull request #5601 from radarhere/webp_icc_profile
Allow saving WebP with icc_profile None
2021-07-28 13:10:36 +03:00
Hugo van Kemenade
4e4d580dfd
Merge pull request #5597 from radarhere/ycbcr_tiff
Added tags when saving YCbCr TIFF
2021-07-28 13:08:54 +03:00
Hugo van Kemenade
5f39e8e60a
Merge pull request #5613 from radarhere/psd 2021-07-28 12:53:24 +03:00
Hugo van Kemenade
f0679aff4d
Merge pull request #5638 from radarhere/palette_size
Corrected ImagePalette size parameter documentation
2021-07-28 12:50:09 +03:00
Alexander Karpinsky
3abe5e884b Add TypeError handling to pass corrupted dpi value in exif 2021-07-26 16:13:01 +03:00
Andrew Murray
a43d46e87a Corrected size parameter documentation [ci skip] 2021-07-26 22:53:39 +10:00
Andrew Murray
55cec2a0d0 Update CHANGES.rst [ci skip] 2021-07-26 18:57:04 +10:00
Hugo van Kemenade
567fbaf782
Merge pull request #5615 from radarhere/expand
Fixed ImageOps expand with tuple border on P image
2021-07-26 11:33:26 +03:00
Andrew Murray
89ab20fd15 putpalette() rawmode may be modes that can be unpacked to RGB 2021-07-25 16:32:59 +10:00
Andrew Murray
4038a287ee Corrected pathlib.Path detection when saving 2021-07-24 14:21:33 +10:00
Hugo van Kemenade
68c5f2dce1
Merge pull request #5630 from radarhere/python310
Corrected Python 3.10 support
2021-07-23 15:25:12 +03:00
Andrew Murray
7998d0252f Corrected Python 3.10 support [ci skip] 2021-07-23 18:25:35 +10:00
Hugo van Kemenade
36ab95dab7
Merge pull request #5628 from radarhere/macos
Updated macOS tested Pillow versions
2021-07-22 14:36:33 +03:00
Andrew Murray
a9489c23b3 Updated macOS tested Pillow versions [ci skip] 2021-07-22 19:35:16 +10:00
Andrew Murray
e7270eb5a1 Prefer command line tools SDK on macOS 2021-07-21 22:45:35 +10: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
1d73a483f4 Added "transparency" argument to load() 2021-07-19 09:08:45 +10:00
Andrew Murray
426b730d3b Update CHANGES.rst [ci skip] 2021-07-18 18:18:56 +10:00
Andrew Murray
7484bb08b4
Merge pull request #5588 from kmilos/patch-2
Ensure TIFF RowsPerStrip is multiple of 8 for JPEG compression
2021-07-18 18:17:25 +10:00
Andrew Murray
a9fccfada1 Added WalImageFile class 2021-07-18 12:35:27 +10:00
Andrew Murray
0a7af10827 Instead of drawing border, calculate palette index before image creation in expand() 2021-07-16 20:58:32 +10:00
Meithal
a139b97845 Cleanup 2021-07-15 20:48:47 +02:00
Meithal
3fbc9eb229 self.mode = "BGRA" wasn't correct and captured by #affa059 2021-07-15 20:33:35 +02:00
Andrew Murray
a46f5cdd0a PSD layer count may be negative 2021-07-15 19:38:26 +10:00
Andrew Murray
e766ddbc39 Removed unnecessary code 2021-07-13 23:02:27 +10:00
Andrew Murray
63c3b26f6a Fixed using info dictionary when writing multiple frames 2021-07-13 23:02:23 +10:00
Andrew Murray
696b82e440 Update CHANGES.rst [ci skip] 2021-07-13 21:25:59 +10:00
Andrew Murray
1fd0411ee4
Merge pull request #5609 from thak1411/round-error
Fixed error saving APNG with duplicate frames and different duration times
2021-07-13 21:24:15 +10:00
Rn
ca0738dbf6
Merge pull request #1 from radarhere/round-error
Added test
2021-07-13 18:12:53 +09:00
Andrew Murray
ca16cf2aac Added test 2021-07-13 18:47:55 +10:00
Andrew Murray
0521ac71e0 Renamed variable 2021-07-13 18:47:48 +10:00
thak1411
45aec95717 Fixed round error in saving apng file 2021-07-13 12:07:36 +09:00
mergify[bot]
83c05aaf8d
Merge pull request #5605 from radarhere/https
Changed URLs to HTTPS
2021-07-12 13:02:47 +00:00
Andrew Murray
97e0cb85ee Keep transparency when converting from P to LA or PA 2021-07-12 22:55:12 +10:00
Andrew Murray
6ad12e69ec Added build_xz 2021-07-12 22:25:23 +10:00
Andrew Murray
622a1cd542 Changed URLs to HTTPS 2021-07-12 21:00:36 +10:00
Andrew Murray
43ea81c6db For save_all with palette, do not include palette with each frame 2021-07-11 22:52:32 +10:00
Andrew Murray
b45fdd0817 Allow saving WebP with icc_profile None 2021-07-10 15:15:10 +10:00
Andrew Murray
5cdcc2cf64 Added tags when saving YCbCr TIFF 2021-07-10 01:20:36 +10:00
Andrew Murray
a39cb04f3e Consider I;16 pixel size when drawing text 2021-07-09 21:23:43 +10:00
Hugo van Kemenade
be30792714
Merge pull request #5596 from radarhere/harfbuzz
Updated harfbuzz to 2.8.2
2021-07-09 09:12:34 +03: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
4c76ed03a7 Updated harfbuzz to 2.8.2 2021-07-09 10:08:29 +10:00
Andrew Murray
4cb095670b Updated harfbuzz to 2.8.2 2021-07-09 10:07:44 +10:00
Andrew Murray
fdfa9e8521 If default conversion from P is RGB with transparency, convert to RGBA 2021-07-08 17:08:11 +10:00
Andrew Murray
abb192c9b3 Added test 2021-07-07 11:34:15 +02:00
Miloš Komarčević
01e423da00
Ensure TIFF RowsPerStrip is multiple of 8 for JPEG compression 2021-07-07 09:38:06 +02:00
Andrew Murray
59030211cd Pillow -> 8.3.1 2021-07-07 00:12:47 +10:00
Andrew Murray
5fe583598f Added release notes for 8.3.1 2021-07-07 00:03:45 +10:00
Andrew Murray
b6111065de Update CHANGES.rst [ci skip] 2021-07-06 17:57:16 +10:00
Hugo van Kemenade
f6c91c3db9
Merge pull request #5585 from radarhere/stdout
Catch OSError when checking if fp is sys.stdout
2021-07-06 09:05:46 +03:00
Hugo van Kemenade
340adc5f0e
Merge pull request #5584 from radarhere/exif_transpose
Handle removing orientation from alternate types of EXIF data
2021-07-06 09:03:49 +03:00
Andrew Murray
f962b18f69 Catch OSError when checking if fp is sys.stdout 2021-07-06 11:00:03 +10:00
Andrew Murray
917a598615 Handle removing orientation from alternate types of EXIF data 2021-07-06 10:37:28 +10:00
Hugo van Kemenade
b057f5f40f
Merge pull request #5579 from radarhere/simplified 2021-07-05 17:19:17 +03:00
Andrew Murray
9688507193 Removed variable 2021-07-05 23:02:26 +10:00
Andrew Murray
d43d446997
Merge pull request #5572 from t-vi/__array__-dtype
Make Image.__array__ take optional dtype argument
2021-07-05 22:05:37 +10:00
Meithal
919f38e3d9 Try test 2021-07-05 00:20:15 +02:00
Hugo van Kemenade
e3704b1a66
Merge pull request #209 from radarhere/workaround
Removed multibuild workaround
2021-07-04 16:11:47 +03:00
Meithal
d9c14e9ccd Merge branch 'master' into patch-3 2021-07-04 13:14:43 +02:00
Andrew Murray
9707d33ed9 Allow "exif" to also accept bytestring 2021-07-04 13:32:41 +10:00
Andrew Murray
c0f619384c Added "exif" keyword argument to save Image.Exif instance 2021-07-04 12:33:55 +10: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
94ecb27903
Merge pull request #5570 from hugovk/add-3.10
3.10:  Add Trove classifier and to tox.ini, update setup.py version check and Python support table
2021-07-02 23:43:12 +10:00
Hugo van Kemenade
a1132f8cf8
Merge pull request #70 from radarhere/add-3.10
Used line block in table heading
2021-07-02 16:09:38 +03:00
Andrew Murray
8996b9ff9a Used line block in table heading 2021-07-02 22:18:18 +10:00
Andrew Murray
b424d2fc3a Added multibuild workaround 2021-07-02 22:13:16 +10:00
Hugo van Kemenade
38fa78fe30
Merge pull request #69 from radarhere/add-3.10 2021-07-02 12:41:46 +03:00
Andrew Murray
9aab18c5e9 Removed bottom gap in table headings 2021-07-02 18:59:48 +10:00
Andrew Murray
45d5848c30 Use line blocks instead of blank lines 2021-07-02 18:59:12 +10:00
Andrew Murray
113eecfa22 Removed multibuild workaround 2021-07-02 18:13:22 +10:00
Thomas Viehmann
8d1b433c76
Use numpy.array with dtype
Thank you @radarhere.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-07-01 14:08:51 +02:00
Thomas Viehmann
73f6cf22f3 Use numpy.float64 instead of numpy.float to avoid deprecation (thank you radarhere) 2021-07-01 14:06:13 +02:00
Thomas Viehmann
1c03526b65 Make Image.__array__ take optional dtype argument
This is required by the numpy protocol.
2021-07-01 13:09:40 +02:00
Hugo van Kemenade
95cf343df4 Split support table to fit on page 2021-07-01 13:30:19 +03:00
Hugo van Kemenade
26c5eb4bbc Add th headers to tables, newlines, fix typo 2021-07-01 13:29:44 +03:00
Hugo van Kemenade
e7d1b2f4cb Add support for Python 3.10 2021-07-01 13:29:44 +03:00
Andrew Murray
53ce23c749 8.4.0.dev0 version bump 2021-07-01 16:55:53 +10:00
Andrew Murray
8e12a09081 Pillow -> 8.3.0 2021-07-01 14:02:42 +10:00
Andrew Murray
51591a80a4 8.3.0 version bump 2021-07-01 13:53:49 +10:00
Andrew Murray
8041c0405d Update CHANGES.rst [ci skip] 2021-07-01 13:32:27 +10:00
Andrew Murray
d254e581a1 Added release notes for #5567 2021-07-01 13:32:20 +10:00
Andrew Murray
31c473898c
Merge pull request #5567 from radarhere/sprintf
Limit sprintf modes to 10 characters
2021-07-01 12:57:13 +10:00
Miloš Komarčević
fa66d150e2 Enable strip chopping for large TIFFs 2021-07-01 00:43:56 +10:00
Andrew Murray
23b21511b4 Update CHANGES.rst [ci skip] 2021-07-01 00:38:47 +10:00
Hugo van Kemenade
861a031304
Merge pull request #5514 from kmilos/fix_tiff_rowsperstrip 2021-06-30 17:31:42 +03:00
Andrew Murray
f6683683c8 Update CHANGES.rst [ci skip] 2021-07-01 00:30:00 +10:00
Hugo van Kemenade
06f88ddff4
Merge pull request #4526 from newpanjing/master 2021-06-30 17:13:43 +03:00
Andrew Murray
518ee3722a Use snprintf instead of sprintf 2021-06-30 23:52:56 +10:00
Roger Baumgartner
5f4653d0b4 Attempt to read dpi information from JPEG2000's resc header box 2021-06-30 06:43:33 -07:00
Roger Baumgartner
7f275c1bfc Create BoxReader helper class to parse JPEG2000 header 2021-06-30 06:43:33 -07:00
Andrew Murray
43f5a5f80b Combined sizes and types into dictionary 2021-06-30 23:30:59 +10:00
Andrew Murray
6fd4c6e82d Update CHANGES.rst [ci skip] 2021-06-30 23:05:26 +10:00
mergify[bot]
914950959b
Merge pull request #4989 from gofr/4962-jpeg-zigzag
De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables
2021-06-30 12:37:26 +00:00
Andrew Murray
dfeb49c107 Documented deprecation 2021-06-30 21:47:41 +10:00
Andrew Murray
1b74bddfde
Merge pull request #5564 from radarhere/getcolor
Do not use background or transparency index for new color
2021-06-30 21:45:21 +10:00
Andrew Murray
afb6ad27d7 Sorted deprecations by removal date 2021-06-30 20:57:21 +10:00
Andrew Murray
d11c794997 Merge branch 'master' into 4962-jpeg-zigzag 2021-06-30 20:54:55 +10:00
Andrew Murray
8f5762ec5f Parametrized test 2021-06-30 20:32:48 +10:00
Andrew Murray
5f4504bb03 Limit sprintf modes to 10 characters 2021-06-30 19:35:09 +10:00
Andrew Murray
b5c15e93f2 Update CHANGES.rst [ci skip] 2021-06-30 19:34:42 +10:00
Andrew Murray
70c7514a4a
Added specific removal details 2021-06-30 19:29:52 +10:00
Andrew Murray
cab9179a85
Merge pull request #5315 from radarhere/simplified
Simplified code
2021-06-30 19:24:19 +10:00
Hugo van Kemenade
81f4266abe
Merge pull request #5566 from radarhere/releasenotes 2021-06-30 11:40:49 +03:00
Andrew Murray
53b3d5c845 Added release notes for #5416 2021-06-30 13:54:44 +10:00
Andrew Murray
fcfa14a43b Added release notes for #5455 2021-06-30 13:54:10 +10:00
Andrew Murray
7faa107c98 Added release notes for #5402 2021-06-30 12:40:33 +10:00
Andrew Murray
a8c042b82a
Merge pull request #5565 from radarhere/xml
Replaced xml.etree.ElementTree
2021-06-30 12:32:59 +10:00
Andrew Murray
45eaab9ec0 Added release notes 2021-06-30 11:56:19 +10:00
Andrew Murray
0aa8bd00e7 Added warning if defusedxml is not found 2021-06-30 11:29:13 +10:00
Andrew Murray
d9d811ff21 Replaced xml.etree.ElementTree with defusedxml.ElementTree 2021-06-30 11:28:44 +10:00
Andrew Murray
41b58f4b16 Replaced xml.etree.ElementTree with re 2021-06-30 11:28:40 +10:00
Andrew Murray
eab2b17d64 Do not use background or transparency index for new color 2021-06-30 00:05:25 +10:00
Andrew Murray
4b4e5f0e2c
Merge pull request #5563 from hugovk/add-twitter-project-urls
Add Twitter to PyPI project URLs
2021-06-29 23:19:35 +10:00
Hugo van Kemenade
fdfef46460 Add Twitter to PyPI project URLs 2021-06-29 15:27:32 +03:00
mergify[bot]
49b6dc6866
Merge pull request #5562 from radarhere/expand
Corrected border position for P mode in ImageOps.expand()
2021-06-29 12:07:09 +00:00
Andrew Murray
3e5ceb6d67 Corrected border position 2021-06-29 21:24:41 +10:00
Andrew Murray
8736a745f4 Removed _to_int 2021-06-29 21:08:26 +10:00
Andrew Murray
90ece137b0
Merge branch 'master' into master 2021-06-29 20:52:35 +10:00
Andrew Murray
f366330a74 Only open one BytesIO instance at a time 2021-06-29 20:50:36 +10:00
Andrew Murray
d07a085757 Simplified use of struct 2021-06-29 20:40:32 +10:00
Andrew Murray
f5558f42f4 Only getvalue() once per entry 2021-06-29 20:40:26 +10:00
Andrew Murray
8e60ca6106 Use bytes 2021-06-29 20:40:05 +10:00
Andrew Murray
a1d8d638bf
Checked complete length of value 2021-06-29 19:41:00 +10:00
mergify[bot]
28330c2f9d
Merge pull request #5561 from radarhere/crash
Moved CVE image to pillow-depends
2021-06-29 07:07:14 +00:00
Andrew Murray
2cbcae3d94 Update CHANGES.rst [ci skip] 2021-06-29 11:59:38 +10:00
Hugo van Kemenade
bdc87f6dcf
Merge pull request #5539 from kdpenner/gaussian-doc
Modified docstring for GaussianBlur
2021-06-28 19:37:28 +03:00
Hugo van Kemenade
2251be1a6f
Merge pull request #5554 from radarhere/tag_group_data 2021-06-28 19:03:01 +03:00
Hugo van Kemenade
50302231ed
Merge pull request #5552 from radarhere/palette 2021-06-28 19:01:54 +03:00
Hugo van Kemenade
d0394d44c2
Merge pull request #5402 from radarhere/dds 2021-06-28 18:50:21 +03:00
Hugo van Kemenade
b5c4b9afe0
Merge pull request #5455 from radarhere/xmp 2021-06-28 18:43:04 +03:00
Hugo van Kemenade
9f28e4be26
Merge pull request #5412 from radarhere/ifdrational_eq_float 2021-06-28 18:33:46 +03:00
Hugo van Kemenade
6d94376d1f
Merge pull request #5416 from radarhere/tiff_exif
Allow getexif() to access TIFF tag_v2 data
2021-06-28 18:12:17 +03:00
Hugo van Kemenade
78f150cb42
Merge pull request #5405 from radarhere/fits
Read FITS image mode and size
2021-06-28 17:57:49 +03:00
Hugo van Kemenade
38d45d2848
flush if hasattr
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-06-28 17:48:06 +03:00
Andrew Murray
fb4ff0bce2 Update CHANGES.rst [ci skip] 2021-06-29 00:43:52 +10:00
Hugo van Kemenade
f3db65db09
Merge pull request #5347 from radarhere/edge 2021-06-28 17:17:17 +03:00
Hugo van Kemenade
70fafe3da7
Update version number 2021-06-28 16:36:30 +03:00
Andrew Murray
2976c4efdc Removed crash image 2021-06-28 23:27:52 +10:00
Andrew Murray
1ee30ded0b Fixed reloading palette 2021-06-28 22:27:05 +10:00
Andrew Murray
461628845d Disposal method 2 is transparency or black when saving 2021-06-28 22:27:01 +10:00
mergify[bot]
b939ce4750
Merge pull request #5560 from radarhere/test_comments
Corrected comments
2021-06-28 10:56:22 +00:00
Andrew Murray
d24299a16c Corrected comments 2021-06-28 20:21:46 +10:00
Andrew Murray
6db0e96102 Ensure image is loaded in remap_palette 2021-06-28 20:12:22 +10:00
Andrew Murray
3d2f3baa4c Update CHANGES.rst [ci skip] 2021-06-28 07:05:42 +10:00
Hugo van Kemenade
00303a29e9
Merge pull request #5557 from radarhere/gif_first_frame_transparency 2021-06-27 16:14:23 +03:00
Andrew Murray
804183c248 Only use an RGBA palette for images with an alpha channel 2021-06-27 18:29:02 +10:00
Andrew Murray
7005e66f00 Use first index for repeated color 2021-06-27 16:33:47 +10:00
Andrew Murray
450382f574 Do not use raw ImagePalette 2021-06-27 15:09:39 +10:00
Andrew Murray
dd28af0dfa
Merge branch 'master' into tag_group_data 2021-06-27 12:06:11 +10:00
Hugo van Kemenade
52856bceb7
Merge pull request #5556 from radarhere/empty_subifd
Fixed undefined variable in logging
2021-06-26 08:39:11 +03:00
Andrew Murray
e29a7d8a94 Replace with transparency if available for disposal method 2 2021-06-26 00:55:31 +10:00
Andrew Murray
f6d504c8f6 Use context manager 2021-06-26 00:48:16 +10:00
Glenn Maynard
432677740d Add a test for an image that works with other GIF decoders.
This test is fixed by the next commits.
2021-06-26 00:48:10 +10:00
Andrew Murray
5b4cb5052a Draw first frame on top of transparency 2021-06-25 21:54:21 +10:00
Andrew Murray
61c39074f5 Fixed undefined variable in logging 2021-06-25 19:46:58 +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
Andrew Murray
a2709be7f4 Added tag data for IFD groups 2021-06-24 19:56:01 +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
59a3e3bc60 Rearranged code to limit line length 2021-06-23 19:37:56 +10:00
Andrew Murray
1606d9adf3 Removed code from before Python 3.2 2021-06-23 19:29:06 +10:00
Andrew Murray
9192a33b38 Removed unnecessary load() 2021-06-23 19:29:02 +10:00
Andrew Murray
b6b362c807 Set color after attaching palette in expand() 2021-06-23 19:28:56 +10:00
Andrew Murray
8210645e4b If all 256 colors are in use, then there is no need for an additional color for background or transparency 2021-06-23 19:28:46 +10:00
Andrew Murray
fa559277fb When allocating a new color, repurpose an unused index if necessary 2021-06-23 19:27:08 +10:00
Andrew Murray
f3451aefc6 Convert opaque RGBA color to RGB if that is the palette mode 2021-06-23 19:26:53 +10:00
Andrew Murray
3b9792ab74 Convert getcolor input to RGBA if that is the palette mode 2021-06-23 19:23:34 +10:00
Andrew Murray
4d36feefc7 Set palette to be empty by default 2021-06-23 19:22:21 +10:00
Andrew Murray
dc89f0eaa9 Set colors 2021-06-23 19:16:04 +10:00
Andrew Murray
70ef50cf72 Update CHANGES.rst [ci skip] 2021-06-21 08:14:11 +10:00
Hugo van Kemenade
ec74f3b1c0
Merge pull request #5367 from radarhere/quant 2021-06-20 21:57:05 +03:00
Andrew Murray
765e6ae7ed Update CHANGES.rst [ci skip] 2021-06-20 22:53:04 +10:00
Hugo van Kemenade
e5b2d61e00
Merge pull request #5551 from radarhere/imageops 2021-06-20 15:51:21 +03:00
Andrew Murray
93871c032a Update CHANGES.rst [ci skip] 2021-06-20 22:47:44 +10:00
Hugo van Kemenade
53b51e1df6
Merge pull request #5549 from radarhere/palette 2021-06-20 15:44:38 +03:00
Andrew Murray
29111eafe8 Update CHANGES.rst [ci skip] 2021-06-20 21:33:42 +10:00
Hugo van Kemenade
7c08565e5e
Merge pull request #5547 from radarhere/exif 2021-06-20 13:22:05 +03:00
Hugo van Kemenade
8b0244ac66
Merge pull request #5540 from radarhere/numresolution 2021-06-20 11:58:51 +03:00
Andrew Murray
6639b2af7f Copy palette to new images in expand 2021-06-19 21:24:58 +10:00
Andrew Murray
aa4489c993 Keep palette the same length 2021-06-19 09:31:46 +10:00
Andrew Murray
f45d2e296d Ensure palette string matches RGB mode 2021-06-19 09:16:05 +10:00
Andrew Murray
04566917f8 Do not modify EXIF of original image instance in exif_transpose() 2021-06-18 19:01: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
kdpenner
4433ff0ffd Wording changes 2021-06-15 12:11:46 -04:00
Hugo van Kemenade
384a4bf01e
Merge pull request #5542 from radarhere/reverse
Reverse test order for two CI jobs
2021-06-14 20:23:48 +03:00
Andrew Murray
a42a35269a Reverse test order for two jobs 2021-06-14 22:58:40 +10:00
Andrew Murray
3066c48faa
Merge pull request #5533 from radarhere/random
Fixed errors when running tests in random order
2021-06-14 22:43:31 +10:00
Hugo van Kemenade
fd81da7e32
Merge pull request #203 from radarhere/travis 2021-06-14 15:11:03 +03:00
Hugo van Kemenade
8f55c955db
Merge pull request #5535 from radarhere/tiff_format
Fixed format warning
2021-06-14 15:07:50 +03:00
Andrew Murray
2afc6fdfc4 Documented updates to DDS format 2021-06-14 18:14:28 +10:00
Andrew Murray
6449cdc1a3 Added RGBA saving 2021-06-14 18:14:28 +10:00
Andrew Murray
143e08c92c Added RGB saving 2021-06-14 18:14:28 +10:00
Andrew Murray
37c9b523b2 Use constant for uncompressed RGB data check 2021-06-14 18:14:28 +10:00
Andrew Murray
bd298b128c Fixed default numresolution for small JPEG2000 images 2021-06-14 11:23:56 +10:00
Andrew Murray
85d009c697
Merge pull request #5532 from radarhere/image_format
Copies of an image do not retain the format
2021-06-13 13:30:07 +10:00
Andrew Murray
fc1e7f423a
Corrected syntax [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-06-13 07:43:00 +10:00
Hugo van Kemenade
58661c978b
Merge pull request #5534 from radarhere/type 2021-06-12 21:30:15 +03:00
Hugo van Kemenade
c2a6cebd6c
Merge pull request #5515 from PH-KDX/sidebar-fix 2021-06-12 21:22:31 +03:00
kdpenner
ce9cea94ed Modified docstring for GaussianBlur 2021-06-12 12:05:36 -04:00
Andrew Murray
cd31dae0d1 Added getxmp() for PNG 2021-06-12 13:57:14 +10:00
Andrew Murray
ae3bdf87f0 Added getxmp() for TIFF 2021-06-12 12:17:38 +10:00
Andrew Murray
c1fbe2d975 Corrected getxmp() descending into XML 2021-06-12 11:58:11 +10:00
Miloš Komarčević
100299a838 Add multiple strip saving test 2021-06-12 11:49:20 +10:00
Miloš Komarčević
0ae2981957 Put upper limit on rows per strip 2021-06-12 11:49:20 +10:00
Miloš Komarčević
1c4deefe11 Make strip calculation more readable 2021-06-12 11:49:20 +10:00
Miloš Komarčević
c949d54605 Fix lint errors 2021-06-12 11:49:20 +10:00
Miloš Komarčević
7752fb5131 Limit TIFF strip size when saving with libtiff 2021-06-12 11:49:20 +10:00
Andrew Murray
e00af259d8 Use PRIu64 to fix format warning 2021-06-11 18:27:36 +10:00
Andrew Murray
20bd9e9261 Update CHANGES.rst [ci skip] 2021-06-11 17:45:48 +10:00
Hugo van Kemenade
101887360c
Merge pull request #5501 from radarhere/dds_bc5 2021-06-11 10:34:19 +03:00
Andrew Murray
b1b0dcb4e5 Update CHANGES.rst [ci skip] 2021-06-11 07:56:16 +10:00
Hugo van Kemenade
a9b0adc57f
Merge pull request #5510 from radarhere/textbbox 2021-06-10 17:46:32 +03:00
Andrew Murray
5b0a63f76d Updated declaration to match definition 2021-06-10 19:01:12 +10:00
Andrew Murray
41fc39174a Reset fuzzer LOAD_TRUNCATED_IMAGES and filters to allow for random test order 2021-06-10 13:49:17 +10:00
Andrew Murray
d99a6ff862 Reset MAX_IMAGE_PIXELS after each test to allow for random test order 2021-06-10 13:17:57 +10:00
Andrew Murray
ab1cc6ffa4 Copies of an image do not retain the format [ci skip] 2021-06-10 09:18:14 +10:00
Andrew Murray
cc28ad2441 Added release notes [ci skip] 2021-06-08 23:01:28 +10:00
Andrew Murray
61b9065a25 Update CHANGES.rst [ci skip] 2021-06-07 08:11:26 +10:00
Hugo van Kemenade
2a7eb5415e
Merge pull request #5513 from radarhere/ico_bmp
Added ICO saving in BMP format
2021-06-06 18:12:33 +03:00
Andrew Murray
b17a7dda28 Added release notes [ci skip] 2021-06-06 21:34:01 +10:00
Andrew Murray
ab52e830c3 Update CHANGES.rst [ci skip] 2021-06-06 21:16:09 +10:00
Hugo van Kemenade
87dca4f477
Merge pull request #5493 from radarhere/png_load_end
Ensure PNG seeks to end of previous chunk at start of load_end
2021-06-06 10:35:04 +03:00
Andrew Murray
c317e81809
Merge pull request #5522 from kmilos/winbuild_lcms2
Fix lcms2_static target for msbuild
2021-06-06 16:02:08 +10:00
Hugo van Kemenade
1ac7bd9f87
Merge pull request #5473 from radarhere/tiff_seek
Do not allow TIFF to seek to a past frame
2021-06-05 18:49:34 +03:00
Miloš Komarčević
f2e719b608 Fix lcms2_static target for msbuild 2021-06-04 20:38:12 +02:00
Hugo van Kemenade
b25bdbc377
Merge pull request #5521 from radarhere/macos 2021-06-04 14:38:47 +03:00
Andrew Murray
1b2dba251a Updated macOS tested Pillow versions [ci skip] 2021-06-03 23:40:48 +10: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
PH-KDX
544ecdbed9
Merge pull request #1 from radarhere/css
Removed duplicate block
2021-05-30 01:27:16 +02: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
0a609d7fb4 Removed duplicate block 2021-05-28 22:29:31 +10:00
PH-KDX
aaa2d6a77d
fix differing background colors in right sidebar [ci skip] 2021-05-28 02:12:09 +02:00
Andrew Murray
2c9a9b3529 Added ICO saving in BMP format 2021-05-27 06:21:28 +10:00
Andrew Murray
22e1fff754 Update CHANGES.rst [ci skip] 2021-05-25 22:38:58 +10:00
Andrew Murray
10d8800ee7
Merge pull request #5507 from mconst/master
Avoid race condition when displaying images with eog
2021-05-25 22:36:39 +10:00
Andrew Murray
362d504011 Raise an error if textbbox is used without a FreeTypeFont 2021-05-25 20:45:38 +10:00
Hugo van Kemenade
affa059e95
Merge pull request #5504 from radarhere/tuple_size
Added specific error messages when ink has incorrect number of bands
2021-05-23 17:18:38 +03:00
Michael Constant
5c8aa277ce Avoid race condition when displaying images with eog
Image.show() expects its display command to run synchronously, but eog
is asynchronous if there's another instance already running -- it just
asks the other instance to open the file and then immediately exits.
This causes intermittent failures where the file gets deleted before
the running eog instance manages to open it.

Fix this by using the -n option, so eog starts a new instance each time
instead of trying to reuse an existing one.
2021-05-23 01:10:41 -07:00
Andrew Murray
cc2db17271 Update CHANGES.rst [ci skip] 2021-05-21 00:14:53 +10:00
Hugo van Kemenade
3cbf4d5ef7
Merge pull request #5379 from radarhere/numpy
Allow converting an image to a numpy array to raise errors
2021-05-20 15:09:02 +03:00
Hugo van Kemenade
60d6dc7869
Merge pull request #5488 from radarhere/args
Use METH_NOARGS when no arguments are required
2021-05-19 23:43:29 +03:00
mergify[bot]
f0e1f03905
Merge pull request #5505 from radarhere/typo
Fixed typo
2021-05-19 14:41:12 +00:00
Andrew Murray
8099d01349 Fixed typo 2021-05-19 23:32:00 +10:00
Andrew Murray
88a8459b41 Fixed untar on macOS 11 2021-05-19 22:25:36 +10:00
Andrew Murray
3b4db88202 Added BC5_SNORM reading when FourCC is DX10 2021-05-19 22:19:19 +10:00
Andrew Murray
22fb2dbd29 Simplified code 2021-05-19 21:57:40 +10:00
Andrew Murray
f59ff6d55b Read BC5_TYPELESS as BC5_UNORM 2021-05-19 21:16:12 +10:00
Andrew Murray
1bb98974f8 Moved DXT5 test after DXT3 test 2021-05-19 21:14:51 +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
a1412681ff Added specific error messages when ink has incorrect number of bands 2021-05-19 20:19:57 +10:00
Andrew Murray
ff0c0afb2c Use PyTuple_GET_SIZE since variable is known to be a tuple 2021-05-19 19:51:45 +10:00
Andrew Murray
8b9b95bf5c Added Python 3.8 for arm64 2021-05-19 19:10:44 +10:00
Hugo van Kemenade
16b9cadd41
Merge pull request #5495 from radarhere/tiff_tags
Added CFAPattern, ExifVersion and FlashpixVersion UNDEFINED tags
2021-05-19 00:31:41 +03:00
Andrew Murray
2e7f40e0b8 Added BC5_SNORM reading 2021-05-18 17:44:21 +10:00
Andrew Murray
ae0efcb051
Merge pull request #5498 from hugovk/improve-docs
Build docs with sphinx_copybutton and sphinxext.opengraph
2021-05-17 22:25:25 +10:00
Andrew Murray
68ac6d151e Added BC5_UNORM reading 2021-05-17 18:57:23 +10:00
Andrew Murray
eed337eacc Update CHANGES.rst [ci skip] 2021-05-17 08:31:27 +10:00
Hugo van Kemenade
a72ae6823c
Merge pull request #5476 from radarhere/dpi_rounding 2021-05-16 20:00:10 +03:00
Hugo van Kemenade
d53a664866
Merge pull request #5470 from radarhere/wmf_dpi_rounding
Removed WMF DPI rounding
2021-05-16 19:57:14 +03:00
Hugo van Kemenade
ca97b16c0a
Install normalised sphinx-copybutton
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-05-16 09:46:00 +03: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
Hugo van Kemenade
e32504ab6e
Merge pull request #68 from radarhere/improve-docs
Set og:image:alt to be constant
2021-05-15 11:56:07 +03:00
Andrew Murray
e27728f24a Migrated from deprecated xproto to xorgproto 2021-05-15 12:15:56 +10:00
Andrew Murray
23467636ad Set og:image:alt to be constant 2021-05-15 09:07:36 +10:00
Hugo van Kemenade
d49000beaa Add og:image 2021-05-14 21:30:39 +03:00
Hugo van Kemenade
7f9037a8ca Use code formatting 2021-05-14 20:13:44 +03:00
Hugo van Kemenade
5caa04c2d1 Build docs with sphinx_copybutton and sphinxext.opengraph 2021-05-14 20:13:44 +03:00
Andrew Murray
3f01813a50 Update CHANGES.rst [ci skip] 2021-05-14 23:39:44 +10:00
Andrew Murray
78406ed1ff
Merge pull request #5460 from xtsm/ellipse
Remove spikes when drawing thin pieslices
2021-05-14 23:37:11 +10:00
Hugo van Kemenade
f02739715d
Merge pull request #5452 from radarhere/missing_samplesperpixel
Updated default value for SAMPLESPERPIXEL TIFF tag
2021-05-14 16:17:34 +03:00
Hugo van Kemenade
d74cf22758
Merge pull request #5496 from radarhere/setuptools
Removed setuptools version requirement on GHA macOS and Windows
2021-05-14 14:36:01 +03:00
Andrew Murray
f132e4de8d Removed setuptools version requirement 2021-05-14 19:48:47 +10:00
Andrew Murray
c8802030cf Added CFAPattern, ExifVersion and FlashpixVersion UNDEFINED tags 2021-05-14 18:50:56 +10:00
Andrew Murray
bf97a92bc6 Ensure PNG seeks to end of previous chunk at start of load_end 2021-05-14 13:18:49 +10:00
mergify[bot]
186145e5a0
Merge pull request #5492 from radarhere/libimagequant
Updated libimagequant to 2.15.1
2021-05-13 12:43:45 +00:00
Andrew Murray
ff5eb51216 Updated libimagequant to 2.15.1 2021-05-13 22:13:07 +10:00
Andrew Murray
29c6f53e99 Use METH_NOARGS when no arguments are required 2021-05-11 20:19:17 +10:00
Andrew Murray
f2ee5d6697 Use METH_VARARGS flags 2021-05-11 20:16:44 +10:00
Hugo van Kemenade
d393cfb65a
Merge pull request #5483 from radarhere/wheels
Updated badges for wheels
2021-05-11 08:55:44 +03: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
Andrew Murray
71bac115a9
Merge pull request #5482 from radarhere/setuptools_ubuntu
Removed GitHub Actions Ubuntu setuptools version requirement
2021-05-11 00:20:38 +10:00
Andrew Murray
c844c07d3d Updated badges for wheels 2021-05-10 22:11:22 +10:00
Andrew Murray
b5fc91a550 Removed GitHub Actions Ubuntu setuptools version requirement 2021-05-10 21:39:36 +10:00
Alexander Karpinsky
bfdb886f52
Merge pull request #5481 from uploadcare/fix-boxblur-link
HTTP link is not valid (wrong redirect)
2021-05-10 14:18:05 +03:00
Alexander Karpinsky
2fa6537df3 HTTP link is not valid (wrong redirect) 2021-05-10 14:14:36 +03:00
Andrew Murray
7bfaffd5fa Simplified tests now that casting to float is not needed 2021-05-10 09:36:57 +10:00
Andrew Murray
c04260b3f5 Convert to float for comparison with float in IFDRational __eq__ 2021-05-10 08:36:45 +10:00
Andrew Murray
ef22a740eb Update CHANGES.rst [ci skip] 2021-05-10 08:36:10 +10:00
Andrew Murray
9bbe53a01d
Merge pull request #5446 from radarhere/tiff_dpi_rounding
Removed TIFF DPI rounding
2021-05-10 08:34:05 +10:00
Andrew Murray
b256541c66 Update CHANGES.rst [ci skip] 2021-05-10 08:05:12 +10:00
Andrew Murray
43faa38952
Wrapped tuples in brackets
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-05-10 07:54:47 +10:00
Hugo van Kemenade
3942eaec18
Merge pull request #5471 from radarhere/webp_error_code 2021-05-09 23:18:49 +03:00
Hugo van Kemenade
79eb24ba34
Merge pull request #5474 from radarhere/stdout 2021-05-09 23:17:23 +03:00
Hugo van Kemenade
c1e1aeea87
Merge pull request #5458 from radarhere/tiff_deprecations 2021-05-09 23:14:22 +03:00
Hugo van Kemenade
649eaae360
Merge pull request #5434 from radarhere/text_alpha 2021-05-09 22:17:58 +03:00
Hugo van Kemenade
23f848ea54
Merge pull request #5443 from radarhere/fp 2021-05-09 20:39:44 +03: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
Hugo van Kemenade
c3ee625423
Merge pull request #5479 from radarhere/imagequant 2021-05-09 18:37:39 +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
Andrew Murray
6b59b5f4dd Updated libimagequant to 2.15.0 2021-05-09 11:58:11 +10:00
Hugo van Kemenade
2a94728c0f
Merge pull request #5477 from radarhere/python3
Use python3
2021-05-08 08:19:36 +03:00
Andrew Murray
3795772187 Use python3 2021-05-08 12:37:06 +10:00
Andrew Murray
9ac888262a Do not allow TIFF to seek to a past frame 2021-05-08 00:25:47 +10:00
Andrew Murray
18e204df05 Removed DPI rounding from JPEG loading 2021-05-07 21:23:29 +10:00
Andrew Murray
0de3beaeaf Removed DPI rounding when BMP loading 2021-05-07 20:50:18 +10:00
Andrew Murray
9d72542c08 Removed DPI rounding from PNG loading 2021-05-07 20:50:01 +10:00
Andrew Murray
e7749abdf9 Corrected error in restoring sys.stdout 2021-05-07 20:44:46 +10:00
Andrew Murray
4080f160b6 Include code in WebP error 2021-05-07 00:12:03 +10:00
Andrew Murray
b9c571a328 Removed WMF DPI rounding 2021-05-06 20:08:54 +10:00
Hugo van Kemenade
8354fa4929
Merge pull request #5468 from radarhere/tiff_docstring
Corrected code references in docstring
2021-05-05 21:43:38 +03:00
Andrew Murray
edc2771909 Corrected code references in docstring 2021-05-05 23:52:59 +10:00
Andrew Murray
2bc754e102
Merge pull request #5462 from adrian-the-git/master
Fix build with libraqm < 0.7.0
2021-05-05 18:02:32 +10:00
Andrew Murray
0985de21af
Added comment
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2021-05-05 15:03:00 +10:00
Hugo van Kemenade
88ab3b5008
Merge pull request #5466 from radarhere/libtiff_versions
Updated tested libtiff versions
2021-05-04 21:51:24 +03: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
Andrew Murray
ec0e93aa10 Updated tested libtiff versions [ci skip] 2021-05-05 00:42:14 +10: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
Hugo van Kemenade
c10608c526
Merge pull request #5464 from radarhere/harfbuzz
Updated harfbuzz to 2.8.1
2021-05-04 12:57:34 +03:00
Andrew Murray
6fc039a21c Updated default value for SAMPLESPERPIXEL tag 2021-05-04 16:50:12 +10:00
Andrew Murray
f4862597f8 Updated harfbuzz to 2.8.1 2021-05-04 13:24:06 +10:00
Andrew Murray
b3bf77361c Updated harfbuzz to 2.8.1 2021-05-04 13:23:23 +10:00
Hugo van Kemenade
20b8a83773
Merge pull request #5437 from radarhere/stdout 2021-05-03 11:57:46 +03:00
Andrew Murray
0f68e63793 Allow for sys.stdout.buffer to be missing 2021-05-03 18:07:05 +10:00
Adrian Carpenter
b2f92df1ba Fix build with libraqm < 0.7.0
gcc's cpp doesn't short-circuit when RAQM_VERSION_ATLEAST is undefined
so building fails on systems with old libraqm (e.g. Debian 10 for
raspberry pi where wheels w/libraqm support may not be available).
RAQM_VERSION_ATLEAST was introduced with 0.7.0, so the test is
effectively equivalent.
2021-05-02 23:21:29 -07:00
Hugo van Kemenade
d2f2fbacaa
Merge pull request #5426 from radarhere/undefined_zero
Fixed UNDEFINED TIFF tag of length 0 being changed in roundtrip
2021-05-03 09:07:32 +03:00
Andrew Murray
502f497c57 Update CHANGES.rst [ci skip] 2021-05-03 08:48:53 +10:00
Hugo van Kemenade
2125ce8331
Merge pull request #5445 from radarhere/freetype_version
Fixed bug when checking FreeType2 version if it is not installed
2021-05-02 17:24:26 +03:00
Stanislau Tsitsianok
ca67a0c1a2
Added test for #5432 2021-05-02 17:12:27 +03:00
Stanislau Tsitsianok
0c9ffcfa14
Fixed #5432 2021-05-02 17:12:07 +03:00
Andrew Murray
e8f902f987 Update CHANGES.rst [ci skip] 2021-05-02 21:32:51 +10:00
Hugo van Kemenade
0836e388e8
Merge pull request #5459 from radarhere/pdf_float
Do not round dimensions when saving PDF
2021-05-02 11:16:34 +03:00
Andrew Murray
1c52f674a3 Update CHANGES.rst [ci skip] 2021-05-02 08:19:19 +10:00
Hugo van Kemenade
8a8ac60817
Merge pull request #5417 from radarhere/contain
Added ImageOps contain()
2021-05-01 18:44:37 +03:00
Andrew Murray
c062410985 Documented #5414 2021-05-01 23:44:09 +10:00
Andrew Murray
5b0031c9fa Documented #5411 2021-05-01 23:09:20 +10:00
Andrew Murray
f45f7dcc23 Documented #5450 2021-05-01 23:08:49 +10:00
Andrew Murray
b432f838f1 Documented ImageOps contain method 2021-05-01 22:53:46 +10:00
Andrew Murray
d22fe41776 Reorganised test to use parametrize 2021-05-01 22:36:12 +10:00
Andrew Murray
38a520c109 Updated docstrings 2021-05-01 22:35:53 +10:00
Andrew Murray
91b3a9d6a1
Updated docstring
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-05-01 21:56:49 +10:00
Andrew Murray
bc935f9970 Do not round dimensions when saving PDF 2021-05-01 12:13:09 +10:00
Andrew Murray
11d1458316 Replaced uint16 and uint32 with uint16_t and uint32_t to resolve TIFF deprecations 2021-05-01 00:51:39 +10:00
mergify[bot]
676f4dbefb
Merge pull request #5457 from radarhere/error
Clarified error message
2021-04-30 10:42:29 +00:00
Andrew Murray
1c617a9877 Clarified error message 2021-04-30 19:36:30 +10:00
Andrew Murray
256372724b
Merge pull request #5456 from python-pillow/revert-5447-python310
Revert "Fixed Python 3.10 at alpha.7": use 3.10-dev
2021-04-30 19:22:22 +10:00
Hugo van Kemenade
05f9e23024
Merge pull request #5453 from nulano/pypy-win64
GHA: Update test-windows for 64-bit PyPy 7.3.4 release
2021-04-30 12:09:59 +03:00
Hugo van Kemenade
ee94f4e394
Revert "Fixed Python 3.10 at alpha.7" 2021-04-30 11:35:27 +03:00
Andrew Murray
ca3ad49de3 Fixed bug when checking FreeType2 version if it is not installed 2021-04-29 23:10:08 +10:00
Andrew Murray
8bc19ac78c Do not alter pixels outside mask when drawing text on an image with transparency 2021-04-29 23:08:25 +10:00
Andrew Murray
b78cf8cd75 Added state methods to allow pickling of IFDRational 2021-04-29 22:47:44 +10:00
Andrew Murray
537cd7a82e Removed TIFF DPI rounding 2021-04-29 22:47:44 +10:00
Andrew Murray
fd299e36ce Reset handle when seeking backwards as well 2021-04-29 22:47:20 +10:00
Andrew Murray
ce3d69baf9 Simplified code by writing bytes instead of using wrapping to write strings 2021-04-29 21:35:57 +10:00
Andrew Murray
9c06ce044c Changed PSDraw default from sys.stdout to sys.stdout.buffer 2021-04-29 21:35:57 +10:00
Andrew Murray
bb12c8079e Added missing import 2021-04-29 21:35:57 +10:00
Andrew Murray
fae9afe351 Replace sys.stdout with sys.stdout.buffer when saving 2021-04-29 21:35:57 +10:00
Andrew Murray
622ba122ce Added Exif load_from_fp method to get TIFF tag_v2 data 2021-04-29 21:21:55 +10:00
Andrew Murray
976d9fa347 Fixed UNDEFINED TIFF tag of length 0 being changed in roundtrip 2021-04-29 21:21:09 +10:00
Andrew Murray
ef9a8e5f7f Update CHANGES.rst [ci skip] 2021-04-29 21:18:54 +10:00
Hugo van Kemenade
b3bb58746c
Merge pull request #5450 from radarhere/webp_method
Changed WebP default "method" value to 4
2021-04-29 14:17:05 +03:00
Hugo van Kemenade
4669345746
Merge pull request #5447 from radarhere/python310
Fixed Python 3.10 at alpha.7
2021-04-29 14:16:18 +03:00
Andrew Murray
5c9faf043f
Merge pull request #5451 from radarhere/fedora
Added Fedora 34
2021-04-28 19:24:55 +10:00
Andrew Murray
2c03800824 Changed default "method" value to 4 2021-04-28 18:20:44 +10:00
Andrew Murray
f1b1e9465d Added Fedora 34 2021-04-28 07:51:11 +10:00
Andrew Murray
12968c3269 Update CHANGES.rst [ci skip] 2021-04-27 21:43:00 +10:00
Andrew Murray
5cae79b8e5 Fixed Python 3.10 at alpha.7 2021-04-27 20:27:00 +10:00
Hugo van Kemenade
56730906f2
Merge pull request #5433 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.1.0
2021-04-25 15:47:54 +03:00
Hugo van Kemenade
dc817ead76
Merge pull request #5430 from radarhere/pdf_1
Switched to saving 1-bit PDFs with DCTDecode
2021-04-25 15:29:34 +03:00
Hugo van Kemenade
4f21cd0257
Merge pull request #5421 from radarhere/tiff
Updated libtiff to 4.3.0
2021-04-25 15:19:48 +03: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
67fbb8b815 Update CHANGES.rst [ci skip] 2021-04-25 21:35:21 +10:00
Hugo van Kemenade
6461dd63b3
Merge pull request #5429 from radarhere/ico
Use bpp from ICO header
2021-04-25 12:07:38 +03:00
Hugo van Kemenade
d3a3b6dddb
Merge pull request #5408 from radarhere/indexerror
Corrected JPEG APP14 transform value
2021-04-25 11:36:40 +03:00
Hugo van Kemenade
b21508798a
Merge pull request #5427 from radarhere/macos
Updated macOS tested Pillow versions
2021-04-25 11:33:41 +03:00
Hugo van Kemenade
23efd39b99
Merge pull request #5425 from radarhere/iptc
Changed TIFF tag 33723 length to 1
2021-04-25 11:23:52 +03:00
Hugo van Kemenade
75f385ffaa
Merge pull request #5423 from radarhere/ico_documentation
Added info about mode when saving ICO for Windows
2021-04-25 11:14:31 +03:00
Andrew Murray
0f7c15728e Updated libjpeg-turbo to 2.1.0 2021-04-24 08:51:13 +10:00
Andrew Murray
46a1ee20a1 Update CHANGES.rst [ci skip] 2021-04-24 08:43:52 +10:00
Andrew Murray
3d6e8b6769
Merge pull request #5424 from thijstriemstra/patch-1
Add Raspberry Pi OS to platform support
2021-04-24 08:22:31 +10:00
Hugo van Kemenade
b09a9210d4
Merge pull request #5414 from radarhere/morph
Changed ImageMorph incorrect mode errors to ValueError
2021-04-23 16:52:55 +03:00
Hugo van Kemenade
fae03d8553
Merge pull request #5422 from radarhere/appveyor
Updated nasm to 2.15.05 in AppVeyor
2021-04-23 16:23:12 +03:00
Andrew Murray
ac1359ed5d
Merge pull request #5419 from gladiusglad/exiftags
Add EXIF tags specified in EXIF 2.32
2021-04-23 07:52:18 +10:00
Hugo van Kemenade
28207d945c
Merge pull request #5420 from radarhere/ico_test
Corrected test
2021-04-22 17:01:41 +03:00
Andrew Murray
d62be3e354 Switched to saving 1-bit PDFs with DCTDecode 2021-04-22 22:16:21 +10:00
Andrew Murray
900b849aa8 Use bpp from header 2021-04-22 21:18:21 +10:00
Thijs Triemstra
ef23737ebc
Update docs/installation.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-04-22 00:22:21 +02:00
Thijs Triemstra
5dce1fa607
update table for py27 on raspberry pi os 2021-04-21 19:40:56 +02:00
Andrew Murray
0da88de5de Updated macOS tested Pillow versions [ci skip] 2021-04-21 23:38:20 +10:00
Andrew Murray
6b098a2c34 Changed TIFF tag 33723 length to 1 2021-04-21 22:37:47 +10:00
Thijs Triemstra
8446c471b5
doc: add Raspberry Pi OS to platform support 2021-04-20 23:13:31 +02:00
Andrew Murray
4b066e66da Added info about mode when saving for Windows [ci skip] 2021-04-20 23:58:52 +10:00
Andrew Murray
9e80930ad8 Updated nasm to 2.15.05 2021-04-20 22:36:45 +10:00
Andrew Murray
510f93b886 Updated libtiff to 4.3.0 2021-04-20 22:31:37 +10:00
Andrew Murray
ab8955b48e Update CHANGES.rst [ci skip] 2021-04-20 21:47:21 +10:00
Andrew Murray
6967f3519f Test when "adobe_transform" is unable to be read 2021-04-20 20:53:50 +10:00
Andrew Murray
8d52181123 Corrected test 2021-04-20 20:24:50 +10:00
Hugo van Kemenade
bb5a34fcb0
Merge pull request #5391 from radarhere/gif_disposal
Treat previous contents of first GIF frame as transparent
2021-04-20 13:23:11 +03:00
gladiusglad
72d7d1d0ea Add EXIF tags which are part of the EXIF 2.32 specification 2021-04-20 11:01:46 +07:00
Andrew Murray
cfc9ad46bc Update CHANGES.rst [ci skip] 2021-04-20 08:16:57 +10:00
Hugo van Kemenade
9e73f7a324
Merge pull request #5374 from radarhere/static
Changed quantize and quantize2 to static
2021-04-19 17:58:35 +03:00
Hugo van Kemenade
d2e73b0304
Merge pull request #5411 from radarhere/resize_default
For special image modes, revert default resize resampling to NEAREST
2021-04-19 17:57:46 +03:00
Andrew Murray
40eceec70d Added contain method 2021-04-19 20:12:52 +10:00
Hugo van Kemenade
fc08a72600
Merge pull request #5400 from radarhere/mapdepth_16
Changed mode for TGA 16-bit palette to BGR;15
2021-04-18 13:00:29 +03:00
Hugo van Kemenade
50fdc151ea
Merge pull request #5396 from radarhere/mapdepth
TGA color map entry size is only 1 byte
2021-04-18 12:57:58 +03:00
Andrew Murray
7e4fd9d845 Changed incorrect mode errors to ValueError 2021-04-18 14:47:05 +10:00
Andrew Murray
28eb57888d Update CHANGES.rst [ci skip] 2021-04-18 12:33:00 +10:00
Hugo van Kemenade
197673b9b2
Merge pull request #4996 from nulano/jp2-decode-subsample 2021-04-17 21:42:17 +03:00
Hugo van Kemenade
8a173cd8a6
Merge pull request #5410 from radarhere/not_special
Changed wording to avoid confusion with IMAGING_TYPE_SPECIAL
2021-04-17 21:38:33 +03:00
Andrew Murray
7c0344bb99 For special image modes, revert default resize resampling to NEAREST 2021-04-17 12:18:42 +10:00
Andrew Murray
01871b88df Changed wording to avoid confusion with IMAGING_TYPE_SPECIAL [ci skip] 2021-04-17 09:23:16 +10:00
Andrew Murray
82165c0e9c Updated libtiff to 4.3.0 2021-04-16 22:56:34 +10:00
Andrew Murray
4351c37fc4 Corrected adobe_transform value 2021-04-15 21:49:51 +10:00
Andrew Murray
7a4bf3df0f Changed exception type to be more specific 2021-04-15 20:55:45 +10:00
Andrew Murray
9b6fe1b039 Update CHANGES.rst [ci skip] 2021-04-15 20:26:31 +10:00
Andrew Murray
1e074f5040
Merge pull request #4144 from jansol/master
Stop decoding BC1 punchthrough alpha in BC2&3
2021-04-15 20:24:52 +10:00
Hugo van Kemenade
85d251b479
Merge pull request #5384 from radarhere/core_tags 2021-04-15 13:10:25 +03:00
Andrew Murray
da704c75fc Update CHANGES.rst [ci skip] 2021-04-15 19:05:04 +10:00
Andrew Murray
a47072bcbe Treat previous contents of first frame as transparent 2021-04-15 19:01:12 +10:00
Hugo van Kemenade
2f5687f886
Merge pull request #5390 from radarhere/gif_missing_background
Use zero if GIF background color index is missing
2021-04-15 11:57:31 +03:00
Andrew Murray
8498bf725d Update CHANGES.rst [ci skip] 2021-04-15 18:23:06 +10:00
Hugo van Kemenade
0cc2943aef
Merge pull request #5386 from radarhere/previous_frame_loaded
Fixed ensuring that GIF previous frame was loaded
2021-04-15 10:47:44 +03:00
Andrew Murray
4dde8109d7 Resolved FIXME by reading mandatory FITS header items 2021-04-14 22:48:27 +10:00
Andrew Murray
35107e9637 Changed failure to create decoder to OSError for Parser 2021-04-14 20:01:56 +10:00
nulano
8803dd19f0 remove unused variables, PyPy 7.3.4 ships 64-bit binaries for Windows 2021-04-12 20:24:04 +02:00
Andrew Murray
45003b78ed
Merge pull request #5399 from cholojuanito/docs-pdf-param-update
Fix PDF file format documentation
2021-04-11 15:18:37 +10:00
Andrew Murray
2cb1d056c0 Merge branch 'master' into jp2-decode-subsample 2021-04-11 12:49:10 +10:00
Andrew Murray
8be655bec6 Merge branch 'master' into core_tags 2021-04-11 12:46:37 +10:00
Andrew Murray
c5f886958a Merge branch 'master' into quant 2021-04-11 12:41:48 +10:00
Andrew Murray
a3dbee9f08 Cover horizontal lines both increasing in x 2021-04-11 12:41:33 +10:00
Andrew Murray
006de79d60 Use assert_image_equal_tofile 2021-04-11 12:41:33 +10:00
Tsung-Po Sun
9a4b1301de Modify test code 2021-04-11 12:41:33 +10:00
Tsung-Po Sun
87e7e88591 fix lint 2021-04-11 12:41:32 +10:00
Tsung-Po Sun
df0273e024 Reformat 2021-04-11 12:41:32 +10:00
Tsung-Po Sun
324d934128 Remove spaces 2021-04-11 12:41:32 +10:00
Tsung-Po Sun
824d2fa4f3 Add test 2021-04-11 12:41:32 +10:00
Andrew Murray
5491bd5eda Merge parallel horizontal edges in ImagingDrawPolygon 2021-04-11 12:41:32 +10:00
Andrew Murray
65cdc21105 Changed quantize and quantize2 to static 2021-04-11 12:40:59 +10:00
wiredfool
fe668716ed
Merge pull request #5397 from wiredfool/valgrind_fixes
Valgrind fixes
2021-04-10 19:15:17 +01:00
nulano
ee41a133dd formatting 2021-04-10 20:03:46 +02:00
Eric Soroos
75c60bd6bb Can't install valgrind in requirements, breaks doc building 2021-04-10 17:47:18 +02:00
Eric Soroos
1c872a9eda lint stuff 2021-04-10 16:58:01 +02:00
Tanner Davis
a02e700f44
Merge pull request #2 from radarhere/docs-pdf-param-update
Corrected syntax
2021-04-10 06:54:56 -06:00
Andrew Murray
fc64064387 Changed mode for 16-bit palette to BGR;15 2021-04-10 22:11:20 +10:00
Eric Soroos
af6fb9c518 xfail the fuzzer check as well 2021-04-10 12:03:39 +02:00
Eric Soroos
c94f66ad13 make sure we return a mark decorator 2021-04-10 12:03:15 +02:00
Andrew Murray
302ddc9b5e Corrected syntax 2021-04-10 11:39:24 +10:00
Eric Soroos
a3a69c8385 conditional mark for valgrind ignore 2021-04-09 23:53:24 +02:00
Tanner Davis
8c38c80bb1
Now the rst link to the Image class should work 2021-04-09 11:47:29 -06:00
Tanner Davis
8da6eef073
Made sure the rst link to the Image class was correct 2021-04-09 11:09:16 -06:00
Tanner Davis
ef3de6bf4f
PDF format docs, append_images param update [ci skip]
Made sure it is documented that both the `append_images` and `save_all` params must be set. Just setting `append_images` does not work.
2021-04-09 10:53:33 -06:00
Andrew Murray
356681faae
Merge pull request #5393 from hugovk/test-redos
Add test for CVE-2021-25292 ReDoS
2021-04-09 23:34:11 +10:00
Eric Soroos
441e6426ae Initialize buffer with 0, fixes valgrind undefined behavior issues 2021-04-09 13:41:23 +02:00
Eric Soroos
43aa6ade6f Local valgrind test target 2021-04-09 13:39:28 +02:00
Andrew Murray
04df6e3bf1 mapdepth is only 1 byte 2021-04-09 21:38:28 +10:00
Hugo van Kemenade
b01fd46fe6
Merge pull request #5395 from radarhere/python3 2021-04-09 13:43:45 +03:00
Andrew Murray
714d6c8cd3 Removed shebang line 2021-04-09 19:10:53 +10:00
Andrew Murray
b8c8375d0c Use python3 in shebang line 2021-04-09 19:10:36 +10:00
Hugo van Kemenade
bde149be38 Add test for CVE-2021-25292 ReDoS 2021-04-08 23:53:22 +03:00
Andrew Murray
3cb2413066 Use zero if background color index is missing 2021-04-08 08:04:20 +10:00
Hugo van Kemenade
75c111903c
Merge pull request #5382 from radarhere/rounded_rectangle
Round down the radius in rounded_rectangle
2021-04-07 19:31:19 +03:00
Andrew Murray
97207a8b19 Update CHANGES.rst [ci skip] 2021-04-07 19:20:35 +10:00
Hugo van Kemenade
eeddc06305
Merge pull request #5383 from radarhere/dds 2021-04-07 12:15:02 +03:00
Andrew Murray
d661e438f6 Fixed ensuring that previous frame was loaded 2021-04-06 19:31:51 +10:00
Andrew Murray
9d489f69ae Removed duplicate word in error message 2021-04-05 19:34:00 +10:00
Andrew Murray
56dfc4a956 Added 301 and 532 to core tags 2021-04-05 19:01:13 +10:00
Andrew Murray
d06871d543 Set mode of three channel uncompressed RGB data to RGB 2021-04-05 17:58:02 +10:00
Andrew Murray
6f87faf0ee Reversed rawmode for uncompressed RGB data 2021-04-05 17:54:34 +10:00
Andrew Murray
92edc29439 Round down the radius in rounded_rectangle 2021-04-05 08:54:06 +10:00
Hugo van Kemenade
e2ac1d1c34
Merge pull request #5380 from radarhere/accept 2021-04-03 16:23:39 +03:00
Andrew Murray
60da129d4b Replaced register_open lambdas with _accept method for consistency 2021-04-03 21:51:28 +11:00
Andrew Murray
d4f9c6e082 Renamed register_open accept methods for consistency 2021-04-03 21:51:23 +11:00
Andrew Murray
77a8a53a94 Allow converting an image to a numpy array to raise errors 2021-04-03 13:20:58 +11:00
Andrew Murray
3c129142c8 Catch OSError 2021-04-03 09:34:56 +11:00
Andrew Murray
39fe85f308
Merge branch 'master' into jp2-decode-subsample 2021-04-03 09:26:55 +11:00
Hugo van Kemenade
ee079ae67e
Merge pull request #5378 from radarhere/fedora
Removed Fedora 32 docker job
2021-04-02 13:10:36 +03:00
Andrew Murray
a69430047b Renamed function 2021-04-02 21:06:10 +11:00
Andrew Murray
6764650e2a Reduced memory usage 2021-04-02 20:48:06 +11:00
Andrew Murray
ed8064df22 Removed Fedora 32 docker job 2021-04-02 18:07:03 +11:00
Hugo van Kemenade
330f77ae7a 8.3.0.dev0 version bump 2021-04-01 23:56:43 +03: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
Hugo van Kemenade
e0e353c0ef 8.2.0 version bump 2021-04-01 20:58:27 +03:00
Andrew Murray
6541bd7cb5 Added second attribute to avoid unstable nature of qsort 2021-04-02 04:07:18 +11:00
Andrew Murray
7387ec23ac Revert "Removed return value of build_distance_tables"
This reverts commit a4a38b805b.
2021-04-02 04:07:18 +11:00
Hugo van Kemenade
ee635befc6
Merge pull request #5377 from hugovk/security-and-release-notes
Security fixes for 8.2.0
2021-04-01 20:00:22 +03:00
Hugo van Kemenade
694c84f88f
Fix typo [ci skip]
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-04-01 20:00:13 +03:00
Hugo van Kemenade
8febdad8dd Review, typos and lint 2021-04-01 17:41:46 +03:00
Hugo van Kemenade
fea419665b Reorder, roughly alphabetic 2021-04-01 17:26:24 +03:00
Eric Soroos
496245aa43 Fix BLP DOS -- CVE-2021-28678
* BlpImagePlugin did not properly check that reads after jumping to
  file offsets returned data. This could lead to a DOS where the
  decoder could be run a large number of times on empty data
* This dates to Pillow 5.1.0
2021-04-01 17:17:35 +03:00
Eric Soroos
22e9bee4ef Fix DOS in PSDImagePlugin -- CVE-2021-28675
* PSDImagePlugin did not sanity check the number of input layers and
  vs the size of the data block, this could lead to a DOS on
  Image.open prior to Image.load.
* This issue dates to the PIL fork
2021-04-01 17:17:31 +03:00
Eric Soroos
ba65f0b08e Fix Memory DOS in ImageFont
* A corrupt or specially crafted TTF font could have font metrics that
  lead to unreasonably large sizes when rendering text in
  font. ImageFont.py did not check the image size before allocating
  memory for it.
* Found with oss-fuzz
* This dates from the PIL fork
2021-04-01 17:17:27 +03:00
Eric Soroos
bb6c11fb88 Fix FLI DOS -- CVE-2021-28676
* FliDecode did not properly check that the block advance was
  non-zero, potentally leading to an infinite loop on load.
* This dates to the PIL Fork
* Found with oss-fuzz
2021-04-01 17:17:23 +03:00
Eric Soroos
5a5e6db0ab Fix EPS DOS on _open -- CVE-2021-28677
* The readline used in EPS has to deal with any combination of \r and
  \n as line endings. It used an accidentally quadratic method of
  accumulating lines while looking for a line ending.
* A malicious EPS file could use this to perform a DOS of Pillow in
  the open phase, before an image was accepted for opening.
* This dates to the PIL Fork
2021-04-01 17:17:18 +03:00
Eric Soroos
3bf5eddb89 Fix OOB Read in Jpeg2KDecode CVE-2021-25287,CVE-2021-25288
* For J2k images with multiple bands, it's legal in to have different
  widths for each band, e.g. 1 byte for L, 4 bytes for A
* This dates to Pillow 2.4.0
2021-04-01 17:17:13 +03:00
Hugo van Kemenade
8ec027867f Add security release notes 2021-04-01 17:15:44 +03:00
Hugo van Kemenade
ef5f294d74
Merge pull request #5376 from radarhere/xmp 2021-04-01 15:38:11 +03:00
Andrew Murray
ae7110a85d Added release notes [ci skip] 2021-04-01 23:18:30 +11:00
Andrew Murray
e12d5042ad Adjusted docstring 2021-04-01 22:28:42 +11:00
Andrew Murray
2c8684c525 Moved getxmp() into JpegImageFile 2021-04-01 22:28:37 +11:00
Andrew Murray
43c41720e9 Update CHANGES.rst [ci skip] 2021-04-01 21:40:53 +11:00
Hugo van Kemenade
6812205f18
Merge pull request #5144 from UrielMaD/feature_xmp 2021-04-01 12:44:47 +03:00
Hugo van Kemenade
b90c73f08d
Merge pull request #5373 from wiredfool/valgrind_test_warnings
Fix pytest valgrind warnings
2021-04-01 12:17:50 +03:00
Hugo van Kemenade
cafd389770
Merge pull request #5359 from nulano/libtiff-cmake 2021-04-01 12:03:42 +03:00
Hugo van Kemenade
8c852e44f0
Merge pull request #5349 from latosha-maltba/master 2021-04-01 11:55:37 +03:00
Andrew Murray
37f9fcf93b Removed unused imports 2021-04-01 12:57:34 +11:00
Andrew Murray
682e3e2f69 Update CHANGES.rst [ci skip] 2021-04-01 11:53:33 +11:00
Andrew Murray
9afa64a36f
Merge pull request #5371 from hugovk/fix-link
Docs: Fix link in release notes
2021-04-01 11:43:32 +11: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
wiredfool
60dbc10cee
Merge pull request #5372 from wiredfool/tiff-crash-fixes
Fix recent Tiff crashes in TiffDecode.c
2021-03-31 22:53:58 +01:00
Eric Soroos
87934e22d0 Fix for crash-0da0 2021-03-31 23:24:30 +02:00
Eric Soroos
53c80281d7 fix for crash-8115 2021-03-31 22:23:57 +02:00
Eric Soroos
45530d5ce1 fixes crash-74d2 2021-03-31 22:23:57 +02:00
wiredfool
4044ecc1fb
Merge pull request #5366 from kkopachev/kk-remove-extra-check
Remove redundant check (addition to #5364)
2021-03-31 20:54:07 +01:00
Eric Soroos
22a6893364 Fix pytest valgrind warnings 2021-03-31 21:28:15 +02:00
Hugo van Kemenade
95ac35d287 Fix RST link [ci skip] 2021-03-31 21:28:29 +03:00
Hugo van Kemenade
c54a7bb031
Merge pull request #5333 from radarhere/gif_frame_transparency 2021-03-31 18:08:11 +03:00
Hugo van Kemenade
54e9f3bd0f
Merge pull request #5291 from raygard/giflzw 2021-03-31 17:58:44 +03:00
Hugo van Kemenade
727533148e
Merge pull request #5282 from radarhere/quantize
Set all transparent colors to be equal in quantize()
2021-03-31 17:58:21 +03:00
Hugo van Kemenade
683affa29c
Merge pull request #5206 from radarhere/numpy 2021-03-31 17:46:32 +03:00
Hugo van Kemenade
06dfbb8e3e
Merge branch 'master' into giflzw 2021-03-31 16:45:02 +03:00
Ray Gardner
d6dfdd3617 Add GIF LZW encoding to 8.2.0 release notes. 2021-03-31 06:48:17 -06: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
Hugo van Kemenade
7785931f43
Merge pull request #5316 from radarhere/modes 2021-03-31 11:43:49 +03:00
Andrew Murray
7e940dea5e Added release notes [ci skip] 2021-03-31 19:22:31 +11:00
Andrew Murray
80878fa4c6 Merge branch 'master' into modes 2021-03-31 18:58:11 +11:00
Andrew Murray
a911c0fb94
Merge pull request #5368 from radarhere/ghostscript
Updated Ghostscript to 9.54.0
2021-03-31 18:26:17 +11:00
Hugo van Kemenade
d3ad66d851
Merge pull request #5332 from radarhere/typo
Corrected grammar
2021-03-31 09:40:41 +03:00
Andrew Murray
d8b4a92806 Updated Ghostscript to 9.54.0 2021-03-31 16:03:13 +11:00
Ray Gardner
306d030fce Add comment to reference GIF LZW specification. 2021-03-30 17:35:21 -06:00
Hugo van Kemenade
e08474afa3
Merge pull request #5365 from nulano/fribidi-notes 2021-03-30 21:00:09 +03:00
Andrew Murray
9e5ecd6825 Update CHANGES.rst [ci skip] 2021-03-30 08:00:58 +11:00
Andrew Murray
b0b4fee796
Merge pull request #5350 from elejke/master
Add preserve_tone option to autocontrast
2021-03-30 07:59:57 +11:00
Konstantin Kopachev
19a815dd73
Remove redundant check
It's duplicated inside following call of TIFFReadTile
2021-03-29 11:27:50 -07:00
Ondrej Baranovič
00cc32e3f9
FriBiDi capitalization consistency
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-03-29 19:45:27 +02:00
nulano
4f61637e7f document libraqm/fribidi linking, support fribidi-0.dll on Windows 2021-03-29 17:45:12 +02:00
German Novikov
b855d759cf
Merge pull request #2 from radarhere/autocontrast_tests 2021-03-29 16:01:51 +03:00
Andrew Murray
7844c6e483 Test that preserve_tone changes RGB images but not L images 2021-03-29 23:26:34 +11:00
German Novikov
9ea20c095e
Update docs/releasenotes/8.2.0.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-29 14:12:29 +03:00
Andrew Murray
04922cba2b
Merge branch 'master' into patch-3 2021-03-29 21:30:53 +11:00
Andrew Murray
0a56d9b287
Merge branch 'master' into simplified 2021-03-29 19:37:55 +11:00
Andrew Murray
6eae8fd592 Update CHANGES.rst [ci skip] 2021-03-29 08:11:41 +11:00
Hugo van Kemenade
b3a1de94d0
Merge pull request #5323 from radarhere/imagefilter_numpy
Only import numpy when necessary
2021-03-28 19:11:01 +03:00
wiredfool
9a683db339
Merge pull request #5274 from radarhere/gradient
Fixed linear_gradient and radial_gradient I and F modes
2021-03-28 14:35:22 +01:00
wiredfool
d0612030a0
Merge pull request #5364 from wiredfool/4641_merge
Add support for reading TIFFs with PlanarConfiguration=2
2021-03-28 14:33:42 +01:00
wiredfool
611a6d2330
Merge pull request #5328 from wiredfool/oss-fuzz
More OSS-Fuzz support
2021-03-28 14:19:29 +01:00
Konstantin Kopachev
52ecf1b142 Stop guessing strip size and pass expected size 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
ab24c98491 Add sanity check for memory overruns 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
1c295bf43c Check for dimensions and sizes to fit into int 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
e438046201 Refactor into smaller functions 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
4dd288c66c unify reading of YCbCr Tiffs 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
4c2dfadf26 Swap pixel values on Big Endian 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
169bb4842f only use TIFFReadRGBA* in case of o_jpeg compression 2021-03-28 15:03:37 +02:00
Eric Soroos
f2020eeab4 UINT8 -> int for plane 2021-03-28 15:03:37 +02:00
Eric Soroos
b1d3f0d5c2 not 2021-03-28 15:03:37 +02:00
Eric Soroos
c9ea87ecfd Use flag instead of recalculating 2021-03-28 15:03:37 +02:00
Eric Soroos
fda638befe Planes should be int, not uint 2021-03-28 15:03:37 +02:00
nulano
daf7b6546e remove double pointer 2021-03-28 15:03:37 +02:00
nulano
671837840a the previous commit also fixes these big-endian failures 2021-03-28 15:03:37 +02:00
nulano
a921c01102 correct TIFFTAG_PLANARCONFIG size 2021-03-28 15:03:37 +02:00
Eric Soroos
77a1a9aba3 initialize the unpackers 2021-03-28 15:03:37 +02:00
Eric Soroos
64500434c2 Implementation for PlanarConfiguration=2 Tiffs, manually merged from f566c8a 2021-03-28 15:03:37 +02:00
Konstantin Kopachev
0018685a8e Add Tests and support for Planar Tiff Images 2021-03-28 15:03:37 +02:00
German Novikov
d18e55013d
Update Tests/test_imageops.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-28 15:02:52 +03:00
Eric Soroos
bf8cebc96d Add libxcb to fuzzers 2021-03-28 13:49:37 +02:00
Hugo van Kemenade
e405ab300b
Merge pull request #5351 from radarhere/categories 2021-03-28 14:34:50 +03:00
Andrew Murray
fa6fed92cb Update CHANGES.rst [ci skip] 2021-03-28 16:10:34 +11:00
Andrew Murray
f799915d6f
Merge pull request #5304 from nulano/5300
Do not premultiply alpha when resizing with Image.NEAREST resampling
2021-03-28 16:02:01 +11:00
Andrew Murray
71cd97a519 Added deprecation warnings 2021-03-28 15:51:28 +11:00
Hugo van Kemenade
5e1d304769
Merge pull request #5353 from radarhere/quantize_attributes
Use quantization method attributes
2021-03-27 20:01:49 +02:00
wiredfool
3addd7df4e
Merge pull request #5062 from nulano/fribidi-link
Dynamically link FriBiDi instead of Raqm
2021-03-27 16:29:04 +00:00
Hugo van Kemenade
9431d94bee
Merge pull request #5363 from radarhere/unreachable
Removed build_distance_tables return value
2021-03-27 17:39:27 +02:00
Andrew Murray
a4a38b805b Removed return value of build_distance_tables 2021-03-27 14:47:11 +11:00
Ondrej Baranovič
9872d57e3b
corrected comment 2021-03-27 02:06:36 +01:00
Hugo van Kemenade
9b69d94082
Merge pull request #5352 from radarhere/quantize_documentation 2021-03-26 15:25:14 +02:00
nulano
7c48f12207 add explanatory comment for USE_WIN32_FILEIO 2021-03-26 02:54:11 +01:00
Ray Gardner
5390786c65 Add braces to if -- conform with Pillow style. 2021-03-25 17:22:11 -06:00
Ray Gardner
0acf3514a1 Modify GifEncode.c and Gif.h to use LZW encoding 2021-03-25 17:22:10 -06:00
Hugo van Kemenade
d40211254c
Merge pull request #5361 from radarhere/alpine
Document prerequisites and Python development libraries for Alpine
2021-03-25 20:33:41 +02:00
Hugo van Kemenade
4f3913bccf
Merge pull request #5360 from radarhere/debian
Listed Debian packages
2021-03-25 20:29:20 +02:00
German Novikov
977e64fb61
Update Tests/test_imageops.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-25 14:56:30 +03:00
Andrew Murray
4c36945206 Added prerequisites and Python development libraries for Alpine 2021-03-25 22:43:46 +11: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
4b1dd40b5a Listed Debian packages [ci skip] 2021-03-25 11:57:48 +11:00
nulano
c718cc6c94 avoid unused variable warnings 2021-03-25 00:41:05 +01:00
nulano
5e61c1842f fix support for old versions of Raqm 2021-03-25 00:41:05 +01:00
Andrew Murray
1105c5d5c9 Updated nasm to 2.15.05
(cherry picked from commit 6e31662a49)
2021-03-24 21:31:10 +01:00
nulano
f4deb4df30 compile libtiff with cmake
(cherry picked from commit 3f17d61fed513ac6bb569ac687c77db1564f056f)
2021-03-24 21:31:07 +01:00
Andrew Murray
759c518420
Merge pull request #5357 from python-pillow/docs-contrib-release-notes
Contributing docs: Include release notes as needed or appropriate
2021-03-24 12:07:00 +11:00
Hugo van Kemenade
e85bf540cf
Contributing: Include release notes as needed or appropriate
[CI skip]
2021-03-23 20:58:01 +02:00
Hugo van Kemenade
51bbefed27
Merge pull request #5354 from radarhere/macos
Updated macOS tested Pillow versions
2021-03-23 15:03:07 +02:00
nulano
49fa3656b1 do not premultiply alpha when resizing with Image.NEAREST resampling 2021-03-23 13:16:20 +01:00
German Novikov
9d3da37f35
Update docs/releasenotes/8.2.0.rst [ci skip]
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-23 15:04:12 +03:00
elejke
2c973b4cca versionadded version fixed 2021-03-23 13:57:51 +03:00
elejke
9b8f7c2a8f versionadded directive and releasenotes added 2021-03-23 13:56:51 +03:00
elejke
694d70bdc3 fixed typos in test for autocolor tone preserving 2021-03-23 13:09:51 +03:00
German Novikov
d90ab90f4c
Merge pull request #1 from radarhere/autocontrast
Parametrized test
2021-03-23 13:05:10 +03:00
Andrew Murray
4a0698838d Parametrized test 2021-03-23 20:08:18 +11:00
elejke
8913166c7e fix test function name for autocontrast 2021-03-23 11:59:37 +03:00
Latosha Maltba
0f8fffbb11 Mention GraphicsMagick support release notes 8.2.0
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2021-03-23 07:16:56 +00:00
Andrew Murray
d8acc3be0d Updated macOS tested Pillow versions [ci skip] 2021-03-23 12:55:16 +11:00
Latosha Maltba
52794432f0 Make code for ImageMagick/GraphicsMagick more symmetric 2021-03-22 19:50:06 +00:00
Andrew Murray
35943372f0 Removed CONVERT helper variables 2021-03-22 19:50:06 +00:00
Piolie
9c2cbcf452
Keep case consistency in error messages
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-22 13:06:16 -03:00
elejke
f73d238cd2 removed redundant comments in tests for tone preserving autocolor 2021-03-22 15:30:43 +03:00
German Novikov
25403063ea
Update Tests/test_imageops.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-22 15:27:13 +03:00
elejke
b4e5a6d202 add more tests for autocontrast preserve tone option 2021-03-22 12:06:44 +03:00
Andrew Murray
4e0bc3bab6 Use quantization method attributes 2021-03-22 19:44:56 +11:00
Andrew Murray
0ff9879171 Document supported quantization methods for RGBA images 2021-03-22 19:21:31 +11:00
Andrew Murray
ab56edb49f Documented default quantization method 2021-03-22 19:18:36 +11:00
Andrew Murray
2d8658bd84 Deprecated categories [ci skip] 2021-03-22 18:58:50 +11:00
Andrew Murray
aa35f6b572 Update CHANGES.rst [ci skip] 2021-03-22 06:49:25 +11:00
elejke
c585e6ab6b Add preserve_tone option to autocontrast 2021-03-21 21:15:13 +03:00
Hugo van Kemenade
ddcc936643
Merge pull request #5330 from radarhere/png_plte
Allow fewer PNG palette entries than the bit depth maximum when saving
2021-03-21 17:31:35 +02:00
Latosha Maltba
bb88d8d017 Add support to use GraphicsMagick's "gm display" as viewer 2021-03-21 14:36:18 +00:00
Latosha Maltba
ef864d72f1 TestSuite: Add support for GraphicsMagick
Add support to run the tests using GraphicsMagick's "gm convert" instead
of ImageMagick's "convert".
2021-03-21 14:36:18 +00:00
Andrew Murray
7ab8ec9b91 Update CHANGES.rst [ci skip] 2021-03-21 21:00:05 +11:00
Hugo van Kemenade
688e6f163f
Merge pull request #5338 from radarhere/webp_save_duration
Use duration from info dictionary when saving WebP
2021-03-21 11:35:28 +02:00
Piolie
8ad5172e88 Fix wrong extension in temp test files 2021-03-21 02:16:39 -03:00
Andrew Murray
41a439da7d Added context managers 2021-03-21 14:42:36 +11:00
Andrew Murray
754752e78f Allow fewer palette entries than the bit depth maximum 2021-03-21 09:22:01 +11:00
Hugo van Kemenade
7235cf3135
Merge pull request #5345 from radarhere/tofile
Increased use of assert_image_equal_tofile
2021-03-21 00:05:28 +02:00
Hugo van Kemenade
e1e9569d8a
Merge pull request #5331 from radarhere/png_bits
Added test for saving PNG with bits keyword
2021-03-20 23:25:24 +02:00
Andrew Murray
6591297239 Increased use of assert_image_equal_tofile 2021-03-20 22:32:27 +11:00
Hugo van Kemenade
82b2f4aa36
Merge pull request #5326 from radarhere/gif_disposal
Improved efficiency when creating GIF disposal images
2021-03-20 12:45:34 +02:00
Hugo van Kemenade
e9c48342c9
Merge pull request #5344 from radarhere/releasenotes
Added release notes for #4947
2021-03-20 00:36:26 +02:00
Andrew Murray
da9b104693 Document #4947 [ci skip] 2021-03-20 08:43:32 +11:00
Andrew Murray
309d6f662c Moved rounded_rectangle to API additions [ci skip] 2021-03-20 08:32:39 +11:00
Andrew Murray
7a32dfd5e3 Update CHANGES.rst [ci skip] 2021-03-20 08:30:09 +11:00
Hugo van Kemenade
5a209081b2
Merge pull request #4947 from radarhere/exif 2021-03-19 21:26:33 +02:00
Andrew Murray
03eecb51d5 Update CHANGES.rst [ci skip] 2021-03-19 18:03:44 +11:00
Hugo van Kemenade
0d7e205aa7
Merge pull request #5343 from radarhere/tiff_adobe_deflate
Replaced tiff_deflate with tiff_adobe_deflate compression when saving TIFF images
2021-03-19 08:46:39 +02:00
Hugo van Kemenade
4da2fb3408
Merge pull request #5336 from radarhere/compression
Updated list of TIFF compression methods
2021-03-19 08:44:53 +02:00
Andrew Murray
242af47a68 Removed obsolete "tiff_deflate" from compression methods [ci skip] 2021-03-19 12:14:41 +11:00
Andrew Murray
298600381f Replaced tiff_deflate with tiff_adobe_deflate compression when saving 2021-03-19 12:00:29 +11:00
Andrew Murray
94df4ec1c9
Lint fix 2021-03-17 23:16:35 +11:00
Andrew Murray
1d8c5a820c Use duration from info dictionary when saving 2021-03-17 20:37:31 +11:00
Andrew Murray
8f37f8dcb0 Sorted TIFF compression methods alphabetically [ci skip] 2021-03-17 17:54:37 +11:00
Hugo van Kemenade
9dcb1f402c
Merge pull request #5334 from radarhere/harfbuzz
Updated harfbuzz to 2.8.0
2021-03-17 07:32:17 +02:00
Andrew Murray
dd097fe1fd Updated list of TIFF compression methods [ci skip] 2021-03-17 11:14:12 +11:00
Andrew Murray
b7a76899be Updated harfbuzz to 2.8.0 2021-03-17 07:51:32 +11:00
Andrew Murray
b216b367ac Only set info transparency on first frame 2021-03-17 00:24:57 +11:00
Glenn Maynard
18854dcf14 GIF: Handle GIF transparency in the decoder.
Remove the special case for disposal_method == 1 and handle GIF
transparency by telling the decoder the transparent index.
2021-03-16 23:17:28 +11:00
Glenn Maynard
a4a314f765 GIF: Support transparency in the native decoder.
Allow the transparency index to be passed to the native decoder.  If not
-1, pixels with this index will be left at their previous value.

This only adds the decoder support and isn't active yet.
2021-03-16 23:17:12 +11:00
Andrew Murray
d7cbc9a27e Corrected grammar 2021-03-16 22:19:48 +11:00
Andrew Murray
c801db7a32 Added test for saving PNG with bits keyword 2021-03-15 21:27:07 +11:00
Andrew Murray
36a4b055bb Updated comments 2021-03-15 12:50:30 +11:00
Andrew Murray
68719fe6ea
Merge branch 'master' into exif 2021-03-15 12:41:45 +11:00
Andrew Murray
c52b45df62 Removed automatic retrieval of GPS IFD 2021-03-15 12:33:06 +11:00
Eric Soroos
ad37e86c40 DecompressionBombError is now an option 2021-03-15 00:21:18 +01:00
Eric Soroos
83dabda6b2 Clean up comments and filters 2021-03-15 00:18:07 +01:00
Eric Soroos
d45247eb66 Add decompression bomb error to font fuzzer 2021-03-15 00:14:43 +01:00
Hugo van Kemenade
8064e04e96
Merge pull request #5327 from radarhere/tiff_icc_profile
Document #5321
2021-03-15 00:37:11 +02:00
Andrew Murray
b57aee53a2 Added release notes for #5321 [ci skip] 2021-03-15 08:30:27 +11:00
Hugo van Kemenade
b7e525dfa4
Merge pull request #5329 from wiredfool/pytest-timeout 2021-03-14 22:04:32 +02:00
Eric Soroos
12715c5ea9 Install Pytest-timeout in dev-requirements 2021-03-14 14:22:27 +01:00
Eric Soroos
d0d42cd7c2 Install pytest-timeout on the ci.
(dry?)
2021-03-14 14:20:57 +01:00
Eric Soroos
76e0422eb7 Isort linted that there's an extra line, which black didn't worry about 2021-03-14 14:13:37 +01:00
Eric Soroos
862e3b9d8e Apparently, it's a keyword-only parameter 2021-03-14 14:11:48 +01:00
Eric Soroos
961b2c0242 True 2021-03-14 14:03:41 +01:00
Eric Soroos
487dc16ce6 Can't skip windows properly because the depenedncy is in the decorator 2021-03-14 13:57:24 +01:00
Eric Soroos
bb6b991d8d no colors anymore, they want them to turn black 2021-03-14 13:49:36 +01:00
Eric Soroos
0ea13132a2 Overflow error shows up in x86 2021-03-14 13:42:16 +01:00
Eric Soroos
6189bca3bc Skip fuzzer tests on windows 2021-03-14 13:42:16 +01:00
Eric Soroos
8b06fec6ab linty bits 2021-03-14 13:14:39 +01:00
Eric Soroos
c17ce801cf I see a python file and I want to paint it black 2021-03-14 13:02:48 +01:00
Eric Soroos
6d6ef4a539 Ignore the pyinstaller spec files 2021-03-14 13:01:27 +01:00
Eric Soroos
becd633d3f Refactor fuzzers, add fuzzer tests 2021-03-14 13:01:27 +01:00
Andrew Murray
d466620cfa Update CHANGES.rst [ci skip] 2021-03-14 21:25:16 +11:00
Andrew Murray
cfcedcc520 icc_profile is now a keyword argument when saving TIFF files [ci skip] 2021-03-14 21:21:40 +11:00
Hugo van Kemenade
1c086c65d4
Merge pull request #5321 from radarhere/tiff_icc_profile
Save ICC profile from TIFF encoderinfo
2021-03-14 10:42:51 +02:00
Hugo van Kemenade
982837ec85
Merge pull request #5325 from radarhere/unclosed_file
Fixed unclosed file warning
2021-03-14 10:29:58 +02:00
Hugo van Kemenade
4c297ec312
Merge pull request #5268 from radarhere/rgb
Moved RGB fix inside ImageQt class
2021-03-14 10:26:08 +02:00
Andrew Murray
2f84f633e3 Create disposal image at the destination size, instead of cropping 2021-03-14 13:40:55 +11:00
Andrew Murray
16dbffc3a8 _crop already makes a copy of the image 2021-03-14 13:31:16 +11:00
Eric Soroos
e2577d1736 font fuzzer 2021-03-13 11:35:50 +01:00
Eric Soroos
38692f222f Delegate building of oss-fuzz versions to pillow 2021-03-13 11:12:05 +01:00
Andrew Murray
2844fd2d18 Fixed unclosed file warning 2021-03-12 22:45:07 +11:00
Andrew Murray
188d4f6b6a Only import numpy when necessary 2021-03-12 12:03:48 +11:00
Andrew Murray
f91f93e246
Merge pull request #5305 from lukegb/bug/format-strings
Fix -Wformat error in TiffDecode
2021-03-11 22:34:17 +11:00
Andrew Murray
68b655f3f0
Updated format specifiers 2021-03-10 20:43:16 +11:00
Andrew Murray
f42d6cf1ac Save ICC profile from TIFF encoderinfo 2021-03-10 20:16:49 +11:00
Andrew Murray
e54880c652 Moved RGB fix inside ImageQt class 2021-03-10 13:17:19 +11:00
Andrew Murray
21da5b1ed8 Update CHANGES.rst [ci skip] 2021-03-09 07:09:50 +11:00
Hugo van Kemenade
2d042736c3
Merge pull request #5318 from radarhere/releasenotes
Added link to class and function in release notes
2021-03-08 20:34:21 +02:00
mergify[bot]
e110e093a6
Merge pull request #5313 from radarhere/alpha_composite
Allow alpha_composite destination to be negative
2021-03-08 13:06:22 +00:00
Hugo van Kemenade
3225e39e9a
Merge branch 'master' into alpha_composite 2021-03-08 14:16:46 +02:00
Andrew Murray
7c7a68867d Update CHANGES.rst [ci skip] 2021-03-08 23:16:16 +11:00
Hugo van Kemenade
d9e4424a7f
Merge pull request #5260 from radarhere/imageqt_exclusive_fp
Ensure file is closed if it is opened by ImageQt.ImageQt
2021-03-08 14:13:48 +02:00
Hugo van Kemenade
2999628a2b
Merge pull request #5219 from radarhere/mkdir_test_errors
Replaced mkdir command with Python
2021-03-08 14:07:38 +02:00
Hugo van Kemenade
02ed076968
Merge pull request #5208 from radarhere/rounded_rectangle 2021-03-08 14:06:11 +02:00
Andrew Murray
666d3c5d3f Use bash shell for mkdir command 2021-03-08 22:21:22 +11:00
Andrew Murray
e7f5bb1831 Ensure file is closed if it is opened by ImageQt.ImageQt 2021-03-08 20:38:03 +11:00
Andrew Murray
ac1a9b28c9 Added link to class and function [ci skip] 2021-03-08 20:33:13 +11:00
Andrew Murray
62bf920634 Added release notes [ci skip] 2021-03-08 20:10:17 +11:00
Andrew Murray
9ce3eba7eb Only draw each pixel once 2021-03-08 19:54:03 +11:00
Andrew Murray
f5d49f4f61 Added rounded_rectangle method 2021-03-08 19:53:59 +11:00
Andrew Murray
45c43fc911 Added release notes [ci skip] 2021-03-08 19:39:28 +11:00
Andrew Murray
441a1cf9cf Update CHANGES.rst [ci skip] 2021-03-08 19:00:57 +11:00
Hugo van Kemenade
8accaf0259
Merge pull request #5155 from nulano/sbix 2021-03-08 09:44:37 +02:00
Ondrej Baranovič
14671f715f
Merge branch 'master' into sbix 2021-03-07 20:05:25 +01:00
Hugo van Kemenade
6108596ff8
Merge pull request #5289 from radarhere/ipythonviewer 2021-03-07 14:26:50 +02:00
Hugo van Kemenade
3a27118d76
Merge pull request #5183 from radarhere/rectangle
Only draw each rectangle outline pixel once
2021-03-07 12:25:45 +02:00
Hugo van Kemenade
f15f573e51
Merge pull request #5224 from radarhere/mapper 2021-03-07 11:51:46 +02:00
Hugo van Kemenade
a95fee0475
Merge pull request #5215 from radarhere/license
Document license for several fonts
2021-03-07 11:41:56 +02:00
Hugo van Kemenade
f9b830f058
Merge pull request #5214 from radarhere/pcx
Handle PCX images with an odd stride
2021-03-07 11:41:14 +02:00
Hugo van Kemenade
95986f38da
Merge pull request #5168 from radarhere/mpo 2021-03-07 11:38:36 +02:00
Andrew Murray
ca204ba04f Removed Image._MODEINFO 2021-03-07 14:21:27 +11:00
Andrew Murray
e437a8f981 Do not edit text of mode strings 2021-03-07 13:14:07 +11:00
Andrew Murray
8206f14419 Simplified code 2021-03-06 21:44:31 +11:00
Andrew Murray
690cf9ebe2 Allow alpha_composite destination to be negative 2021-03-06 20:54:21 +11:00
Andrew Murray
63bbc48b67 Pillow -> 8.1.2 2021-03-06 14:28:54 +11:00
Andrew Murray
1d7cbeb338 Update CHANGES.rst [ci skip] 2021-03-06 13:26:09 +11:00
Andrew Murray
f2ea25780a Added release notes for 8.1.2 2021-03-06 13:25:36 +11:00
Andrew Murray
5269ab13a7 Lint fix 2021-03-06 10:20:01 +11:00
Eric Soroos
480f6819b5 Fix Memory DOS in Icns, Ico and Blp Image Plugins
Some container plugins that could contain images of other formats,
such as the ICNS format, did not properly check the reported size of
the contained image. These images could cause arbitrariliy large
memory allocations.

This is fixed for all locations where individual *ImageFile classes
are created without going through the usual Image.open method.
2021-03-06 10:19:14 +11:00
Hugo van Kemenade
b511d704ae
Merge pull request #5306 from radarhere/releasenotes
Added more CVE numbers to 8.1.1 release notes
2021-03-04 13:23:09 +02:00
Andrew Murray
b885af93cb Added more CVE numbers [ci skip] 2021-03-04 17:33:47 +11:00
Andrew Murray
a1463ff211 Added release notes 2021-03-04 08:59:47 +11:00
Andrew Murray
7b09463809 Added IPythonViewer docstring 2021-03-04 08:56:49 +11:00
Kipkurui Mutai
5e0a4acb85 Update ImageShow.rst 2021-03-04 08:56:13 +11:00
Andrew Murray
f067fe4c05 Added import alias for clarity 2021-03-04 08:56:03 +11:00
Andrew Murray
346bfc9537 Added IPythonViewer 2021-03-04 08:55:24 +11:00
Luke Granger-Brown
852fd170f8 Fix -Wformat error in TiffDecode
src/libImaging/TiffDecode.c: In function ‘_tiffReadProc’:
src/libImaging/TiffDecode.c:59:58: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘toff_t’ {aka ‘long unsigned int’} [-Werror=format=]
src/libImaging/TiffDecode.c:59:67: error: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘toff_t’ {aka ‘long unsigned int’} [-Werror=format=]
2021-03-03 13:30:28 +00:00
Andrew Murray
4b73397bdf
Merge pull request #5303 from radarhere/releasenotes
Corrected list of relevant dependencies
2021-03-03 22:40:44 +11:00
Andrew Murray
944fd834db
Updated spelling [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-03-03 22:38:24 +11:00
Andrew Murray
b959ee7885 Corrected list of relevant dependencies [ci skip] 2021-03-03 20:34:52 +11:00
Andrew Murray
0de08851e4
Merge pull request #5301 from hugovk/update-release-notes
Update release notes: formatting, links, spelling
2021-03-03 20:29:14 +11:00
Hugo van Kemenade
d0cf8ffef5
Fix filename spelling
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-03-03 10:47:21 +02:00
Hugo van Kemenade
fbb825e3bf
Merge pull request #5302 from radarhere/libimagequant 2021-03-03 10:45:39 +02:00
Andrew Murray
4103b50852
Merge pull request #13 from nulano/libimagequant
Update libimagequant in winbuild
2021-03-03 10:43:07 +11:00
nulano
333fd06e90 update libimagequant in winbuild 2021-03-02 23:19:20 +01:00
Andrew Murray
f676b10813 Updated libimagequant to 2.14.1 2021-03-03 07:56:29 +11:00
Hugo van Kemenade
b23e261300
Merge pull request #67 from radarhere/update-release-notes
Expanded "OOB" to "out-of-bounds"
2021-03-02 15:12:11 +02:00
Andrew Murray
b41dab0e9b Expanded "OOB" to "out-of-bounds" [ci skip] 2021-03-02 23:22:06 +11:00
Hugo van Kemenade
915f68967f Update release notes formatting, links, spelling 2021-03-02 13:16:14 +02:00
Andrew Murray
e563366863
Merge pull request #5299 from heitbaum/patch-1
CHANGES.rst: update dates
2021-03-02 20:30:50 +11:00
heitbaum
8e887b62ac
CHANGES.rst: update dates 2021-03-02 20:09:23 +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
wiredfool
35f8fafdf5
Merge pull request #5198 from wiredfool/cifuzz
Add CIFuzz Github Action
2021-03-01 20:25:30 +00:00
wiredfool
c477bed95f
Merge pull request #5280 from cgohlke/patch-1
Fix suspicious sequence of types castings
2021-03-01 20:19:26 +00:00
Eric Soroos
3c96fbf908 Removed "Remove me" testing lines 2021-03-01 21:03:26 +01:00
Andrew Murray
d8f85273ab Pillow -> 8.1.1 2021-03-01 20:24:21 +11:00
Andrew Murray
a80cf42275 Added 8.1.1 release notes to index 2021-03-01 19:22:57 +11:00
Andrew Murray
fb4ae1ee3c Update CHANGES.rst [ci skip] 2021-03-01 19:20:52 +11:00
Eric Soroos
c96eac1ca4 Credits 2021-03-01 19:05:23 +11:00
Eric Soroos
3f2b7d7140 Release notes for 8.1.1 2021-03-01 19:05:08 +11:00
Hugo van Kemenade
3bce145966 Use more specific regex chars to prevent ReDoS
* CVE-2021-25292
2021-03-01 19:04:57 +11:00
Eric Soroos
cbdce6c5d0 Fix for CVE-2021-25291
* Invalid tile boundaries lead to OOB Read in TiffDecode.c, in TiffReadRGBATile
* Check the tile validity before attempting to read.
2021-03-01 19:04:48 +11:00
Eric Soroos
86f02f7c70 Fix negative size read in TiffDecode.c
* Caught by oss-fuzz runs
* CVE-2021-25290
2021-03-01 19:04:42 +11:00
Eric Soroos
4853e522bd Fix OOB read in SgiRleDecode.c
* From Pillow 4.3.0->8.1.0
* CVE-2021-25293
2021-03-01 19:04:19 +11:00
Eric Soroos
3fee28eb94 Incorrect error code checking in TiffDecode.c
* since Pillow 8.1.0
* CVE-2021-25289
2021-03-01 18:51:13 +11:00
wiredfool
e5839216a5
Merge pull request #5293 from wiredfool/valgrind_action
Add Valgrind GHA
2021-02-28 16:25:13 +00:00
Eric Soroos
aa0b982ef6 Added failure if out/crash-* exists 2021-02-28 17:17:33 +01:00
Eric Soroos
f74d046574 Removing the .yml files from the triggers 2021-02-28 17:09:27 +01:00
nulano
e4cc42265d add Raqm build configuration info to build summary 2021-02-27 16:52:46 +01:00
nulano
70fb148fc4 fix merge 2021-02-27 15:14:00 +01:00
Eric Soroos
95884c6b2d Riun on .c/.h 2021-02-27 12:54:38 +01:00
Eric Soroos
3c2893cdf1 No coverage from the valgrind run 2021-02-27 12:00:18 +01:00
Eric Soroos
2d52a9fcf2 Syntax 2021-02-27 11:54:33 +01:00
Eric Soroos
061012c46a Stage Title Change 2021-02-27 11:52:52 +01:00
Eric Soroos
f194d9e6e2 Keep errors if they're "known" 2021-02-27 11:46:19 +01:00
Eric Soroos
ba1555a485 syntax 2021-02-27 11:31:43 +01:00
Eric Soroos
cf5b9a77b3 Add Valgrind GHA 2021-02-27 11:22:26 +01:00
Hugo van Kemenade
a3f34e71ed
Merge pull request #5283 from radarhere/context_managers
Added context managers to documentation
2021-02-26 20:17:18 +02:00
Hugo van Kemenade
f73ead103e
Merge pull request #5288 from radarhere/numpy_builtins 2021-02-26 18:48:40 +02:00
Hugo van Kemenade
af4ef759d2
Merge pull request #5290 from radarhere/imageshow
Removed comment
2021-02-26 18:46:41 +02:00
Andrew Murray
5f92636bd0 Removed comment 2021-02-27 00:33:23 +11:00
Andrew Murray
3e670d7737 Migrated from deprecated numpy bool and float 2021-02-26 20:59:11 +11:00
Andrew Murray
80e570bb99 Added context managers 2021-02-25 23:41:31 +11:00
Andrew Murray
114145a61a Set all transparent colors to be equal 2021-02-25 22:49:11 +11:00
Christoph Gohlke
71f48e19b9
Use unsigned size_t 2021-02-24 08:15:25 -08:00
Christoph Gohlke
48ac517c8d
Fix suspicious sequence of types castings 2021-02-24 07:02:42 -08:00
Andrew Murray
585683ce25
Merge pull request #5277 from jcea/typo
Example from filter should be next to filter method docs, not in 'frombytes'
2021-02-24 20:04:53 +11:00
Hugo van Kemenade
d962de8976
Merge pull request #5279 from radarhere/decoder
Corrected documentation syntax
2021-02-23 21:01:34 +02:00
Andrew Murray
9c09a975df Corrected syntax [ci skip] 2021-02-23 23:08:44 +11:00
Jesus Cea
f74d7d800c The example from filter should be next to filter method docs, not in 'frombytes' 2021-02-22 23:59:51 +01:00
Andrew Murray
297789284b Fixed linear_gradient and radial_gradient 32-bit modes 2021-02-22 19:32:52 +11:00
Andrew Murray
8fb5fd7f63 Updated tests for changed helper imports 2021-02-22 12:14:49 +11:00
nulano
c709aa3d28 minor test formatting cleanup 2021-02-22 12:03:01 +11:00
nulano
61ee8ec03c document and add tests for SBIX color font support 2021-02-22 12:00:20 +11:00
Andrew Murray
c0ee869c2c Only draw each rectangle outline pixel once 2021-02-22 07:48:58 +11:00
Andrew Murray
e763f8f2be Save interop IFD when converting Exif to bytes 2021-02-22 07:47:59 +11:00
Andrew Murray
b25bc40009 Simplified code
Co-authored-by: Konstantin Kopachev <kkopachev@popsugar.com>
2021-02-22 07:47:05 +11:00
Andrew Murray
4b14f0102d Save base IFDs when converting Exif to bytes 2021-02-22 07:47:05 +11:00
Andrew Murray
faf8fad76d Stopped flattening EXIF IFD into getexif() 2021-02-22 07:47:05 +11:00
Hugo van Kemenade
058b8d3d12
Merge pull request #5275 from radarhere/tofile 2021-02-21 17:10:52 +02:00
Andrew Murray
3495b319bd Replaced various instances of assert_image_similar with assert_image_similar_tofile 2021-02-21 22:22:29 +11:00
Andrew Murray
a5c251029c Replaced various instances of assert_image_equal with assert_image_equal_tofile 2021-02-21 22:15:56 +11:00
Eric Soroos
a12aa59e8b Add language parameter
ref: https://github.com/google/oss-fuzz/pull/5222
2021-02-20 12:46:13 +01:00
Eric Soroos
79b17e4b1a Add CIFuzz Github Action 2021-02-20 12:46:13 +01:00
Hugo van Kemenade
1857bf5570
Merge pull request #5259 from radarhere/warns 2021-02-17 21:31:15 +02:00
Hugo van Kemenade
53318fbfc1
Merge pull request #5269 from radarhere/fromqimage 2021-02-17 14:55:31 +02:00
Andrew Murray
2bbf31929f Added PyQt6 and PySide 6 to list of modules [ci skip] 2021-02-16 22:36:32 +11:00
Andrew Murray
223b05a2ea Corrected docstring 2021-02-16 22:33:17 +11:00
Hugo van Kemenade
fdd8b68b83
Merge pull request #5261 from radarhere/context_managers 2021-02-13 23:28:11 +02:00
Andrew Murray
a1b4b026ff Added pragma no cover 2021-02-14 07:58:16 +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
Hugo van Kemenade
20329f31bc
Merge pull request #5265 from radarhere/format
Added braces
2021-02-13 11:51:57 +02:00
Andrew Murray
c8ca4b909a Added braces 2021-02-13 11:32:52 +11:00
Andrew Murray
83542c42bf Added context managers 2021-02-11 21:43:54 +11:00
Andrew Murray
c2203a13a8
Merge pull request #5181 from macjohnny/patch-1
Docs: add alpha channel to supported hex color specifiers
2021-02-11 20:47:22 +11:00
Andrew Murray
1722b8de2f Update CHANGES.rst [ci skip] 2021-02-11 18:10:26 +11:00
Hugo van Kemenade
5d67f797d3
Merge pull request #5258 from radarhere/pyqt6 2021-02-11 08:59:24 +02:00
Andrew Murray
4a0569e97f Changed zero length assertions to falsy 2021-02-11 13:48:31 +11:00
Andrew Murray
98eaef5bc7 Added release notes for PyQt6 [ci skip] 2021-02-11 08:09:31 +11:00
Andrew Murray
01be700081 Fixed asserting that no warnings were raised 2021-02-10 23:37:55 +11:00
Andrew Murray
57d6e8ca43 Added PyQt6 support 2021-02-10 21:12:32 +11:00
Esteban Gehring
a28bd5772c
Merge pull request #2 from radarhere/alpha
Changes
2021-02-09 13:51:58 +01:00
Hugo van Kemenade
cc4ed21f19
Merge pull request #5255 from radarhere/getrgb
Updated ImageColor.getrgb docstring
2021-02-09 10:49:04 +02:00
Andrew Murray
e64d62e568 Adjusted formatting [ci skip] 2021-02-09 19:47:40 +11:00
Andrew Murray
6c0af0fdfb Removed ImageDraw reference 2021-02-09 19:46:07 +11:00
Andrew Murray
e4a8783e88 Changed example value to avoid using "a" 2021-02-09 19:44:51 +11:00
Andrew Murray
441d75aa28 Updated docstring 2021-02-09 19:14:57 +11:00
Andrew Murray
e962cd86df Removed existing libpng to fix arm64 OpenJPEG 2021-02-09 12:23:09 +11:00
Hugo van Kemenade
f118a21d55
Merge pull request #5253 from radarhere/limits
Removed outdated limits documentation
2021-02-08 15:22:55 +02: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
a5d8d1e163 Removed outdated documentation [ci skip] 2021-02-08 22:00:48 +11:00
Andrew Murray
48e219ff21 Updated PyPy 3.6 to 7.3.3 2021-02-08 20:54:53 +11:00
Andrew Murray
62737fb470 Update CHANGES.rst [ci skip] 2021-02-08 18:20:11 +11:00
Andrew Murray
bc0c0cb11a
Merge pull request #5250 from Piolie/open_formats_case
Changed Image.open formats parameter to be case-insensitive
2021-02-08 18:19:02 +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
9b56833300
Merge branch 'master' into fribidi-link 2021-02-07 16:02:16 +11:00
Andrew Murray
51ca11de79
Merge branch 'master' into for-5062 2021-02-07 15:57:00 +11:00
Hugo van Kemenade
114ab4c5fc
Merge pull request #5252 from radarhere/lcms2
Updated lcms2 to 2.12
2021-02-07 01:25:00 +02:00
Andrew Murray
e5c41c3c84 Updated lcms2 to 2.12 2021-02-07 06:57:03 +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
Piolie
957cc1b186
Merge pull request #2 from radarhere/open_formats_case
Moved case transformation before initialization check
2021-02-05 12:44:48 -03:00
Piolie
4a9a999dbb
Update Tests/test_image.py
Keep the original test cases; add the most likely non-uppercase versions.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-02-05 12:21:27 -03:00
Andrew Murray
587e073dac Moved case transformation before initialization check 2021-02-05 20:28:34 +11:00
Piolie
0c1675a143 Make formats parameter in Image.open accept aNy cAsE 2021-02-04 22:47:53 -03:00
Andrew Murray
c377d8ca88 Update CHANGES.rst [ci skip] 2021-02-03 15:15:33 +11:00
Hugo van Kemenade
31f3f8f793
Merge pull request #5244 from radarhere/unclosed_file
Fixed unclosed file warning
2021-02-02 15:11:06 +02:00
Hugo van Kemenade
54f12f8aad
Merge pull request #5216 from radarhere/tk
Deprecate Tk/Tcl 8.4, to be removed in Pillow 10 (2023-01-02)
2021-02-02 15:00:15 +02:00
Andrew Murray
63f21609c0 Added context manager 2021-02-02 23:39:53 +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
023dbe3925
Merge pull request #5232 from radarhere/libtiff_test
Moved test that requires libtiff
2021-02-01 18:40:07 +11:00
Hugo van Kemenade
473b24ec4a
Merge pull request #5239 from radarhere/close
Improved close() docstring
2021-01-31 22:07:10 +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
Piolie
b6f6fba8cf Rewrite _ignore_comment as one-liner 2021-01-31 01:40:43 -03:00
Piolie
b43654d159 Change variable name in _read_magic() 2021-01-31 01:40:43 -03:00
Piolie
39288f0fb0 Create maxval variable 2021-01-31 01:40:32 -03:00
Piolie
50522d932e Change max token size to 10
- ...so as not to reject "2,147,483,647" (2 ** 31 - 1);
- reword exception message.
2021-01-31 01:35:25 -03:00
Andrew Murray
c10bf8d9a7 Improved docstring [ci skip] 2021-01-31 13:14:14 +11:00
Hugo van Kemenade
b35cf8bdda
Merge pull request #5238 from radarhere/libwebp
Updated libwebp to 1.2.0
2021-01-30 18:52:56 +02:00
Andrew Murray
9561098ed4 Updated libwebp to 1.2.0 2021-01-30 21:45:39 +11:00
Hugo van Kemenade
4e74d04f26
Merge pull request #185 from radarhere/arm64
Build arm64 wheel
2021-01-30 11:33:21 +02:00
Hugo van Kemenade
514acb327a
Merge pull request #5234 from radarhere/appveyor_setuptools
Removed specific setuptools version from AppVeyor
2021-01-30 11:12:11 +02:00
Hugo van Kemenade
ca56643bb7
Merge pull request #5233 from radarhere/versioning
Corrected documentation syntax
2021-01-30 11:11:31 +02:00
Andrew Murray
11cb3fba9c Added test 2021-01-30 13:01:42 +11:00
Andrew Murray
e4b9f88de4 Updated test now that Win32 uses map_buffer 2021-01-30 12:59:45 +11:00
Andrew Murray
685e951182 Removed unused C code 2021-01-30 11:23:24 +11:00
Andrew Murray
f2f92d22d1 Do not use "use built-in mapper WIN32 only" 2021-01-30 11:23:24 +11:00
Andrew Murray
faeb4599e5 Build arm64 wheel 2021-01-30 10:38:55 +11:00
Hugo van Kemenade
27a8852223
Merge pull request #5230 from radarhere/libimagequant
Updated libimagequant to 2.14.0
2021-01-29 23:56:09 +02:00
Andrew Murray
c43440cfd0 Updated libimagequant to 2.14.0 2021-01-29 08:00:49 +11:00
Andrew Murray
eb7e5d2797 Moved test that requires libtiff 2021-01-29 08:00:37 +11:00
Andrew Murray
b57e4fa8d2 Corrected syntax [ci skip] 2021-01-29 08:00:26 +11:00
Andrew Murray
54cc834445 Removed specific setuptools version 2021-01-29 08:00:08 +11:00
Hugo van Kemenade
dfc6cf7620
Merge pull request #5231 from radarhere/pytest
Install pytest and pytest-cov using pip rather than pacman
2021-01-28 22:46:27 +02:00
Andrew Murray
62628b9638 Install pytest and pytest-cov using pip rather than pacman 2021-01-28 23:01:26 +11:00
Andrew Murray
d79c656fe7 Update CHANGES.rst [ci skip] 2021-01-27 17:58:02 +11:00
Andrew Murray
428a62c696
Merge pull request #5223 from Bitblade/master
Documentation error: Wrong threshold in conversion from L to 1
2021-01-27 17:51:10 +11:00
Andrew Murray
c9740ab7e3 Deprecate Tk/Tcl 8.4, to be removed in Pillow 10 (2023-01-02) 2021-01-26 18:14:28 +11:00
Hugo van Kemenade
fd578a083a
Merge pull request #5226 from radarhere/tk_version
Added tk version to pilinfo
2021-01-26 09:12:33 +02:00
Andrew Murray
bf7635a916
Merge pull request #11 from nulano/tk_version
Document availability of tk version number
2021-01-26 08:23:02 +11:00
nulano
aa742fd8a4 Document availability of tk version number. [ci skip] 2021-01-25 22:13:33 +01:00
Andrew Murray
cf98f178ad Added tk version 2021-01-26 08:01:26 +11:00
Mark Laagland
e6ff82b9ab Small fix for convert documentation of Image.py
[ci skip]
2021-01-24 22:49:27 +01:00
Andrew Murray
baaa298e00 Update CHANGES.rst [ci skip] 2021-01-21 23:32:07 +11:00
Andrew Murray
b39977e1c2 Document license for several fonts 2021-01-21 21:33:35 +11:00
Andrew Murray
ac31061f22 Handle PCX images with an odd stride 2021-01-21 19:29:11 +11:00
Hugo van Kemenade
97b57e118e
Merge pull request #5213 from radarhere/cve_number
Corrected CVE number
2021-01-21 10:27:02 +02:00
Andrew Murray
6f236284b0 Corrected CVE number 2021-01-20 20:43:00 +11:00
wiredfool
8dc5f692db
Merge pull request #5199 from wiredfool/oss-fuzz-link
Link OSS-Fuzz in setup.py
2021-01-16 16:57:42 +00:00
wiredfool
e40a07bca6
Merge pull request #5150 from wiredfool/valgrind_tests
Support for ignoring tests when running valgrind
2021-01-16 16:56:55 +00:00
Andrew Murray
7b4b356fc0 Test for incorrect PixelAccess arguments 2021-01-14 22:09:11 +11:00
Andrew Murray
bdbf1694fc Allow PixelAccess to use Python __int__ when parsing x and y 2021-01-14 21:31:25 +11:00
Andrew Murray
543fa2ceb7
Merge pull request #5194 from radarhere/python310
PyModule_AddObject fix for Python 3.10
2021-01-12 21:53:54 +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
Hugo van Kemenade
2ffbd5f7f7
Merge pull request #5200 from radarhere/handbook
Removed broken link
2021-01-10 12:29:28 +02:00
Andrew Murray
afb6cd5721 Updated to Python 3.9 2021-01-10 15:10:10 +11:00
Andrew Murray
eb2a0622a3 Removed broken link 2021-01-10 08:26:45 +11:00
Hugo van Kemenade
e406bd5c84
Merge pull request #5197 from radarhere/getcolors
getcolors() returns colors in the image mode
2021-01-09 20:19:54 +02:00
Eric Soroos
77bf0aa673 lint off 2021-01-09 17:00:27 +01:00
Eric Soroos
3775d36398 Do fuzzing linking in setup.py options, rather than post-hoc manually linking 2021-01-09 16:47:12 +01:00
Andrew Murray
f9c283468d Added import test 2021-01-09 23:04:32 +11:00
Hugo van Kemenade
3dd8c981db
Merge pull request #5196 from radarhere/example
Changed example image file name
2021-01-09 13:43:33 +02:00
Hugo van Kemenade
87cfbfc81b
Merge pull request #5195 from radarhere/macos_version
Updated macOS tested Pillow versions
2021-01-09 13:43:14 +02:00
Andrew Murray
4eccadced4 Document that getcolors() returns colors in the image mode [ci skip] 2021-01-09 21:30:16 +11:00
Andrew Murray
a6fc7a5320 Changed example image file name [ci skip] 2021-01-09 21:14:02 +11:00
Andrew Murray
cda2a2479e Updated macOS tested Pillow versions [ci skip] 2021-01-09 21:00:56 +11:00
Andrew Murray
cf190a3c2f PyModule_AddObject fix for Python 3.10 2021-01-09 12:17:57 +11:00
Andrew Murray
2bbb82a019 Added import test 2021-01-09 12:13:00 +11:00
Esteban Gehring
3f073ff3cb
Merge pull request #1 from radarhere/m-patch-1
Fixed unexpected indentation
2021-01-07 22:31:51 +01:00
Eric Soroos
1d0149c369 feck8 2021-01-07 15:26:23 +01:00
Eric Soroos
a6fa139f62 useless reptile 2021-01-07 14:57:49 +01:00
Eric Soroos
1d7c8e03d0 known failing tests from valgrind -- uninitialized values 2021-01-07 14:52:02 +01:00
Andrew Murray
a58ff327d4 Moved imports to top of file 2021-01-07 14:52:02 +01:00
Andrew Murray
59ee809f13 Updated capitalisation
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-01-07 14:52:02 +01:00
Andrew Murray
d35995f945 Lint fixes 2021-01-07 14:52:02 +01:00
Eric Soroos
bd38487324 Ignore this test in valgrind -- the metadata values don't make logical sense. 2021-01-07 14:52:02 +01:00
Eric Soroos
59ed81f838 Add pytest configuration for patching around an unknown valgrind mark 2021-01-07 14:52:02 +01:00
wiredfool
cfff80ad76
Merge pull request #5177 from wiredfool/debugging_notes
Added docs for C-Extension debugging with valgrind
2021-01-07 13:06:22 +00:00
Andrew Murray
497f9e2764 Fixed unexpected indentation [ci skip] 2021-01-08 00:06:18 +11:00
wiredfool
d1eccf8a6e
Merge pull request #5187 from radarhere/python3
Use python3 for GH Actions
2021-01-07 13:06:06 +00:00
wiredfool
75cee40299
Merge pull request #5189 from wiredfool/oss-fuzz-support
In tree oss-fuzz support
2021-01-07 12:37:14 +00:00
Andrew Murray
eaeaa181dd
Removed unused import 2021-01-07 23:18:24 +11:00
Eric Soroos
37a7c601cc uglify 2021-01-07 13:07:28 +01:00
Eric Soroos
ffbaa6523d Internal support for oss-fuzz testing 2021-01-07 12:55:11 +01:00
Piolie
bc5ecfb79c Make minor changes to tests
- add test for maxcolors;
- extend coverage for wrong magic number;
- fix linting.
2021-01-06 14:53:30 -03:00
Piolie
73fed77c0c Suppress exception context 2021-01-06 14:46:30 -03:00
Andrew Murray
2e5d7dd387 Use python3 2021-01-06 22:42:31 +11:00
mergify[bot]
8ca24cea71
Merge pull request #5186 from nulano/test-with-python3
CI: Use python3 in .ci/test.sh
2021-01-06 10:30:04 +00:00
nulano
a9f31ffee3 use python3 in .ci/test.sh 2021-01-06 10:59:03 +01:00
Hugo van Kemenade
24a518bb51
Merge pull request #182 from hugovk/rm-travis-latest 2021-01-06 10:51:17 +02:00
Piolie
002e0bd697 Add tests for token size and wrong magic number 2021-01-06 01:21:35 -03:00
Piolie
5d0ad5e2e9 Revert exception types to ValueError 2021-01-06 01:21:01 -03:00
Piolie
4dbe244e42 Add token limit 2021-01-06 01:07:14 -03:00
Andrew Murray
2c41413b93
Merge pull request #5179 from nulano/wheels-180
Release notes for LibTIFF update in pillow-wheels
2021-01-05 20:38:32 +11:00
Piolie
d2ad27d70a Correctly check magic number 2021-01-05 00:08:15 -03:00
nulano
aae94110d7 lint 2021-01-05 00:07:03 +11:00
nulano
0488a2761a can't use underscore prefix for distutils options 2021-01-05 00:07:03 +11:00
nulano
43bde01623 disable Raqm/FriBiDi vendoring by default, except in Windows tests 2021-01-05 00:07:03 +11:00
nulano
8c02e3803b Revert "raqm: avoid declaring variables in for statement for C89 compatibility"
This reverts commit b3cfe73854e74bc25a88f53b177713bfb63812e4.
2021-01-05 00:07:03 +11:00
nulano
db0dad909e test 2021-01-05 00:07:03 +11:00
nulano
9c178435fb raqm: fix FriBiDi<1 support 2021-01-05 00:07:03 +11:00
nulano
b4a57d6fc5 support FriBiDi<1.0 2021-01-05 00:07:03 +11:00
nulano
f2b2d53ca8 raqm: avoid declaring variables in for statement for C89 compatibility 2021-01-05 00:07:03 +11:00
nulano
c3fce854f2 avoid NULL in fribidi shim 2021-01-05 00:07:03 +11:00
nulano
834c2e5e5d lint 2021-01-05 00:07:03 +11:00
nulano
be0d0a3a48 fix finding raqm deps 2021-01-05 00:07:03 +11:00
nulano
3386a9ce02 replace tabs in thirdparty libs 2021-01-05 00:06:29 +11:00
nulano
d4403bec46 GHA: fix windows build for dynamic fribidi 2021-01-05 00:06:29 +11:00
nulano
5cd688fc82 add option to statically link fribidi, version info 2021-01-05 00:06:29 +11:00
nulano
9e5fc136b9 add Raqm license and readme 2021-01-05 00:03:52 +11:00
nulano
8bc1ff35b4 use FriBiDi shim in Raqm 2021-01-05 00:03:52 +11:00
nulano
e5e5761da4 add raqm to thirdparty directory 2021-01-04 23:57:31 +11:00
Esteban Gehring
930059814d
docs: add alpha channel to supported hex color specifiers 2021-01-04 13:42:15 +01:00
Andrew Murray
2341c6b933
Merge branch 'master' into jp2-decode-subsample 2021-01-04 23:25:09 +11:00
Jan Solanti
b08c514ee7 BcnDecode: add comment about BC2&3 color blocks 2021-01-04 22:48:02 +11:00
Jan Solanti
ddd3a2b482 Add tests for issue #4142 2021-01-04 22:47:18 +11:00
Jan Solanti
097f7d0f56 Stop decoding BC1 punchthrough alpha in BC2&3 2021-01-04 22:47:18 +11:00
Andrew Murray
d374015504
Merge pull request #4770 from hugovk/clang-format-pganssle
ClangFormat the C code
2021-01-04 22:24:57 +11: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
Uriel Martinez
7f5dbb7c9b
Update src/PIL/Image.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-01-02 21:57:24 -06:00
Andrew Murray
46b7e86bab Format with ClangFormat 2021-01-03 14:17:51 +11:00
Hugo van Kemenade
e2d00f8cf8 Adjust clang-format style 2021-01-03 14:16:42 +11:00
Hugo van Kemenade
5d968accf5 Add clang-format style that approximates Python's PEP 7 from pganssle/zoneinfo 2021-01-03 14:16:42 +11:00
Andrew Murray
56e7d1fd9b 8.2.0.dev0 version bump 2021-01-03 07:14:59 +11: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
Eric Soroos
6b6c0b3692 Added docs for C-Extension debugging with valgrind [ci-skip] 2021-01-02 13:07:30 +01:00
Andrew Murray
fcc42e0d34 8.1.0 version bump 2021-01-02 22:39:02 +11:00
Andrew Murray
a99128052c Update CHANGES.rst [ci skip] 2021-01-02 22:38:16 +11:00
Andrew Murray
470e48be4f
Merge pull request #5176 from radarhere/security
Document CVE fixes
2021-01-02 22:37:19 +11:00
Andrew Murray
cd316feead Link to OSS-Fuzz [ci skip] 2021-01-02 22:09:07 +11:00
Andrew Murray
2711549503 Link to TideLift [ci skip] 2021-01-02 22:07:03 +11:00
Andrew Murray
d88fdcda06
Updated capitalisation [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-01-02 22:00:35 +11:00
nulano
c5c0cd8914 document pillow-wheels PR180 2021-01-02 11:54:56 +01:00
Andrew Murray
95f99d52c4 Document CVE fixes [ci skip] 2021-01-02 21:27:50 +11:00
Andrew Murray
c8dd1c8422
Merge pull request #5175 from radarhere/tiff
Fix TIFF OOB Write error
2021-01-02 21:13:28 +11:00
Andrew Murray
0117694533
Merge pull request #5174 from radarhere/pcx
Fix for Read Overflow in PCX Decoding
2021-01-02 21:00:25 +11:00
Andrew Murray
120eea2e45
Merge pull request #5173 from radarhere/sgi
Fix for SGI Decode buffer overrun
2021-01-02 20:47:36 +11:00
Andrew Murray
903c67353d Lint fix 2021-01-02 20:41:17 +11:00
Eric Soroos
2f409261eb Fix for CVE CVE-2020-35655 - Read Overflow in PCX Decoding.
* Don't trust the image to specify a buffer size
2021-01-02 20:38:46 +11:00
wiredfool
45a62e91b1 Rework ReadTile
* Don't malloc for the swap line, just shuffle backwards
* Ensure that im->pixelsize is sanity checked
* Ensure that we're using the right size for the buffer from TiffReadRGBATile
2021-01-02 20:37:48 +11:00
wiredfool
eb8c1206d6 Fix CVE-2020-35654 - OOB Write in TiffDecode.c
* In some circumstances with some versions of libtiff (4.1.0+), there
  could be a 4 byte out of bound write when decoding a YCbCr tiff.
* The Pillow code dates to 6.0.0
* Found and reported through Tidelift
2021-01-02 20:37:48 +11:00
Andrew Murray
0c39689690
Merge pull request #5171 from radarhere/makefile
Add #5159 to the release notes
2021-01-02 20:20:05 +11:00
Andrew Murray
1cbb12fb6e Lint fix 2021-01-02 20:19:26 +11:00
Andrew Murray
aa390a5a79
Merge pull request #5172 from radarhere/security
Added release notes for #5149
2021-01-02 20:17:36 +11:00
Eric Soroos
9a2c9f722f Make the SGI code return -1 as an error flag, error in state 2021-01-02 20:10:02 +11:00
Eric Soroos
7e95c63fa7 Fix for SGI Decode buffer overrun CVE-2020-35655
* Independently found by a contributor and sent to Tidelift, and by Google's OSS Fuzz.
2021-01-02 20:09:58 +11:00
Andrew Murray
6ffa37b85b Document #5149 [ci skip] 2021-01-02 19:59:29 +11:00
Andrew Murray
e6ef8a6c09 Update CHANGES.rst [ci skip] 2021-01-02 19:58:03 +11:00
Andrew Murray
527409053f Added deprecation message for install-venv 2021-01-02 19:40:03 +11:00
Hugo van Kemenade
07bbc46589
Merge pull request #5149 from wiredfool/gif_write_oob_read 2021-01-02 10:14:17 +02:00
Andrew Murray
01cad6bcad Update CHANGES.rst [ci skip] 2021-01-02 11:24:20 +11:00
Andrew Murray
852503a4a3 Document #5159 [ci skip] 2021-01-02 11:00:33 +11:00
Andrew Murray
312213723d
Merge pull request #5159 from wiredfool/makefile_updates
Makefile updates
2021-01-02 10:57:13 +11:00
Hugo van Kemenade
06b0d3905e
Merge pull request #5170 from radarhere/pyside6
Document #5161 in release notes
2021-01-02 01:01:58 +02:00
Andrew Murray
6f3670df4d
Updated description 2021-01-02 09:46:03 +11:00
Andrew Murray
3808aee4e6 Document #5161 [ci skip] 2021-01-02 09:39:04 +11:00
Andrew Murray
8e948d066a Update CHANGES.rst [ci skip] 2021-01-02 09:34:31 +11:00
Andrew Murray
f54ea8fadd
Merge pull request #5161 from hugovk/add-pyside6
Add support for PySide6
2021-01-02 09:33:16 +11:00
Hugo van Kemenade
effa65cb38 Refactor 2021-01-01 20:37:16 +02:00
Hugo van Kemenade
4e3dc9a06b Add support for PySide6 2021-01-01 20:34:44 +02:00
Hugo van Kemenade
11e63b6a64
Merge pull request #5167 from radarhere/pyside2
Moved QApplication into one test
2021-01-01 20:28:31 +02:00
wiredfool
a955e97625
Merge pull request #5 from radarhere/makefile_updates
Added isort to lint-fix
2021-01-01 13:02:01 +00:00
Andrew Murray
4f28ed3956 Changed tabs to spaces for consistency 2021-01-01 23:32:46 +11:00
Andrew Murray
78a051470c Added isort to lint-fix 2021-01-01 15:54:53 +11:00
Andrew Murray
db3b5108dc Changed MP Type to match #1631 image 2021-01-01 13:00:01 +11:00
Andrew Murray
6175389186 Only read different sizes for "Large Thumbnail" frames 2021-01-01 12:45:02 +11:00
Andrew Murray
62693b7c54 Moved QApplication into one test 2021-01-01 11:33:20 +11:00
Hugo van Kemenade
41462d8c55
Merge pull request #5166 from radarhere/copyright
Updated copyright year
2021-01-01 00:54:25 +02: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
d7350bd403 Update CHANGES.rst [ci skip] 2021-01-01 09:06:32 +11:00
Eric Soroos
31b6e80f6e lint-fix target, currently including black 2020-12-31 16:39:10 +01:00
Eric Soroos
35c396c1e6 the other pip invocation 2020-12-31 16:38:57 +01:00
Eric Soroos
4ba769f99e documentation 2020-12-31 16:38:41 +01:00
Hugo van Kemenade
4093897673
Merge pull request #5126 from radarhere/apng_disposal
Use disposal settings from previous frame in APNG
2020-12-31 16:06:33 +02:00
Hugo van Kemenade
3718c350f9
Merge pull request #5162 from radarhere/argument
Corrected argument
2020-12-31 16:04:25 +02:00
Andrew Murray
48eb46ece6 Updated copyright year 2021-01-01 00:05:47 +11:00
Hugo van Kemenade
01f068f978
Merge pull request #5163 from radarhere/3.10
Revert "skip wheels on 3.10-dev due to wheel#354"
2020-12-31 10:20:33 +02:00
Andrew Murray
1af26f3159 Revert "skip wheels on 3.10-dev due to wheel#354"
This reverts commit bdcc48f0a2.
2020-12-31 18:38:17 +11:00
Andrew Murray
77b16efba3 Corrected argument 2020-12-31 16:25:46 +11:00
Uriel Martinez
0084234aa9
Merge pull request #10 from radarhere/feature_xmp
Changed list of single items dictionaries to dictionary
2020-12-30 17:10:48 -06:00
Andrew Murray
01cee38b9b
Merge pull request #5153 from radarhere/tiff_wheels
Updated libtiff to 4.2.0
2020-12-31 10:01:19 +11:00
Andrew Murray
737205c67f Update CHANGES.rst [ci skip] 2020-12-31 09:35:35 +11:00
Andrew Murray
e1e77ff735
Merge pull request #5156 from radarhere/better-binary-use
Better _binary module use
2020-12-31 00:07:46 +11:00
Andrew Murray
3c482b1b0b Changed list of single item dictionaries to dictionary 2020-12-30 23:10:29 +11:00
Andrew Murray
ad9614be7a Renamed variable 2020-12-30 22:46:49 +11:00
Hugo van Kemenade
bba84e53f2
Merge pull request #5154 from radarhere/security
Added #5148 to the release notes
2020-12-30 13:40:59 +02:00
Andrew Murray
8c8b110035 Check string value 2020-12-30 22:40:39 +11:00
Andrew Murray
06b7b97a7a Use isinstance to check type 2020-12-30 22:39:49 +11:00
Andrew Murray
17c48db318 Use context manager 2020-12-30 22:35:54 +11:00
Eric Soroos
85649e299d Makefile: Lint target 2020-12-30 11:51:04 +01:00
Eric Soroos
dae30d8601 Removed co target -- Artifact of previous code review process 2020-12-30 11:26:32 +01:00
Eric Soroos
e126001e62 Help as default goal 2020-12-30 11:25:34 +01:00
Eric Soroos
250e42f7f8 Bad Rebase 2020-12-30 11:07:58 +01:00
Alexander
1ff61bcaa6 use offset for all binary input functions instead of slicing 2020-12-30 19:10:50 +11:00
Alexander
3757b8c748 remove extra i8 calls where input is proved bytes[] or int 2020-12-30 19:04:11 +11:00
Andrew Murray
800a265f1c Test ICNS on all operating systems 2020-12-30 13:09:30 +11:00
Andrew Murray
86ad435ee4
Merge branch 'master' into master 2020-12-30 13:05:35 +11:00
Andrew Murray
0ff800a525
Updated docstring
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-30 12:49:22 +11:00
Andrew Murray
4056bf529e Document #5148 [ci skip] 2020-12-30 12:43:13 +11:00
Andrew Murray
6b21a96578 Changed readcount so that _TIFFSetGetType can identify the type 2020-12-30 11:57:05 +11:00
Andrew Murray
8dd5913428 Updated libtiff to 4.2.0 2020-12-30 11:34:46 +11:00
Hugo van Kemenade
85d61ca7d5
Merge pull request #5139 from radarhere/repr_png
Added exception explaining that _repr_png_ saves to PNG
2020-12-29 12:43:22 +02:00
Hugo van Kemenade
8d62314db4
Merge pull request #5137 from radarhere/imagefont
Document limited number of characters in FontFile
2020-12-29 12:36:24 +02:00
Andrew Murray
143a77d8e2 Update CHANGES.rst [ci skip] 2020-12-29 21:29:22 +11:00
Hugo van Kemenade
cd446e6088
Merge pull request #5125 from radarhere/disposal_method
Use previous disposal method in GIF load_end
2020-12-29 12:26:14 +02:00
Andrew Murray
1892b2339f Update CHANGES.rst [ci skip] 2020-12-29 21:20:26 +11:00
Hugo van Kemenade
5c64438792
Merge pull request #5090 from radarhere/valueerror
Do not catch a ValueError only to raise another
2020-12-29 12:19:16 +02:00
Hugo van Kemenade
25500e83bc
Merge pull request #5089 from radarhere/putpalette_rgba
Allow putpalette to accept 1024 integers to include alpha values
2020-12-29 12:17:50 +02:00
Andrew Murray
28fbc6bcd0 Update CHANGES.rst [ci skip] 2020-12-29 20:03:45 +11:00
Andrew Murray
fff194505c
Merge pull request #5152 from radarhere/openjpeg_wheels
OpenJPEG has been updated in pillow-wheels
2020-12-29 19:43:51 +11:00
Andrew Murray
e3bbc30fa8 Updated libtiff to 4.2.0 2020-12-29 19:13:05 +11:00
Andrew Murray
387ac3d704
Simplified wording [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-29 19:08:04 +11:00
Hugo van Kemenade
96283c0c89
Merge pull request #178 from radarhere/licenses 2020-12-29 10:00:34 +02:00
Hugo van Kemenade
18ee51a5a8
Merge pull request #5151 from radarhere/openjpeg
Updated openjpeg to 2.4.0
2020-12-29 07:16:25 +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
8f1111472b OpenJPEG has been updated in pillow-wheels [ci skip] 2020-12-29 11:32:10 +11:00
Andrew Murray
c68ddcf87d Updated openjpeg to 2.4.0 2020-12-29 10:44:32 +11: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
416f12e772
Merge pull request #5148 from wiredfool/tiff_oob_read
Fix OOB Read when writing TIFF with custom Metadata
2020-12-29 08:29:29 +11:00
Eric Soroos
a39d7c4fcf Fix OOB Read in tif_dirinfo.c
==3330==    at 0xBD4110C: _TIFFSetupFields (tif_dirinfo.c:327)

Passing in a stack allocated array is going to fail, as a reference
is retained to the name and used later when flushing the Tiff to
the file.
2020-12-28 15:00:48 +01:00
UrielMaD
3e9403af56 XMP feature added 2020-12-27 22:32:42 -06:00
UrielMaD
096854d1c8 XMP feature added 2020-12-27 22:29:51 -06:00
UrielMaD
19bac31804 XMP feature added 2020-12-27 22:28:03 -06:00
UrielMaD
7968279c13 XMP feature added 2020-12-27 22:24:38 -06:00
UrielMaD
2f29f1306f XMP feature added 2020-12-27 22:01:27 -06:00
UrielMaD
cc8070aec5 XMP feature added 2020-12-27 21:39:36 -06:00
UrielMaD
b1b7d2ff18 XMP feature added 2020-12-27 21:37:15 -06:00
UrielMaD
b802588223 XMP feature added 2020-12-27 20:49:28 -06:00
UrielMaD
08935aeaca XMP feature added 2020-12-27 20:09:10 -06:00
UrielMaD
ee5d05ae21 XMP feature added 2020-12-27 20:01:56 -06:00
UrielMaD
4ff5546203 XMP feature added 2020-12-27 20:00:04 -06:00
UrielMaD
c84f1058ea XMP feature added 2020-12-27 19:54:06 -06:00
UrielMaD
2474cc2db6 XMP feature added 2020-12-27 19:52:46 -06:00
UrielMaD
762235fb06 XMP feature added 2020-12-27 19:01:15 -06:00
UrielMaD
9947655b93 XMP feature added 2020-12-27 18:46:07 -06:00
UrielMaD
50e88764e8 XMP feature added 2020-12-27 18:39:16 -06:00
UrielMaD
eeee980cf7 XMP feature added 2020-12-27 18:36:13 -06: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
Eric Soroos
d96945b7c8 Fix Out of bounds read when saving GIF of xsize=1 2020-12-27 16:01:26 +01:00
Hugo van Kemenade
2d7c543a2f
Merge pull request #5140 from radarhere/unused
Removed unused variable
2020-12-27 12:26:22 +02:00
Hugo van Kemenade
21e3363134
Merge pull request #5138 from radarhere/harfbuzz
Updated harfbuzz to 2.7.4
2020-12-27 09:06:06 +02:00
Andrew Murray
00df94bb78 Removed unused variable 2020-12-27 16:16:55 +11:00
Andrew Murray
fdce845364 Added exception explaining that _repr_png_ saves to PNG 2020-12-27 15:36:16 +11:00
Andrew Murray
bea3745a74 Updated harfbuzz to 2.7.4 2020-12-27 13:19:07 +11:00
Andrew Murray
6ee74e1f18 Document limited number of characters [ci skip] 2020-12-27 12:48:29 +11:00
Andrew Murray
b48cfa747c Update CHANGES.rst [ci skip] 2020-12-27 12:29:43 +11:00
Andrew Murray
cf530b8d9c
Merge pull request #5111 from cgohlke/patch-3
Fix dereferencing of potential null pointers
2020-12-27 12:21:09 +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
51b8137924
Changed style for consistency 2020-12-26 21:49:40 +11:00
Andrew Murray
ef03126481 Use python3 2020-12-26 21:40:59 +11:00
Hugo van Kemenade
4e60680ce6
Merge pull request #5133 from radarhere/wheels
Document addition of PyPy3.7 wheels
2020-12-25 11:16:39 +02:00
Andrew Murray
e9fa245b69 Documented the addition of PyPy3.7 wheels [ci skip] 2020-12-25 18:08:48 +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
Hugo van Kemenade
2635a4859d
Merge pull request #5127 from radarhere/warnings
Fixed warnings assigning to "unsigned char *" from "char *"
2020-12-24 10:50:24 +02:00
Hugo van Kemenade
be3006533d
Merge pull request #5129 from radarhere/releasenotes
Added release notes for #4568
2020-12-24 09:58:47 +02:00
Hugo van Kemenade
0316ff6024
Merge pull request #5131 from radarhere/macos
Updated macOS tested Pillow versions
2020-12-24 09:57:56 +02:00
Hugo van Kemenade
eb51f6aa81
Merge pull request #5128 from radarhere/harfbuzz
Updated harfbuzz to 2.7.3
2020-12-24 09:56:31 +02:00
Andrew Murray
26b9181591 Updated macOS tested Pillow versions [ci skip] 2020-12-24 17:11:49 +11:00
Andrew Murray
2899ca0387 Added release notes for #4568 [ci skip] 2020-12-24 13:13:44 +11:00
Andrew Murray
ff9715f079 Update CHANGES.rst [ci skip] 2020-12-24 11:17:43 +11:00
Andrew Murray
e37a8a263d
Merge pull request #4568 from ziplantil/ico-append-images
Add append_images support for ICO
2020-12-24 11:10:33 +11:00
Andrew Murray
645b10612f Updated harfbuzz to 2.7.3 2020-12-24 10:51:49 +11:00
Andrew Murray
46f7b4a439
Updated test name and text 2020-12-24 10:50:43 +11:00
Andrew Murray
8eaf9e7cb7 Fixed warning assigning to "unsigned char *" from "char *" 2020-12-24 10:47:06 +11:00
Andrew Murray
5e4e0fa6ee Use disposal settings from previous frame 2020-12-24 09:55:22 +11:00
Andrew Murray
9940c84b08 Use previous disposal method in load_end 2020-12-23 13:22:53 +11:00
Hugo van Kemenade
ce3d80e713
Merge pull request #5122 from radarhere/warnings 2020-12-22 16:09:21 +02:00
Andrew Murray
36dc83e3ac Fixed comparison between unsigned int and int 2020-12-22 16:07:32 +11:00
Andrew Murray
26e5929617 Fixed comparison between int and unsigned long 2020-12-22 16:06:44 +11:00
Hugo van Kemenade
d0c685fbfa
Merge pull request #5120 from radarhere/subifd
Block TIFFTAG_SUBIFD
2020-12-22 06:41:09 +02:00
Andrew Murray
800c03068b Removed PyPy-specific install command 2020-12-22 12:44:54 +11:00
Piolie
699afe1e89 Improve PPM tests 2020-12-21 22:39:32 -03:00
Piolie
6b81e34d67 Improve handling of PPM headers 2020-12-21 22:39:27 -03:00
Andrew Murray
8794610c76 Block TIFFTAG_SUBIFD 2020-12-22 11:38:02 +11:00
Andrew Murray
0eddc82157
Merge pull request #5108 from cgohlke/patch-1
Fix dereferencing potential null pointer
2020-12-22 08:26:48 +11:00
Andrew Murray
9443997d1c
Merge pull request #5117 from radarhere/versioning
Added versioning documentation
2020-12-22 08:00:18 +11:00
Andrew Murray
6d5b550fa6
Merge pull request #4983 from hugovk/update-releasing
Releasing: Replace viewdoc with markdown2 and twine check
2020-12-22 07:41:59 +11:00
Andrew Murray
1777aada93
Reformatted link [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-22 07:38:56 +11:00
Andrew Murray
0e50e72807
Merge pull request #5056 from hugovk/fix-4th-level-menu-dark-mode
Don't add light mode bg to 3rd and 4th level menu items
2020-12-22 07:37:48 +11:00
Hugo van Kemenade
a4efa48f33
Merge pull request #66 from radarhere/fix-4th-level-menu-dark-mode
Fix 3rd level menu item background-color in dark mode
2020-12-21 16:39:18 +02:00
Hugo van Kemenade
47085d4057
Keep example consistent
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-12-21 12:30:26 +02:00
Andrew Murray
d13a3ce7bf Moved "Versioning" into "Release Notes" 2020-12-21 20:45:59 +11:00
Andrew Murray
a0f8004aa6
Specify branch [ci skip] 2020-12-21 19:48:53 +11:00
Andrew Murray
cf26a10f32
Added link [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-21 19:17:50 +11:00
Andrew Murray
35834535cb
Fixed wording [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-12-21 19:17:31 +11:00
Andrew Murray
967d214a5c Added versioning documentation [ci skip] 2020-12-21 17:45:43 +11:00
Andrew Murray
c44457a627 Update CHANGES.rst [ci skip] 2020-12-21 17:14:52 +11:00
Andrew Murray
0a1dcfc55a Fix 3rd level menu item background-color in dark mode [ci skip] 2020-12-21 09:10:19 +11:00
Hugo van Kemenade
396b329507
Merge pull request #5113 from radarhere/memory
Replaced PyErr_NoMemory with ImagingError_MemoryError
2020-12-20 22:17:10 +02:00
Hugo van Kemenade
19648fa925
Merge pull request #5115 from HollowMan6/patch-1
Fix use of a versus an in ImageCms.rst
2020-12-20 16:47:54 +02:00
Hollow Man
889409ded3
Fix use of a versus an in ImageCms.rst
an color -> a color
2020-12-20 22:31:25 +08: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
Christoph Gohlke
d1e706d756
return ImagingError_MemoryError 2020-12-19 19:42:29 -08:00
Christoph Gohlke
fd14616dbb
Return ImagingError_MemoryError 2020-12-19 19:37:05 -08:00
Christoph Gohlke
15dd7aef9f
Return ImagingError_MemoryError 2020-12-19 19:35:21 -08:00
Andrew Murray
83d82ae150
Merge pull request #5098 from hugovk/deprecate-freetype
Deprecate FreeType 2.7
2020-12-20 13:35:41 +11:00
Andrew Murray
330384582a
Merge pull request #5112 from jdufresne/pycon
Update some doc code blocks to the 'pycon' lexer
2020-12-20 13:29:41 +11:00
Andrew Murray
b7fb39fff8 Use ImagingError_MemoryError NULL return value 2020-12-20 13:00:16 +11:00
Andrew Murray
75542fea6d Replaced PyErr_NoMemory with ImagingError_MemoryError 2020-12-20 13:00:10 +11:00
Jon Dufresne
5474b2c7d4 Update some doc code blocks to the 'pycon' lexer
These code blocks represent Python console sessions, not Python source
code. The pycon lexer understands the ">>>" prompt and output (e.g. a
traceback).
2020-12-19 17:55:54 -08:00
Andrew Murray
c1707d5d55
Merge pull request #5109 from cgohlke/patch-2
Remove duplicate code
2020-12-20 12:09:08 +11:00
Andrew Murray
00b08c8616
Merge pull request #5110 from jdufresne/isort-url
Update isort URL: timothycrosley/isort → PyCQA/isort
2020-12-20 11:59:20 +11:00
Christoph Gohlke
fd4b0609ef
Fix dereferencing of potential null pointers 2020-12-19 15:58:25 -08:00
Jon Dufresne
2f48b036ad Update isort URL: timothycrosley/isort → PyCQA/isort 2020-12-19 15:10:47 -08:00
Christoph Gohlke
c1adae6f70
Remove duplicate code 2020-12-19 15:07:51 -08:00
Christoph Gohlke
7673cb7549
Fix dereferencing potential null pointer 2020-12-19 14:57:55 -08:00
Andrew Murray
c52c3ae3e2
Merge pull request #5102 from hugovk/add-path-tests
Add tests for ImagePath.Path
2020-12-20 07:43:56 +11:00
Andrew Murray
4b15723c7f
Merge pull request #5107 from hugovk/travis-cleanup
Remove unused Travis CI config
2020-12-20 07:43:44 +11:00
Andrew Murray
85c118134d
Merge branch 'master' into travis-cleanup 2020-12-20 07:26:56 +11:00
Andrew Murray
dc74c8ec5f
Merge pull request #5106 from hugovk/fix-reqs
Added packaging
2020-12-20 07:25:24 +11:00
Hugo van Kemenade
924b1496c3 Show example link instead of hiding inside hyperlink
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-12-19 21:57:32 +02:00
Andrew Murray
b0af0d4076 Travis CI is no longer used 2020-12-19 21:57:32 +02:00
Andrew Murray
970d2b7c92 GitHub Actions have been added to wheels [ci skip] 2020-12-19 21:57:32 +02:00
Hugo van Kemenade
9e21ef7338 Remove old Travis CI config 2020-12-19 21:57:32 +02:00
Hugo van Kemenade
d3702fd614 Remove unused Travis CI config 2020-12-19 21:57:32 +02:00
Andrew Murray
162fbc679b Added packaging 2020-12-19 21:48:17 +02:00
Hugo van Kemenade
ceaed2e058 Add tests for ImagePath.Path 2020-12-18 22:54:48 +02:00
Hugo van Kemenade
2b319f2ce4 Simplify: remove class 2020-12-18 22:54:40 +02:00
Hugo van Kemenade
4923c4b8c7
Merge pull request #65 from radarhere/deprecate-freetype
Do not require packaging just for a DeprecationWarning
2020-12-18 19:22:47 +02:00
Andrew Murray
043d8dac0b Do not require packaging just for a DeprecationWarning 2020-12-18 23:42:16 +11: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
9e3ad5e997
Merge pull request #5088 from nulano/gha-qus-2
Move non-x86 tests to GHA
2020-12-18 17:48:51 +11:00
Andrew Murray
9f5c535709 Invoke pip using python3 2020-12-18 16:38:23 +11:00
Andrew Murray
e414eb567a
Merge pull request #5099 from nulano/gha-pypy
GHA: Add PyPy3.7
2020-12-18 15:45:55 +11:00
nulano
5c600adf41 gha: add PyPy3.7 2020-12-17 20:09:13 +01:00
Hugo van Kemenade
cfc45ab9c3 Autolink PEP 2020-12-17 10:29:04 +02:00
Hugo van Kemenade
f0c0a0a1f4 Autolink CVEs with sphinx-issues 2020-12-17 10:29:04 +02:00
Hugo van Kemenade
d093b7141f Update Makefile docs command for Python 3 2020-12-17 10:28:06 +02:00
Hugo van Kemenade
27bf17009c Deprecate FreeType 2.7, to be removed in Pillow 9 (2022-01-02) 2020-12-17 10:28:06 +02:00
Hugo van Kemenade
ff40eaa961
Merge pull request #5091 from nulano/gha-qus-4 2020-12-12 19:54:27 +02:00
nulano
db35e6404e remove FreeType<2.7 metrics in test_imagefont 2020-12-12 15:29:41 +01:00
nulano
903ec9723d move tests for arm64v8, ppc64le, s390x from Travis CI to GHA using Docker and aptman/qus 2020-12-12 15:29:37 +01:00
nulano
a3ab868b0f xfail tests failing on ppc64le on GHA
(cherry picked from commit 9c7fb5bd14c3064fede96131a0f7f67abf26a4e7)
2020-12-12 15:26:42 +01:00
nulano
989c9b303a xfail failing libtiff tests on big-endian
(cherry picked from commit 25ce233edf732edb5660f877365379377a64f136)
2020-12-12 15:26:42 +01:00
Andrew Murray
ff0ad9af34 Do not catch a ValueError only to raise another 2020-12-12 23:36:57 +11:00
Andrew Murray
a666c91e10 Allow putpalette to accept 1024 integers to include alpha values 2020-12-12 14:12:30 +11:00
Andrew Murray
4ed79ea79c Update CHANGES.rst [ci skip] 2020-12-12 10:31:55 +11:00
Andrew Murray
a41bc39e81
Merge pull request #5087 from hugovk/disable-travis-mergify
Disable Travis CI from automerge requirements
2020-12-12 07:37:52 +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
1c82fbd5e9 Disable Travis from automerge 2020-12-11 20:46:00 +02: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
ziplantil
0722870564
Merge pull request #1 from radarhere/ico-append-images
ICO append images suggestions
2020-12-11 12:28:00 +02: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
1580f2f888
Merge pull request #5074 from hugovk/docs-links
Docs: Add 'Release notes' and 'Changelog' links to PyPI
2020-12-11 18:15:04 +11:00
Andrew Murray
7251477a2e
Merge pull request #5085 from hugovk/document-removal-version
Document when deprecations will be removed
2020-12-11 18:03:47 +11:00
Hugo van Kemenade
0893f502c3 Document when deprecations will be removed [CI skip] 2020-12-10 14:32:43 +02:00
Andrew Murray
839d54a19b
Merge pull request #5081 from hugovk/release-drafter-categories
Add categories to Release Drafter
2020-12-10 18:54:59 +11:00
Hugo van Kemenade
786fddb794
Fix label name
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-12-08 12:23:53 +02:00
Hugo van Kemenade
1e8e7fea7d Add categories to Release Drafter [CI skip] 2020-12-07 22:01:25 +02:00
Alex Clark
252c008ec6
Merge pull request #5078 from python-pillow/aclark4life-patch-1
Update CHANGES.rst
2020-12-04 19:29:14 -05:00
Alex Clark
a0565bc8ac
Update CHANGES.rst
https://twitter.com/aclark4life/status/1335001987075747841
2020-12-04 18:24:22 -05:00
Andrew Murray
8108b289eb Added GitHub Actions badge [ci skip] 2020-12-04 00:44:27 +11:00
Hugo van Kemenade
8c110b7232 Add 'Release notes' and 'Changelog' links to PyPI [CI skip] 2020-12-02 18:15:09 +02:00
Hugo van Kemenade
036d90cc48
Merge branch 'master' into update-releasing 2020-12-01 11:06:32 +02:00
Andrew Murray
619a7b9f8a
Merge pull request #5060 from hugovk/rm-eol
CI: Remove soon-EOL Amazon Linux 1 and CentOS 6
2020-12-01 00:01:07 +11:00
Hugo van Kemenade
78fd2749b1
Merge pull request #5070 from radarhere/raqm
Updated libraqm to 0.7.1
2020-11-29 18:24:04 +02:00
Andrew Murray
ce1e73e5a8 Updated libraqm to 0.7.1 2020-11-30 01:20:51 +11:00
Hugo van Kemenade
874f3966cb
Merge pull request #5068 from radarhere/codeblock
Corrected documentation syntax
2020-11-28 10:06:59 +02:00
Andrew Murray
cf9158f635 Corrected syntax [ci skip] 2020-11-28 12:10:20 +11:00
Hugo van Kemenade
e99bc4aabe
Merge pull request #5067 from radarhere/macos
Updated macOS tested Pillow versions
2020-11-28 00:13:23 +02:00
Hugo van Kemenade
aa7b33869b
Merge pull request #5065 from radarhere/libimagequant
Updated libimagequant to 2.13.1
2020-11-27 11:36:38 +02:00
Hugo van Kemenade
a698725750
Merge pull request #5066 from radarhere/releasing
Updated instructions now that draft releases may exist
2020-11-27 11:36:07 +02:00
Andrew Murray
3d80b74342 Updated macOS tested Pillow versions [ci skip] 2020-11-27 18:50:31 +11:00
Andrew Murray
6f64eef699 Updated instructions now that draft releases may exist [ci skip] 2020-11-27 15:12:14 +11:00
Hugo van Kemenade
997ec657b3
Merge pull request #5058 from hugovk/add-release-drafter
Add Release Drafter to draft releases
2020-11-26 21:22:12 +02:00
Hugo van Kemenade
6a9c5fc608
Merge pull request #5064 from nulano/gha
Update FriBiDi to 1.0.10
2020-11-26 21:20:59 +02:00
Hugo van Kemenade
030e1b79ea
Merge pull request #5061 from nulano/gha-mac
GHA: Install Raqm on macOS
2020-11-26 10:28:38 +02:00
nulano
dd1a514346 update FriBiDi to 1.0.10 2020-11-25 21:57:51 +00:00
mergify[bot]
9923d4974c
Merge pull request #5063 from radarhere/libraqm
Updated libraqm to 0.7.1
2020-11-25 21:04:23 +00:00
Andrew Murray
fba3ece341
Updated libraqm to 0.7.1 2020-11-26 01:01:38 +11:00
Hugo van Kemenade
b129902cbe
Merge pull request #63 from nulano/ft-eol 2020-11-25 12:56:09 +02:00
nulano
86993df834 remove duplicate values 2020-11-25 07:38:13 +00:00
nulano
74048f9b4f remove FT 2.3 from tests 2020-11-25 07:27:11 +00:00
nulano
ece157b09c install raqm on macos 2020-11-25 06:58:13 +00:00
Hugo van Kemenade
5abdbe1231 Sort for easier reference 2020-11-25 00:02:34 +02:00
Hugo van Kemenade
e377d243b1 Remove soon-EOL Amazon Linux 1 and CentOS 6 2020-11-24 23:48:01 +02:00
Hugo van Kemenade
e095391a35 Add release drafter to draft releases 2020-11-24 18:56:50 +02:00
Hugo van Kemenade
8c0047977e
Merge pull request #5057 from nulano/gha-cache-vs
GHA: Make windows cache depend on VS version
2020-11-24 15:42:24 +02:00
nulano
a897054930 GHA: make windows cache depend on VS version 2020-11-24 13:02:33 +00:00
Hugo van Kemenade
dea2eb54af Set background-color depending on dark/light mode 2020-11-24 13:10:01 +02:00
Hugo van Kemenade
effb351d09 Don't add light mode bg to 4th level menu items [CI skip] 2020-11-24 12:26:06 +02:00
Hugo van Kemenade
0095ee050f
Merge pull request #5055 from hugovk/docs-logo-text
Docs: add logo with text to menu
2020-11-23 09:35:52 +02:00
Hugo van Kemenade
1b4ecdf8cd
Merge pull request #4965 from radarhere/warning 2020-11-22 23:56:46 +02:00
Andrew Murray
f835c57538 Updated libimagequant to 2.13.1 2020-11-23 07:08:05 +11:00
Hugo van Kemenade
12918605c1 Add logo to docs [CI skip] 2020-11-22 12:41:17 +02:00
Hugo van Kemenade
dac4896639
Merge pull request #5052 from nulano/gha-win
Add line breaks in test-windows
2020-11-21 16:33:19 +02:00
Nulano
7383e77bf6 add line breaks in test-windows 2020-11-21 15:07:31 +01:00
Hugo van Kemenade
2b87ccae89
Merge pull request #5026 from radarhere/unused
Removed unused C methods
2020-11-18 14:46:36 +02:00
Hugo van Kemenade
631e0b95c8
Merge pull request #5044 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 2.0.6
2020-11-18 10:23:14 +02:00
Hugo van Kemenade
626051f24f
Merge pull request #5029 from hugovk/less-travis 2020-11-18 10:21:36 +02:00
Andrew Murray
a8b6fc84a3 Updated libjpeg-turbo to 2.0.6 2020-11-17 23:34:55 +11:00
Hugo van Kemenade
4462509050
Merge pull request #169 from nulano/gha 2020-11-16 20:09:50 +02:00
Hugo van Kemenade
ce70a3d43c
Merge pull request #5040 from radarhere/bcp
Fixed link formatting
2020-11-14 21:56:52 +02:00
Andrew Murray
4f0b9185a3 Fixed link formatting 2020-11-14 08:41:44 +11:00
Hugo van Kemenade
0bb6a19cbf
Merge pull request #5037 from radarhere/formats
init() if one of the formats is unrecognised
2020-11-11 13:33:39 +02:00
Andrew Murray
7e2015c75f init() if one of the formats is unrecognised 2020-11-11 21:05:57 +11:00
Andrew Murray
ff8ba318a2 Updated to Python 3.9 2020-11-07 02:30:41 +01:00
Hugo van Kemenade
409877d22d
Merge pull request #62 from nulano/less-travis
Set XVFB bit depth
2020-11-04 16:38:32 +02:00
nulano
d8d8a2c74d set xvfb bit depth 2020-11-04 14:15:38 +00:00
Hugo van Kemenade
85e991e5b6 Don't include test-skipping 'except' in coverage 2020-11-04 16:05:51 +02:00
Hugo van Kemenade
2d6e51e26c
Merge pull request #5031 from radarhere/append_images
PNG supports append_images
2020-11-04 15:07:52 +02:00
Hugo van Kemenade
2bcd534b16
Merge pull request #5030 from radarhere/pilfont
Link directly to pilfont script
2020-11-04 15:07:06 +02:00
Andrew Murray
6806fa1a20 PNG supports append_images [ci skip] 2020-11-04 22:56:14 +11:00
Andrew Murray
1ced7b7c92 Document ICO append_images [ci skip] 2020-11-04 22:52:45 +11:00
Andrew Murray
2ae597c357 Renamed variable to match IcnsImagePlugin 2020-11-04 22:42:53 +11:00
Andrew Murray
a357ff12ad Simplified test 2020-11-04 22:39:25 +11:00
Andrew Murray
5b2da5f7b0 Link directly to pilfont script [ci skip] 2020-11-04 21:52:00 +11:00
Hugo van Kemenade
8ec8d23af4 Install Qt on GHA 2020-11-03 18:49:16 +02:00
Hugo van Kemenade
b01567fb0b Fix setting PYTHONOPTIMIZE env var 2020-11-03 17:31:59 +02:00
Hugo van Kemenade
ddd363f7df Remove excess Travis CI jobs 2020-11-02 23:06:39 +02:00
Hugo van Kemenade
c8aeab25b4
Merge pull request #5027 from radarhere/test_images
Updated extra test images list
2020-11-02 16:25:17 +02:00
Andrew Murray
1ff21dd5b0 Updated extra test images list 2020-11-02 21:47:57 +11:00
Andrew Murray
3a5c336a4b
Merge pull request #4980 from nulano/3.10
GHA: Add 3.10-dev
2020-11-02 21:02:35 +11:00
Andrew Murray
8593e17b05 Removed unused methods 2020-11-02 20:58:51 +11:00
Andrew Murray
662f56563c
Merge pull request #5002 from radarhere/freemono
Document FreeMono license
2020-11-01 14:41:33 +11:00
Andrew Murray
d7245eae23
Capitalisation
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-11-01 14:07:31 +11:00
Andrew Murray
63e8420ef6
Removed docstring sentence
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-11-01 14:05:52 +11:00
Andrew Murray
b214c2d73e
Changed wording 2020-11-01 14:02:15 +11:00
nulano
2dc6e41167 install Tcl/Tk for PyPy on macOS 2020-10-31 21:42:25 +00:00
Hugo van Kemenade
1ce8181d84
Merge pull request #5025 from radarhere/license
Refer to "HPND License" instead of "PIL Software License"
2020-10-31 11:17:54 +02:00
Hugo van Kemenade
804d796415
Merge pull request #5024 from radarhere/fedora
Added Fedora 33 to CI targets
2020-10-31 10:54:06 +02:00
Andrew Murray
732bf12fd6
Merge branch 'master' into 3.10 2020-10-31 15:16:46 +11:00
Andrew Murray
81078e8a0d Refer to "HPND License" instead of "PIL Software License" 2020-10-31 14:51:41 +11:00
Andrew Murray
84052eb8c5 Added Fedora 33 to CI targets [ci skip] 2020-10-31 14:20:14 +11:00
Andrew Murray
05fa2c6a89
Merge pull request #5022 from hugovk/update-travis-links
Update Travis CI links for .com
2020-10-31 11:11:28 +11: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
920cc46f5a
Merge pull request #5023 from radarhere/python39 2020-10-31 01:34:57 +02:00
Andrew Murray
9d4543e3db
Merge pull request #5021 from hugovk/add-fedora-33
Add Fedora 33
2020-10-31 10:13:06 +11:00
Hugo van Kemenade
586ad28c7f Update for travis-ci.com [CI skip] 2020-10-30 21:42:09 +02:00
Hugo van Kemenade
384c6c586a Update Travis CI status check for .com 2020-10-30 21:28:35 +02:00
Hugo van Kemenade
c34cf8ccb9 Update Travis CI links for .com 2020-10-30 21:20:20 +02:00
Andrew Murray
c309c64d0a Updated Python for doccheck to 3.9 2020-10-30 23:51:41 +11:00
Andrew Murray
57ac10a3fa Updated Python for diffcover to 3.9 2020-10-30 23:51:01 +11:00
Hugo van Kemenade
cfe805c436
Merge pull request #5019 from radarhere/python_pip 2020-10-30 14:49:36 +02:00
Andrew Murray
0823b37d41 Removed PIP_DIR variable 2020-10-30 19:25:50 +11:00
nulano
b3f1056eaa put PyPy first 2020-10-29 18:24:50 +00:00
Hugo van Kemenade
4f846ca40b
Merge pull request #5018 from radarhere/ci_targets
Updated CI targets
2020-10-29 19:01:25 +02:00
Andrew Murray
6a50e1076a Invoke pip using Python 2020-10-29 22:41:29 +11:00
Andrew Murray
b3f0f9ae8c Updated CI targets [ci skip] 2020-10-29 18:40:46 +11:00
Andrew Murray
a348a97282
Merge pull request #5014 from hugovk/appveyor-3.9
AppVeyor: Test on Python 3.9 final
2020-10-29 18:33:28 +11:00
Hugo van Kemenade
1aecbc2376
Merge pull request #5016 from radarhere/webp_save_all
Describe effect of WebP save_all
2020-10-28 19:44:13 +02:00
Andrew Murray
d171afc19e Describe effect of WebP save_all [ci skip] 2020-10-28 22:03:27 +11:00
Hugo van Kemenade
1b3685aedd Test on Python 3.9 final 2020-10-27 21:54:04 +02:00
Hugo van Kemenade
91de1880b3 Add Fedora 33 2020-10-27 21:47:06 +02:00
Hugo van Kemenade
904e0bbd3e
Merge pull request #5013 from radarhere/python39
Updated CI targets
2020-10-27 21:43:49 +02:00
Andrew Murray
5eab56860b Updated CI targets [ci skip] 2020-10-27 21:12:51 +11:00
Andrew Murray
76d0951575
Merge pull request #5010 from hugovk/add-3.9
Travis CI: Test on Python 3.9 final
2020-10-27 09:50:13 +11:00
Hugo van Kemenade
3fca42f27d Test on Python 3.9 final 2020-10-26 22:15:20 +02:00
Hugo van Kemenade
8dfc0364fe
Merge pull request #5007 from radarhere/text
Clarified that "text" must be a string
2020-10-25 22:42:38 +02:00
Andrew Murray
3581600bf3 Clarified that "text" must be a string [ci skip] 2020-10-26 06:58:20 +11:00
Andrew Murray
30a8b45b4e
Merge pull request #5006 from hugovk/update-release-checklist
Releasing: Add a 'git push' to point release, adjust MD formatting
2020-10-26 06:34:52 +11:00
Hugo van Kemenade
25be336457 Add a 'git push' to point release, adjust MD formatting for issues [CI skip] 2020-10-25 14:42:31 +02:00
Hugo van Kemenade
052ffdbb4b
Merge pull request #5004 from radarhere/tested
Updated macOS tested Pillow versions
2020-10-24 08:13:30 +03:00
nulano
f33661a80f create event is redundant 2020-10-24 03:17:17 +01:00
Andrew Murray
07cfe1d0d0 Updated macOS tested Pillow versions [ci skip] 2020-10-24 13:14:51 +11: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
Andrew Murray
d1650cb2b3 Document FreeMono license [ci skip] 2020-10-23 21:08:06 +11:00
Hugo van Kemenade
95d0134035
Merge pull request #5001 from nulano/gha-replace
CI: Replace test images from pillow-depends
2020-10-23 08:25:53 +03:00
Andrew Murray
82c8b76a36 Update CHANGES.rst [ci skip] 2020-10-23 08:22:17 +11:00
Hugo van Kemenade
464f08ee52 Pillow -> 8.0.1 2020-10-22 18:39:23 +03:00
nulano
ece120d63c replace test images when copying from pillow-depends 2020-10-22 16:01:01 +01:00
Hugo van Kemenade
23b747c56a
Merge pull request #5000 from hugovk/add-8.0.1 2020-10-22 17:23:11 +03:00
Hugo van Kemenade
ac348ea3b1
Clarify wording [CI skip]
Co-authored-by: nulano <nulano@nulano.eu>
2020-10-22 17:09:20 +03:00
Hugo van Kemenade
558b2e6cf6 Add release notes for 8.0.1 2020-10-22 15:47:02 +03:00
Hugo van Kemenade
50f0add12e
Merge pull request #4998 from radarhere/freetype
Updated freetype to 2.10.4
2020-10-21 09:54:39 +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
Andrew Murray
919fdcc49c Updated freetype to 2.10.4 2020-10-20 19:55:44 +11:00
nulano
2586b7ddef add tests for subsampled jpeg2000 image decoding 2020-10-20 07:16:28 +01:00
nulano
4f4c3b34f8 jpeg2000: add subsampling decoder support 2020-10-20 07:16:24 +01:00
Hugo van Kemenade
834821f84f
Merge pull request #4992 from radarhere/egg2
Clean up dist in release-test
2020-10-19 15:06:41 +03:00
Hugo van Kemenade
5089330c84
Merge pull request #4994 from radarhere/libimagequant
Updated libimagequant to 2.13.0
2020-10-19 14:59:34 +03:00
Andrew Murray
bd65c8ebb5 Updated libimagequant to 2.13.0 2020-10-19 22:25:57 +11:00
Hugo van Kemenade
d0e2d03411
Merge pull request #4993 from radarhere/antivirus
Moved string_dimension image to pillow-depends
2020-10-19 14:25:05 +03:00
Andrew Murray
f886bc973b Moved string_dimension image to pillow-depends 2020-10-19 21:32:56 +11:00
Andrew Murray
0045cca027 Clean up dist in release-test 2020-10-19 07:22:24 +11:00
Hugo van Kemenade
9158037592
Merge pull request #4988 from jdufresne/internal-link
Fix internal Sphinx link to installation doc
2020-10-17 22:38:23 +03:00
gofr
4dc195333e fixup! De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables 2020-10-17 20:45:54 +02:00
Jon Dufresne
eb460a2ac8 Fix internal Sphinx link to installation doc
Fixes linkcheck warnings:

    handbook/image-file-formats.rst:563: [broken] ../installation.html:
    releasenotes/4.2.0.rst:7: [broken] ../installation.html:
2020-10-17 11:23:58 -07:00
gofr
9980981c2e De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables
Re-order the JPEG quantization tables to normal order when
loading. This wastes a few CPU cycles if you don't need them.
But it has the advantage of hiding the zigzag order JPEG
implementation detail of these tables completely from Pillow
users.

This difference has led to cases where:
* arrays in zigzag order were taken from a dict and passed
  directly as a qtables parameter, causing them to be "zigzagged"
  again by libjpeg.
* dicts with lists in normal order being passed to
  JpegImagePlugin.convert_dict_qtables, causing them to be
  unnecessarily "de-zigzagged".
2020-10-17 20:20:59 +02:00
Hugo van Kemenade
7b80e69ed2
Merge pull request #4986 from radarhere/cache
Revert "chown pip wheels cache on ppc64le as well"
2020-10-17 16:52:30 +03:00
Andrew Murray
f846025ff5 Revert "chown pip wheels cache on ppc64le as well"
This reverts commit 93a743d593.
2020-10-17 23:34:08 +11:00
Andrew Murray
3da6836980
Merge pull request #4985 from hugovk/rm-fedora-31
Remove soon-EOL Fedora 31
2020-10-17 09:07:27 +11:00
Hugo van Kemenade
5505da4877 Remove soon-EOL Fedora 31 2020-10-16 21:04:45 +03:00
Andrew Murray
76f8698b2c Update CHANGES.rst [ci skip] 2020-10-16 20:05:27 +11:00
Hugo van Kemenade
970e862268
Merge pull request #4984 from nulano/pypy
GHA: Remove obsolete code for old PyPy
2020-10-16 11:40:54 +03:00
nulano
17ed3efda6 GHA: remove obsolete code for old PyPy 2020-10-16 03:38:58 +01:00
Hugo van Kemenade
42e23ff4d1 Replace viewdoc with markdown2 and twine check 2020-10-15 14:39:49 +03:00
Hugo van Kemenade
b074d87179
Merge pull request #4760 from qiankanglai/dds-rgba8888
Support raw rgba8888 for dds
2020-10-15 08:10:01 +03:00
nulano
b305f99416 skip numpy on 3.10-dev due to wheel#354 2020-10-14 21:12:48 +01:00
nulano
bdcc48f0a2 skip wheels on 3.10-dev due to wheel#354 2020-10-14 21:12:00 +01:00
nulano
26cfe04fea fix PY_SSIZE_T_CLEAN in display.c 2020-10-14 21:12:00 +01:00
nulano
1e4d81f160 add Python 3.10-dev to GHA 2020-10-14 19:57:13 +01:00
Hugo van Kemenade
7a20ef7818 8.1.0.dev0 version bump 2020-10-14 21:23:45 +03:00
Hugo van Kemenade
c36f7f69bd Pillow -> 8.0.0 2020-10-14 19:16:05 +03:00
Andrew Murray
c2890d1f10 Moved warning to end of execution 2020-10-12 18:38:36 +11: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
Kanglai Qian
b5c59878da support raw rgba8888 for dds 2020-07-07 00:22:57 +08: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
Meithal
096d2bf64a Coverage change fix 2020-06-12 18:48:15 +02:00
Meithal
bed2ed7438 Fixes BLP1 picture handling 2020-06-12 09:08:20 +02: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
Andrew Murray
8c37960412 Merge remote-tracking branch 'radarhere/icns' 2020-05-11 20:06:48 +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
ziplantil
4ca8a3507d
commit suggestion; update src/PIL/IcoImagePlugin.py
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-04-20 12:08:41 +03:00
ziplantil
39f4738775 lint 2020-04-19 16:54:53 +03:00
ziplantil
52b9b4310c add test for ico append_images 2020-04-19 16:45:12 +03:00
ziplantil
07b24c6e6e add append_images support for ico, much like icns 2020-04-19 16:32:58 +03:00
Andrew Murray
9e9e136f54 Do not save two temporary files for the same size 2020-04-07 21:42:23 +10:00
Andrew Murray
84b7e268f9 Merged HEADER_SIZE into HEADERSIZE 2020-04-07 21:18:37 +10:00
Andrew Murray
a283102ff4 ICNS can now be saved on non-macOS platforms [ci skip] 2020-04-07 21:17:09 +10:00
Andrew Murray
65b735d9cb Marked to_int() as private 2020-04-07 21:13:46 +10:00
Andrew Murray
a618e2ca1c Fixed big-endian saving 2020-04-07 21:13:40 +10:00
Jingle
10669b17b9
Merge pull request #1 from radarhere/icns
Save in ICNS format to support all operating systems
2020-04-07 14:10:51 +08:00
panjing
cc1e78ccdf Remove unused packages 2020-04-07 13:59:27 +08:00
Andrew Murray
ea98bb6163 Restored append_images 2020-04-04 15:02:19 +11:00
Andrew Murray
5ef382f612 Test all operating systems 2020-04-04 15:02:15 +11:00
Andrew Murray
4500acb274 Lint fixes 2020-04-04 15:02:02 +11:00
panjing
b685c18e95 Save in icns format to support all operating systems. 2020-04-04 11:22:11 +08: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
1071 changed files with 85859 additions and 39882 deletions

View File

@ -1,93 +0,0 @@
version: '{build}'
image: Visual Studio 2017
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
PIP_DIR: Scripts
TEST_OPTIONS:
DEPLOY: YES
matrix:
- PYTHON: C:/Python38
ARCHITECTURE: x86
- PYTHON: C:/Python36-x64
ARCHITECTURE: x64
install:
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip
- 7z x pillow-depends.zip -oc:\
- mv c:\pillow-depends-master c:\pillow-depends
- xcopy /s c:\pillow-depends\test_images\* c:\pillow\tests\images
- 7z x ..\pillow-depends\nasm-2.14.02-win64.zip -oc:\
- ..\pillow-depends\gs9533w32.exe /S
- path c:\nasm-2.14.02;C:\Program Files (x86)\gs\gs9.53.3\bin;%PATH%
- cd c:\pillow\winbuild\
- ps: |
c:\python37\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:
- ps: |
c:\pillow\winbuild\build\build_pillow.cmd install
$host.SetShouldExit(0)
- cd c:\pillow
- '%PYTHON%\%EXECUTABLE% selftest.py --installed'
test_script:
- cd c:\pillow
- '%PYTHON%\%PIP_DIR%\pip.exe install pytest pytest-cov'
- c:\"Program Files (x86)"\"Windows Kits"\10\Debuggers\x86\gflags.exe /p /enable %PYTHON%\%EXECUTABLE%
- '%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:
- pip install codecov
- codecov --file coverage.xml --name %PYTHON% --flags AppVeyor
matrix:
fast_finish: true
cache:
- '%LOCALAPPDATA%\pip\Cache'
artifacts:
- path: pillow\dist\*.egg
name: egg
- path: pillow\dist\*.wheel
name: wheel
before_deploy:
- cd c:\pillow
- '%PYTHON%\%PIP_DIR%\pip.exe install wheel'
- cd c:\pillow\winbuild\
- c:\pillow\winbuild\build\build_pillow.cmd bdist_wheel
- cd c:\pillow
- ps: Get-ChildItem .\dist\*.* | % { 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: master
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

@ -1,19 +1,5 @@
#!/bin/bash
# gather the coverage data
pip3 install codecov
if [[ $MATRIX_DOCKER ]]; then
coverage xml --ignore-errors
else
coverage xml
fi
if [[ $TRAVIS ]]; then
codecov --flags TravisCI
fi
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then
# Coverage and quality reports on just the latest diff.
depends/diffcover-install.sh
depends/diffcover-run.sh
fi
python3 -m pip install coverage
python3 -m coverage xml

View File

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

View File

@ -2,62 +2,74 @@
aptget_update()
{
if [ ! -z $1 ]; then
if [ -n "$1" ]; then
echo ""
echo "Retrying apt-get update..."
echo ""
fi
output=`sudo apt-get update 2>&1`
output=$(sudo apt-get update 2>&1)
echo "$output"
if [[ $output == *[WE]:\ * ]]; then
return 1
fi
}
aptget_update || aptget_update retry || aptget_update retry
if [[ $(uname) != CYGWIN* ]]; then
aptget_update || aptget_update retry || aptget_update retry
fi
set -e
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
cmake imagemagick libharfbuzz-dev libfribidi-dev
if [[ $TRAVIS_CPU_ARCH == "s390x" || $TRAVIS_CPU_ARCH == "ppc64le" ]]; then sudo chown $USER ~/.cache/pip/wheels ; fi
pip install --upgrade pip
PYTHONOPTIMIZE=0 pip install cffi
pip install coverage
pip install olefile
pip install -U pytest
pip install -U pytest-cov
pip install pyroma
pip install test-image-results
pip install numpy
# TODO Remove when 3.8 / 3.9 / PyPy3 includes setuptools 49.3.2+:
if [ "$GHA_PYTHON_VERSION" == "3.8" ]; then pip install -U "setuptools>=49.3.2" ; fi
if [ "$GHA_PYTHON_VERSION" == "3.9" ]; then pip install -U "setuptools>=49.3.2" ; fi
if [ "$TRAVIS_PYTHON_VERSION" == "pypy3.6-7.3.1" ]; then pip install -U "setuptools>=49.3.2" ; fi
if [[ $TRAVIS_PYTHON_VERSION == 3.* ]]; then
# arm64, ppc64le, s390x CPUs:
# "ERROR: Could not find a version that satisfies the requirement pyqt5"
if [[ $TRAVIS_CPU_ARCH == "amd64" ]]; then
sudo apt-get -qq install libxcb-xinerama0 pyqt5-dev-tools
pip install pyqt5
fi
if [[ $(uname) != CYGWIN* ]]; then
sudo apt-get -qq install libfreetype6-dev liblcms2-dev libtiff-dev python3-tk\
ghostscript libjpeg-turbo8-dev libopenjp2-7-dev\
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
sway wl-clipboard libopenblas-dev nasm
fi
# docs only on Python 3.8
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then pip install -r requirements.txt ; fi
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade wheel
python3 -m pip install coverage
python3 -m pip install defusedxml
python3 -m pip install ipython
python3 -m pip install olefile
python3 -m pip install -U pytest
python3 -m pip install -U pytest-cov
python3 -m pip install -U pytest-timeout
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
# webp
pushd depends && ./install_webp.sh && popd
if [[ $(uname) != CYGWIN* ]]; then
python3 -m pip install numpy
# libimagequant
pushd depends && ./install_imagequant.sh && popd
# PyQt6 doesn't support PyPy3
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
# TODO Update condition when pyqt6 supports free-threading
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
fi
# raqm
pushd depends && ./install_raqm.sh && popd
# 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
# extra test images
pushd depends && ./install_extra_test_images.sh && popd
# webp
pushd depends && ./install_webp.sh && popd
# libimagequant
pushd depends && ./install_imagequant.sh && popd
# raqm
pushd depends && ./install_raqm.sh && popd
# libavif
pushd depends && ./install_libavif.sh && popd
# extra test images
pushd depends && ./install_extra_test_images.sh && popd
else
cd depends && ./install_extra_test_images.sh && cd ..
fi

View File

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

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

@ -2,9 +2,6 @@
set -e
python -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests
python3 -c "from PIL import Image"
# Docs
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ] && [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then
make doccheck
fi
python3 -bb -m pytest -vv -x -W always --cov PIL --cov Tests --cov-report term --cov-report xml Tests $REVERSE

41
.clang-format Normal file
View File

@ -0,0 +1,41 @@
# A clang-format style that approximates Python's PEP 7
# Useful for IDE integration
Language: C
BasedOnStyle: Google
AlwaysBreakAfterReturnType: All
AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: BlockIndent
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Attach
ColumnLimit: 88
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
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
TabWidth: 4
UseTab: Never

View File

@ -2,19 +2,21 @@
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover
# Don't complain if non-runnable code isn't run:
exclude_also =
# Don't complain if non-runnable code isn't run
if 0:
if __name__ == .__main__.:
# Don't complain about debug code
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]
omit =
Tests/32bit_segfault_check.py
Tests/bench_cffi_access.py
Tests/check_*.py
checks/*.py
Tests/createfontdatachunk.py

View File

@ -13,10 +13,9 @@ indent_style = space
trim_trailing_whitespace = true
[*.yml]
[*.{toml,yml}]
# Two-space indentation
indent_size = 2
indent_style = space
# Tab indentation (no size specified)
[Makefile]

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

@ -4,20 +4,21 @@ Bug fixes, feature additions, tests, documentation and more can be contributed v
## Bug fixes, feature additions, etc.
Please send a pull request to the master branch. Please include [documentation](https://pillow.readthedocs.io) and [tests](../Tests/README.rst) for new features. Tests or documentation without bug fixes or feature additions are welcome too. Feel free to ask questions [via issues](https://github.com/python-pillow/Pillow/issues/new), [Gitter](https://gitter.im/python-pillow/Pillow) or irc://irc.freenode.net#pil
Please send a pull request to the `main` branch. Please include [documentation](https://pillow.readthedocs.io) and [tests](../Tests/README.rst) for new features. Tests or documentation without bug fixes or feature additions are welcome too. Feel free to ask questions [via issues](https://github.com/python-pillow/Pillow/issues/new), [discussions](https://github.com/python-pillow/Pillow/discussions/new), [Gitter](https://gitter.im/python-pillow/Pillow) or irc://irc.freenode.net#pil
- Fork the Pillow repository.
- Create a branch from master.
- Create a branch from `main`.
- Develop bug fixes, features, tests, etc.
- Run the test suite. You can enable [Travis CI](https://travis-ci.org/profile/) 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.
- Create a pull request to pull the changes from your branch to the Pillow master.
- 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`.
### Guidelines
- Separate code commits from reformatting commits.
- Provide tests for any newly added code.
- Follow PEP 8.
- When committing only documentation changes please include [ci skip] in the commit message to avoid running tests on Travis-CI and 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.
## Reporting Issues
@ -34,4 +35,4 @@ The best reproductions are self-contained scripts with minimal dependencies. If
## Security vulnerabilities
Please see our [security policy](https://github.com/python-pillow/Pillow/blob/master/.github/SECURITY.md).
Please see our [security policy](https://github.com/python-pillow/Pillow/blob/main/.github/SECURITY.md).

2
.github/FUNDING.yml vendored
View File

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

View File

@ -48,6 +48,21 @@ Thank you.
* Python:
* 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.

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]]
```

4
.github/mergify.yml vendored
View File

@ -7,8 +7,8 @@ pull_request_rules:
- status-success=Test Successful
- status-success=Docker Test Successful
- status-success=Windows Test Successful
- status-success=continuous-integration/appveyor/pr
- status-success=continuous-integration/travis-ci/pr
- status-success=MinGW
- status-success=Cygwin Test Successful
actions:
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
}
]
}
]
}

27
.github/release-drafter.yml vendored Normal file
View File

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

21
.github/renovate.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"labels": [
"Dependency"
],
"packageRules": [
{
"groupName": "github-actions",
"matchManagers": [
"github-actions"
],
"separateMajorMinor": false
}
],
"schedule": [
"* * 3 * *"
]
}

62
.github/workflows/cifuzz.yml vendored Normal file
View File

@ -0,0 +1,62 @@
name: CIFuzz
on:
push:
branches:
- "**"
paths:
- ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
- "**.c"
- "**.h"
pull_request:
paths:
- ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
- "**.c"
- "**.h"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'pillow'
language: python
dry-run: false
- name: Run Fuzzers
id: run
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'pillow'
fuzz-seconds: 600
language: python
dry-run: false
- name: Upload New Crash
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
- name: Upload Legacy Crash
uses: actions/upload-artifact@v4
if: steps.run.outcome == 'success'
with:
name: crash
path: ./out/crash*
- name: Fail on legacy crash
if: success()
run: |
[ ! -e out/crash-* ]
echo No legacy crash detected

71
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,71 @@
name: Docs
on:
push:
branches:
- "**"
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "src/PIL/**"
pull_request:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "src/PIL/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 1
jobs:
build:
runs-on: ubuntu-latest
name: Docs
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
cache-dependency-path: |
".ci/*.sh"
"pyproject.toml"
- name: Build system information
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
run: |
.ci/install.sh
env:
GHA_PYTHON_VERSION: "3.x"
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
- name: Build
run: |
.ci/build.sh
- name: Docs
run: |
make doccheck

View File

@ -1,6 +1,16 @@
name: Lint
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
env:
FORCE_COLOR: 1
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
@ -10,18 +20,12 @@ jobs:
name: Lint
steps:
- uses: actions/checkout@v2
- name: pip cache
uses: actions/cache@v2
- uses: actions/checkout@v4
with:
path: ~/.cache/pip
key: lint-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
lint-pip-
persist-credentials: false
- name: pre-commit cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: lint-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
@ -29,20 +33,24 @@ jobs:
lint-pre-commit-
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.x"
cache: pip
cache-dependency-path: "setup.py"
- name: Build system information
run: python .github/workflows/system-info.py
run: python3 .github/workflows/system-info.py
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U tox
python3 -m pip install -U pip
python3 -m pip install -U tox
- name: Lint
run: tox -e lint
env:
PRE_COMMIT_COLOR: always
- name: Mypy
run: tox -e mypy

View File

@ -2,22 +2,40 @@
set -e
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype openblas
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 pip install cffi
pip install coverage
pip install olefile
pip install -U pytest
pip install -U pytest-cov
pip install pyroma
pip install test-image-results
python3 -m pip install coverage
python3 -m pip install defusedxml
python3 -m pip install ipython
python3 -m pip install olefile
python3 -m pip install -U pytest
python3 -m pip install -U pytest-cov
python3 -m pip install -U pytest-timeout
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
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
pip install numpy
# TODO Remove when 3.8 / 3.9 includes setuptools 49.3.2+:
if [ "$GHA_PYTHON_VERSION" == "3.8" ]; then pip install -U "setuptools>=49.3.2" ; fi
if [ "$GHA_PYTHON_VERSION" == "3.9" ]; then pip install -U "setuptools>=49.3.2" ; fi
# libavif
pushd depends && ./install_libavif.sh && popd
# extra test images
pushd depends && ./install_extra_test_images.sh && popd

28
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Release drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
if: github.repository == 'python-pillow/Pillow'
runs-on: ubuntu-latest
steps:
# Drafts your next release notes as pull requests are merged into "main"
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

33
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Close stale issues
on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
stale:
if: github.repository_owner == 'python-pillow'
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: "Check issues"
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-labels: "Awaiting OP Action"
close-issue-message: "Closing this issue as no feedback has been received."
days-before-stale: 7
days-before-issue-close: 0
days-before-pr-close: -1
labels-to-remove-when-unstale: "Awaiting OP Action"

View File

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

150
.github/workflows/test-cygwin.yml vendored Normal file
View File

@ -0,0 +1,150 @@
name: Test Cygwin
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-minor-version: [9]
timeout-minutes: 40
name: Python 3.${{ matrix.python-minor-version }}
steps:
- name: Fix line endings
run: |
git config --global core.autocrlf input
- name: Checkout Pillow
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Cygwin
uses: cygwin/cygwin-install-action@v6
with:
packages: >
gcc-g++
ghostscript
git
ImageMagick
jpeg
libfreetype-devel
libimagequant-devel
libjpeg-devel
liblapack-devel
liblcms2-devel
libopenjp2-devel
libraqm-devel
libtiff-devel
libwebp-devel
libxcb-devel
libxcb-xinerama0
make
netpbm
perl
python3${{ matrix.python-minor-version }}-cython
python3${{ matrix.python-minor-version }}-devel
python3${{ matrix.python-minor-version }}-ipython
python3${{ matrix.python-minor-version }}-numpy
python3${{ matrix.python-minor-version }}-sip
python3${{ matrix.python-minor-version }}-tkinter
wget
xorg-server-extra
zlib-devel
- name: Add Lapack to PATH
uses: egor-tensin/cleanup-path@v4
with:
dirs: 'C:\cygwin\bin;C:\cygwin\lib\lapack'
- name: pip cache
uses: actions/cache@v4
with:
path: 'C:\cygwin\home\runneradmin\.cache\pip'
key: ${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-${{ hashFiles('.ci/install.sh') }}
restore-keys: |
${{ runner.os }}-cygwin-pip3.${{ matrix.python-minor-version }}-
- name: Build system information
run: |
dash.exe -c "python3 .github/workflows/system-info.py"
- name: Install dependencies
run: |
bash.exe .ci/install.sh
- name: Build
shell: bash.exe -eo pipefail -o igncr "{0}"
run: |
.ci/build.sh
- name: Test
run: |
bash.exe xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
- name: Prepare to upload errors
if: failure()
run: |
dash.exe -c "mkdir -p Tests/errors"
- name: Upload errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: errors
path: Tests/errors
- name: After success
run: |
bash.exe .ci/after_success.sh
rm C:\cygwin\bin\bash.EXE
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
flags: GHA_Cygwin
name: Cygwin Python 3.${{ matrix.python-minor-version }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
success:
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: Cygwin Test Successful
steps:
- name: Success
run: echo Cygwin Test Successful

View File

@ -1,37 +1,83 @@
name: Test Docker
on: [push, pull_request]
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
docker: [
# Run slower jobs first to give them a headstart and reduce waiting time
ubuntu-24.04-noble-ppc64le,
ubuntu-24.04-noble-s390x,
# Then run the remainder
alpine,
arch,
ubuntu-18.04-bionic-amd64,
ubuntu-20.04-focal-amd64,
debian-10-buster-x86,
centos-6-amd64,
centos-7-amd64,
centos-8-amd64,
amazon-1-amd64,
amazon-2-amd64,
fedora-31-amd64,
fedora-32-amd64,
amazon-2023-amd64,
arch,
centos-stream-9-amd64,
centos-stream-10-amd64,
debian-12-bookworm-x86,
debian-12-bookworm-amd64,
fedora-41-amd64,
fedora-42-amd64,
gentoo,
ubuntu-22.04-jammy-amd64,
ubuntu-24.04-noble-amd64,
]
dockerTag: [master]
dockerTag: [main]
include:
- docker: "ubuntu-24.04-noble-ppc64le"
qemu-arch: "ppc64le"
- docker: "ubuntu-24.04-noble-s390x"
qemu-arch: "s390x"
- docker: "ubuntu-24.04-noble-arm64v8"
os: "ubuntu-24.04-arm"
dockerTag: main
name: ${{ matrix.docker }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build system information
run: python .github/workflows/system-info.py
run: python3 .github/workflows/system-info.py
- name: Set up QEMU
if: "matrix.qemu-arch"
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.qemu-arch }}
- name: Docker pull
run: |
@ -39,30 +85,33 @@ jobs:
- name: Docker build
run: |
# The Pillow user in the docker container is UID 1000
sudo chown -R 1000 $GITHUB_WORKSPACE
# The Pillow user in the docker container is UID 1001
sudo chown -R 1001 $GITHUB_WORKSPACE
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
sudo chown -R runner $GITHUB_WORKSPACE
- name: After success
run: |
PATH="$PATH:~/.local/bin"
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__)))'`
docker stop pillow_container
sudo mkdir -p $pil_path
sudo cp src/PIL/*.py $pil_path
cd /Pillow
.ci/after_success.sh
env:
MATRIX_DOCKER: ${{ matrix.docker }}
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
flags: GHA_Docker
name: ${{ matrix.docker }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
success:
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: Docker Test Successful

94
.github/workflows/test-mingw.yml vendored Normal file
View File

@ -0,0 +1,94 @@
name: Test MinGW
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
MSYSTEM: MINGW64
CHERE_INVOKING: 1
timeout-minutes: 30
name: "MinGW"
steps:
- name: Checkout Pillow
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up shell
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH
shell: pwsh
- name: Install dependencies
run: |
pacman -S --noconfirm \
mingw-w64-x86_64-freetype \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-ghostscript \
mingw-w64-x86_64-lcms2 \
mingw-w64-x86_64-libavif \
mingw-w64-x86_64-libimagequant \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-libraqm \
mingw-w64-x86_64-libtiff \
mingw-w64-x86_64-libwebp \
mingw-w64-x86_64-openjpeg2 \
mingw-w64-x86_64-python-numpy \
mingw-w64-x86_64-python-olefile \
mingw-w64-x86_64-python-pip \
mingw-w64-x86_64-python-pytest \
mingw-w64-x86_64-python-pytest-cov \
mingw-w64-x86_64-python-pytest-timeout \
mingw-w64-x86_64-python-pyqt6
pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow
run: CFLAGS="-coverage" python3 -m pip install .
- name: Test Pillow
run: |
python3 selftest.py --installed
.ci/test.sh
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
flags: GHA_Windows
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

58
.github/workflows/test-valgrind.yml vendored Normal file
View File

@ -0,0 +1,58 @@
name: Test Valgrind
# like the Docker tests, but running valgrind only on *.c/*.h changes.
on:
push:
branches:
- "**"
paths:
- ".github/workflows/test-valgrind.yml"
- "**.c"
- "**.h"
pull_request:
paths:
- ".github/workflows/test-valgrind.yml"
- "**.c"
- "**.h"
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 }}
sudo chown -R runner $GITHUB_WORKSPACE

View File

@ -1,120 +1,170 @@
name: Test Windows
on: [push, pull_request]
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
jobs:
build:
runs-on: windows-2019
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
architecture: ["x86", "x64"]
python-version: ["pypy3.11", "3.10", "3.11", "3.12", ">=3.13.5", "3.14"]
architecture: ["x64"]
include:
- architecture: "x86"
platform-vcvars: "x86"
platform-msbuild: "Win32"
- architecture: "x64"
platform-vcvars: "x86_amd64"
platform-msbuild: "x64"
exclude:
# PyPy does not support 64-bit on Windows
- python-version: "pypy3"
architecture: "x64"
timeout-minutes: 30
# Test the oldest Python on 32-bit
- { python-version: "3.9", architecture: "x86" }
name: Python ${{ matrix.python-version }} ${{ matrix.architecture }}
timeout-minutes: 45
name: Python ${{ matrix.python-version }} (${{ matrix.architecture }})
steps:
- name: Checkout Pillow
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout cached dependencies
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
repository: python-pillow/pillow-depends
path: winbuild\depends
- name: Cache pip
uses: actions/cache@v2
- name: Checkout extra test images
uses: actions/checkout@v4
with:
path: ~\AppData\Local\pip\Cache
key:
${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-${{ hashFiles('**/.github/workflows/test-windows.yml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-
${{ runner.os }}-${{ matrix.python-version }}-
persist-credentials: false
repository: python-pillow/test-images
path: Tests\test-images
# sets env: pythonLocation
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
architecture: ${{ matrix.architecture }}
- name: Set up TCL
if: "contains(matrix.python-version, 'pypy')"
run: echo "TCL_LIBRARY=$env:pythonLocation\tcl\tcl8.5" >> $env:GITHUB_ENV
shell: pwsh
cache: pip
cache-dependency-path: ".github/workflows/test-windows.yml"
- name: Print build system information
run: python .github/workflows/system-info.py
run: python3 .github/workflows/system-info.py
- name: pip install wheel pytest pytest-cov
run: python -m pip install wheel pytest pytest-cov
- name: Upgrade pip
run: |
python3 -m pip install --upgrade pip
# TODO Remove when 3.8 / 3.9 includes setuptools 49.3.2+:
- name: Upgrade setuptools
if: "contains(matrix.python-version, '3.8') || contains(matrix.python-version, '3.9')"
run: python -m pip install -U "setuptools>=49.3.2"
- 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
id: install
run: |
7z x winbuild\depends\nasm-2.14.02-win64.zip "-o$env:RUNNER_WORKSPACE\"
echo "$env:RUNNER_WORKSPACE\nasm-2.14.02" >> $env:GITHUB_PATH
choco install nasm --no-progress
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
winbuild\depends\gs9533w32.exe /S
echo "C:\Program Files (x86)\gs\gs9.53.3\bin" >> $env:GITHUB_PATH
choco install ghostscript --version=10.5.1 --no-progress
echo "C:\Program Files\gs\gs10.05.1\bin" >> $env:GITHUB_PATH
xcopy /s winbuild\depends\test_images\* Tests\images\
# Install extra test images
xcopy /S /Y Tests\test-images\* Tests\images
# make cache key depend on VS version
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `
| find """catalog_buildVersion""" `
| ForEach-Object { $a = $_.split(" ")[1]; echo "vs=$a" >> $env:GITHUB_OUTPUT }
shell: pwsh
- name: Cache build
id: build-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: winbuild\build
key:
${{ hashFiles('winbuild\build_prepare.py') }}-${{ hashFiles('.github\workflows\test-windows.yml') }}-${{ env.pythonLocation }}
${{ hashFiles('winbuild\build_prepare.py') }}-${{ hashFiles('.github\workflows\test-windows.yml') }}-${{ env.pythonLocation }}-${{ steps.install.outputs.vs }}
- name: Prepare build
if: steps.build-cache.outputs.cache-hit != 'true'
run: |
& python.exe winbuild\build_prepare.py -v --python=$env:pythonLocation --srcdir
& python.exe winbuild\build_prepare.py -v
shell: pwsh
- name: Build dependencies / libjpeg-turbo
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libjpeg.cmd"
- name: Build dependencies / zlib
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_zlib.cmd"
- name: Build dependencies / LibTiff
- name: Build dependencies / xz
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libtiff.cmd"
run: "& winbuild\\build\\build_dep_xz.cmd"
- name: Build dependencies / WebP
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libwebp.cmd"
# for FreeType CBDT font support
- name: Build dependencies / LibTiff
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libtiff.cmd"
# for FreeType CBDT/SBIX font support
- name: Build dependencies / libpng
if: steps.build-cache.outputs.cache-hit != 'true'
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
- name: Build dependencies / brotli
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_brotli.cmd"
- name: Build dependencies / FreeType
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_freetype.cmd"
- name: Build dependencies / LCMS2
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_lcms2.cmd"
- name: Build dependencies / OpenJPEG
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_openjpeg.cmd"
@ -128,14 +178,13 @@ jobs:
- name: Build dependencies / HarfBuzz
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_harfbuzz.cmd"
# Raqm dependencies
- name: Build dependencies / FriBidi
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_fribidi.cmd"
- name: Build dependencies / Raqm
if: steps.build-cache.outputs.cache-hit != 'true'
run: "& winbuild\\build\\build_dep_libraqm.cmd"
# trim ~150MB x 9
# trim ~150MB for each job
- name: Optimize build cache
if: steps.build-cache.outputs.cache-hit != 'true'
run: rmdir /S /Q winbuild\build\src
@ -143,31 +192,31 @@ jobs:
- name: Build Pillow
run: |
$FLAGS=""
if ('${{ github.event_name }}' -eq 'push') { $FLAGS="--disable-imagequant" }
& winbuild\build\build_pillow.cmd $FLAGS install
$FLAGS="-C raqm=vendor -C fribidi=vendor"
cmd /c "winbuild\build\build_env.cmd && $env:pythonLocation\python.exe -m pip install -v $FLAGS .[tests]"
& $env:pythonLocation\python.exe selftest.py --installed
shell: pwsh
# failing with PyPy3
# skip PyPy for speed
- name: Enable heap verification
if: "!contains(matrix.python-version, 'pypy')"
run: "& 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x86\\gflags.exe' /p /enable $env:pythonLocation\\python.exe"
run: |
& reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\python.exe" /v "GlobalFlag" /t REG_SZ /d "0x02000000" /f
- name: Test Pillow
run: |
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
path %GITHUB_WORKSPACE%\winbuild\build\bin;%PATH%
.ci\test.cmd
shell: cmd
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
shell: pwsh
shell: bash
- name: Upload errors
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: errors
@ -179,101 +228,17 @@ jobs:
shell: pwsh
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
files: ./coverage.xml
flags: GHA_Windows
name: ${{ runner.os }} Python ${{ matrix.python-version }} ${{ matrix.architecture }}
- name: Build wheel
id: wheel
if: "github.event_name == 'push'"
run: |
for /f "tokens=3 delims=/" %%a in ("${{ github.ref }}") do echo ::set-output name=dist::dist-%%a
winbuild\\build\\build_pillow.cmd --disable-imagequant bdist_wheel
shell: cmd
- uses: actions/upload-artifact@v2
if: "github.event_name == 'push'"
with:
name: ${{ steps.wheel.outputs.dist }}
path: dist\*.whl
msys:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
mingw: ["MINGW32", "MINGW64"]
include:
- mingw: "MINGW32"
name: "MSYS2 MinGW 32-bit"
package: "mingw-w64-i686"
- mingw: "MINGW64"
name: "MSYS2 MinGW 64-bit"
package: "mingw-w64-x86_64"
defaults:
run:
shell: bash.exe --login -eo pipefail "{0}"
env:
MSYSTEM: ${{ matrix.mingw }}
CHERE_INVOKING: 1
timeout-minutes: 30
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v2
- name: Set up shell
run: echo "C:\msys64\usr\bin\" >> $env:GITHUB_PATH
shell: pwsh
- name: Install Dependencies
run: |
pacman -S --noconfirm \
${{ matrix.package }}-python3-cffi \
${{ matrix.package }}-python3-numpy \
${{ matrix.package }}-python3-olefile \
${{ matrix.package }}-python3-pip \
${{ matrix.package }}-python3-pyqt5 \
${{ matrix.package }}-python3-pytest \
${{ matrix.package }}-python3-pytest-cov \
${{ matrix.package }}-python3-setuptools \
${{ matrix.package }}-freetype \
${{ matrix.package }}-ghostscript \
${{ matrix.package }}-lcms2 \
${{ matrix.package }}-libimagequant \
${{ matrix.package }}-libjpeg-turbo \
${{ matrix.package }}-libraqm \
${{ matrix.package }}-libtiff \
${{ matrix.package }}-libwebp \
${{ matrix.package }}-openjpeg2 \
subversion
python3 -m pip install pyroma
pushd depends && ./install_extra_test_images.sh && popd
- name: Build Pillow
run: CFLAGS="-coverage" python3 setup.py build_ext install
- name: Test Pillow
run: |
python3 selftest.py --installed
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
- name: Upload coverage
run: |
python3 -m pip install codecov
bash <(curl -s https://codecov.io/bash) -F GHA_Windows
env:
CODECOV_NAME: ${{ matrix.name }}
name: ${{ runner.os }} Python ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
success:
needs: [build, msys]
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: Windows Test Successful
steps:

View File

@ -1,6 +1,34 @@
name: Test
on: [push, pull_request]
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
pull_request:
paths-ignore:
- ".github/workflows/docs.yml"
- ".github/workflows/wheels*"
- ".gitmodules"
- "docs/**"
- "wheels/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
COVERAGE_CORE: sysmon
FORCE_COLOR: 1
jobs:
build:
@ -9,54 +37,64 @@ jobs:
fail-fast: false
matrix:
os: [
"macos-latest",
"ubuntu-latest",
"macOS-latest",
]
python-version: [
"pypy3",
"pypy3.11",
"3.14t",
"3.14",
"3.13t",
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
"3.8",
"3.7",
"3.6",
]
include:
- python-version: "3.6"
env: PYTHONOPTIMIZE=1
- python-version: "3.7"
env: PYTHONOPTIMIZE=2
# Include new variables for Codecov
- os: ubuntu-latest
codecov-flag: GHA_Ubuntu
- os: macOS-latest
codecov-flag: GHA_macOS
- { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" }
- { python-version: "3.10", PYTHONOPTIMIZE: 2 }
# Free-threaded
- { python-version: "3.14t", disable-gil: true }
- { 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 }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: |
".ci/*.sh"
"pyproject.toml"
- name: Get pip cache dir
id: pip-cache
- name: Set PYTHON_GIL
if: "${{ matrix.disable-gil }}"
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/.ci/*.sh') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
echo "PYTHON_GIL=0" >> $GITHUB_ENV
- name: Build system information
run: python .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
if: startsWith(matrix.os, 'ubuntu')
@ -64,6 +102,7 @@ jobs:
.ci/install.sh
env:
GHA_PYTHON_VERSION: ${{ matrix.python-version }}
GHA_LIBIMAGEQUANT_CACHE_HIT: ${{ steps.cache-libimagequant.outputs.cache-hit }}
- name: Install macOS dependencies
if: startsWith(matrix.os, 'macOS')
@ -72,43 +111,56 @@ jobs:
env:
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
run: |
.ci/build.sh
- name: Test
run: |
.ci/test.sh
if [ $REVERSE ]; then
python3 -m pip install pytest-reverse
fi
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
xvfb-run -s '-screen 0 1024x768x24' sway&
export WAYLAND_DISPLAY=wayland-1
.ci/test.sh
else
.ci/test.sh
fi
env:
PYTHONOPTIMIZE: ${{ matrix.PYTHONOPTIMIZE }}
REVERSE: ${{ matrix.REVERSE }}
- name: Prepare to upload errors
if: failure()
run: |
mkdir -p Tests/errors
shell: pwsh
- name: Upload errors
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: errors
path: Tests/errors
- name: Docs
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == 3.8
run: |
pip install sphinx-removed-in sphinx-rtd-theme
make doccheck
- name: After success
run: |
.ci/after_success.sh
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
env:
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
uses: codecov/codecov-action@v5
with:
flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
success:
permissions:
contents: none
needs: build
runs-on: ubuntu-latest
name: Test Successful

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

15
.gitignore vendored
View File

@ -19,6 +19,7 @@ lib64/
parts/
sdist/
var/
wheelhouse/
*.egg-info/
.installed.cfg
*.egg
@ -79,8 +80,20 @@ docs/_build/
# JetBrains
.idea
# Extra test images installed from pillow-depends/test_images
# Extra test images installed from python-pillow/test-images
Tests/images/README.md
Tests/images/crash_1.tif
Tests/images/crash_2.tif
Tests/images/crash-81154a65438ba5aaeca73fd502fa4850fbde60f8.tif
Tests/images/string_dimension.tiff
Tests/images/jpeg2000
Tests/images/msp
Tests/images/picins
Tests/images/sunraster
# Test and dependency downloads
pillow-depends-main.zip
pillow-test-images.zip
# pyinstaller
*.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,43 +1,92 @@
repos:
- repo: https://github.com/psf/black
rev: e66be67b9b6811913470f70c28b4d50f94d05b22 # frozen: 20.8b1
- repo: https://github.com/astral-sh/ruff-pre-commit
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:
- id: black
args: ["--target-version", "py36"]
# Only .py files, until https://github.com/psf/black/issues/402 resolved
files: \.py$
types: []
- repo: https://github.com/timothycrosley/isort
rev: 377d260ffa6f746693f97b46d95025afc4bd8275 # frozen: 5.4.2
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: isort
- repo: https://github.com/asottile/yesqa
rev: 7a009f3ee493c796827ee334f9058b110a0e0db8 # frozen: v1.2.1
hooks:
- id: yesqa
- id: bandit
args: [--severity-level=high]
files: ^src/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: f30f4974a08a6b2f6a1eeaf30a4d501cf909163a # frozen: v1.1.9
rev: v1.5.5
hooks:
- id: remove-tabs
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.opt$)
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$|\.patch$)
- repo: https://gitlab.com/pycqa/flake8
rev: 05f6544aef321e2fee03a1277ce2eef8880fb927 # frozen: 3.8.3
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.7
hooks:
- id: flake8
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
- id: clang-format
types: [c]
exclude: ^src/thirdparty/
- repo: https://github.com/pre-commit/pygrep-hooks
rev: eae6397e4c259ed3d057511f6dd5330b92867e62 # frozen: v1.6.0
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: rst-backticks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: e1668fe86af3810fbca72b8653fe478e66a0afdc # frozen: v3.2.0
rev: v5.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-json
- id: check-toml
- 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
rev: v1.0.0
hooks:
- id: sphinx-lint
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.6.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
additional_dependencies: [trove-classifiers>=2024.10.12]
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.5.0
hooks:
- id: tox-ini-fmt
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
ci:
autoupdate_schedule: monthly

View File

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

View File

@ -1,70 +0,0 @@
dist: xenial
language: python
cache:
pip: true
directories:
- $HOME/.cache/pre-commit
notifications:
irc: "chat.freenode.net#pil"
# Run fast lint first to get fast feedback.
# Run slower CPUs next, to give them a headstart and reduce waiting time.
# Then run the remainder.
matrix:
fast_finish: true
include:
- python: "3.6"
name: "Lint"
env: LINT="true"
- python: "3.6"
arch: arm64
- python: "3.7"
arch: ppc64le
- python: "3.8"
arch: s390x
- python: "pypy3.6-7.3.1"
name: "PyPy3 Xenial"
- python: "3.9-dev"
name: "3.9-dev Xenial"
services: xvfb
- python: "3.8"
name: "3.8 Xenial"
services: xvfb
- python: '3.7'
name: "3.7 Xenial PYTHONOPTIMIZE=2"
env: PYTHONOPTIMIZE=2
services: xvfb
- python: '3.6'
name: "3.6 Xenial PYTHONOPTIMIZE=1"
env: PYTHONOPTIMIZE=1
services: xvfb
allow_failures:
- python: "3.9-dev"
install:
- |
if [ "$LINT" == "true" ]; then
pip install tox
else
.ci/install.sh;
fi
script:
- |
if [ "$LINT" == "true" ]; then
tox -e lint
else
.ci/build.sh
.ci/test.sh
fi
after_success:
- |
if [ "$LINT" == "" ]; then
.ci/after_success.sh
fi

File diff suppressed because it is too large Load Diff

10
LICENSE
View File

@ -1,20 +1,20 @@
The Python Imaging Library (PIL) is
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
Copyright © 2010-2020 by Alex Clark and contributors
Copyright © 2010 by Jeffrey A. Clark and contributors
Like PIL, Pillow is licensed under the open source PIL Software 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
documentation, you agree that you have read, understood, and will comply
with the following terms and conditions:
Permission to use, copy, modify, and distribute this software and its
associated documentation for any purpose and without fee is hereby granted,
Permission to use, copy, modify and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appears in all copies, and that
both that copyright notice and this permission notice appear in supporting
documentation, and that the name of Secret Labs AB or the author not be

View File

@ -5,24 +5,43 @@ include *.md
include *.py
include *.rst
include *.sh
include *.toml
include *.txt
include *.yaml
include .flake8
include LICENSE
include Makefile
include tox.ini
graft Tests
graft Tests/images
graft checks
graft patches
graft src
graft depends
graft winbuild
graft docs
graft _custom_build
# build/src control detritus
exclude .appveyor.yml
exclude .clang-format
exclude .coveragerc
exclude .editorconfig
exclude .readthedocs.yml
exclude codecov.yml
exclude renovate.json
exclude Tests/images/README.md
exclude Tests/images/crash*.tif
exclude Tests/images/string_dimension.tiff
global-exclude .git*
global-exclude *.pyc
global-exclude *.so
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

129
Makefile
View File

@ -1,70 +1,68 @@
.DEFAULT_GOAL := release-test
.DEFAULT_GOAL := help
.PHONY: clean
clean:
python3 setup.py clean
rm src/PIL/*.so || true
rm -r build || true
find . -name __pycache__ | xargs rm -r || true
BRANCHES=`git branch -a | grep -v HEAD | grep -v master | grep remote`
.PHONY: co
co:
-for i in $(BRANCHES) ; do \
git checkout -t $$i ; \
done
.PHONY: coverage
coverage:
pytest -qq
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
python3 -m pytest -qq
rm -r htmlcov || true
coverage report
python3 -c "import coverage" > /dev/null 2>&1 || python3 -m pip install coverage
python3 -m coverage report
.PHONY: doc
doc:
.PHONY: html
doc html:
$(MAKE) -C docs html
.PHONY: htmlview
htmlview:
$(MAKE) -C docs htmlview
.PHONY: htmllive
htmllive:
$(MAKE) -C docs htmllive
.PHONY: doccheck
doccheck:
$(MAKE) -C docs html
$(MAKE) doc
# Don't make our tests rely on the links in the docs being up every single build.
# We don't control them. But do check, and update them to the target of their redirects.
$(MAKE) -C docs linkcheck || true
.PHONY: docserve
docserve:
cd docs/_build/html && python3 -mSimpleHTTPServer 2> /dev/null&
cd docs/_build/html && python3 -m http.server 2> /dev/null&
.PHONY: help
help:
@echo "Welcome to Pillow development. Please use \`make <target>\` where <target> is one of"
@echo " clean remove build products"
@echo " coverage run coverage test (in progress)"
@echo " doc make html docs"
@echo " docserve run an http server on the docs directory"
@echo " html to make standalone HTML files"
@echo " inplace make inplace extension"
@echo " doc make HTML docs"
@echo " docserve run an HTTP server on the docs directory"
@echo " html make HTML docs"
@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-coverage make and install with C coverage"
@echo " install-req install documentation and test dependencies"
@echo " install-venv install in virtualenv"
@echo " lint run the lint checks"
@echo " lint-fix run Ruff to (mostly) fix lint issues"
@echo " release-test run code and package tests before release"
@echo " test run tests on installed pillow"
@echo " upload build and upload sdists to PyPI"
@echo " upload-test build and upload sdists to test.pythonpackages.com"
.PHONY: inplace
inplace: clean
python3 setup.py develop build_ext --inplace
@echo " test run tests on installed Pillow"
.PHONY: install
install:
python3 setup.py install
python3 -m pip -v install .
python3 selftest.py
.PHONY: install-coverage
install-coverage:
CFLAGS="-coverage -Werror=implicit-function-declaration" python3 setup.py build_ext install
CFLAGS="-coverage -Werror=implicit-function-declaration" python3 -m pip -v install .
python3 selftest.py
.PHONY: debug
@ -73,37 +71,72 @@ debug:
# for our stuff, kills optimization, and redirects to dev null so we
# see any build failures.
make clean > /dev/null
CFLAGS='-g -O0' python3 setup.py build_ext install > /dev/null
.PHONY: install-req
install-req:
python3 -m pip install -r requirements.txt
.PHONY: install-venv
install-venv:
virtualenv .
bin/pip install -r requirements.txt
CFLAGS='-g -O0' python3 -m pip -v install . > /dev/null
.PHONY: release-test
release-test:
$(MAKE) install-req
python3 setup.py develop
python3 checks/check_release_notes.py
python3 -m pip install -e .[tests]
python3 selftest.py
python3 -m pytest Tests
python3 setup.py install
python3 -m pip install .
python3 -m pytest -qq
check-manifest
pyroma .
viewdoc
python3 -m check_manifest
python3 -m pyroma .
$(MAKE) readme
.PHONY: sdist
sdist:
python3 setup.py sdist --format=gztar
python3 -m build --help > /dev/null 2>&1 || python3 -m pip install build
python3 -m build --sdist
python3 -m twine --help > /dev/null 2>&1 || python3 -m pip install twine
python3 -m twine check --strict dist/*
.PHONY: test
test:
pytest -qq
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
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
valgrind:
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=no \
--log-file=/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
readme:
viewdoc
python3 -c "import markdown2" > /dev/null 2>&1 || python3 -m pip install markdown2
python3 -m markdown2 README.md > .long-description.html && open .long-description.html
.PHONY: lint
lint:
python3 -c "import tox" > /dev/null 2>&1 || python3 -m pip install tox
python3 -m tox -e lint
.PHONY: lint-fix
lint-fix:
python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black
python3 -m black .
python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff
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

@ -1,14 +1,14 @@
<p align="center">
<img width="248" height="250" src="https://raw.githubusercontent.com/python-pillow/pillow-logo/master/pillow-logo-248x250.png" alt="Pillow logo">
<img width="248" height="250" src="https://raw.githubusercontent.com/python-pillow/pillow-logo/main/pillow-logo-248x250.png" alt="Pillow logo">
</p>
# Pillow
## Python Imaging Library (Fork)
Pillow is the friendly PIL fork by [Alex Clark and
Contributors](https://github.com/python-pillow/Pillow/graphs/contributors).
PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
Pillow is the friendly PIL fork by [Jeffrey A. Clark and
contributors](https://github.com/python-pillow/Pillow/graphs/contributors).
PIL is the Python Imaging Library by Fredrik Lundh and contributors.
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).
@ -24,30 +24,33 @@ As of 2019, Pillow development is
<tr>
<th>tests</th>
<td>
<a href="https://travis-ci.org/python-pillow/Pillow"><img
alt="Travis CI build status (Linux)"
src="https://img.shields.io/travis/python-pillow/Pillow/master.svg?label=Linux%20build"></a>
<a href="https://travis-ci.org/python-pillow/pillow-wheels"><img
alt="Travis CI build status (macOS)"
src="https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg?label=macOS%20build"></a>
<a href="https://ci.appveyor.com/project/python-pillow/Pillow"><img
alt="AppVeyor CI build status (Windows)"
src="https://img.shields.io/appveyor/build/python-pillow/Pillow/master.svg?label=Windows%20build"></a>
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3ALint"><img
<a href="https://github.com/python-pillow/Pillow/actions/workflows/lint.yml"><img
alt="GitHub Actions build status (Lint)"
src="https://github.com/python-pillow/Pillow/workflows/Lint/badge.svg"></a>
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3ATest"><img
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test.yml"><img
alt="GitHub Actions build status (Test Linux and macOS)"
src="https://github.com/python-pillow/Pillow/workflows/Test/badge.svg"></a>
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3A%22Test+Windows%22"><img
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-windows.yml"><img
alt="GitHub Actions build status (Test Windows)"
src="https://github.com/python-pillow/Pillow/workflows/Test%20Windows/badge.svg"></a>
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3A%22Test+Docker%22"><img
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-mingw.yml"><img
alt="GitHub Actions build status (Test MinGW)"
src="https://github.com/python-pillow/Pillow/workflows/Test%20MinGW/badge.svg"></a>
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-cygwin.yml"><img
alt="GitHub Actions build status (Test Cygwin)"
src="https://github.com/python-pillow/Pillow/workflows/Test%20Cygwin/badge.svg"></a>
<a href="https://github.com/python-pillow/Pillow/actions/workflows/test-docker.yml"><img
alt="GitHub Actions build status (Test Docker)"
src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a>
<a href="https://codecov.io/gh/python-pillow/Pillow"><img
<a href="https://github.com/python-pillow/Pillow/actions/workflows/wheels.yml"><img
alt="GitHub Actions build status (Wheels)"
src="https://github.com/python-pillow/Pillow/workflows/Wheels/badge.svg"></a>
<a href="https://app.codecov.io/gh/python-pillow/Pillow"><img
alt="Code coverage"
src="https://codecov.io/gh/python-pillow/Pillow/branch/master/graph/badge.svg"></a>
src="https://codecov.io/gh/python-pillow/Pillow/branch/main/graph/badge.svg"></a>
<a href="https://issues.oss-fuzz.com/issues?q=title:pillow"><img
alt="Fuzzing Status"
src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg"></a>
</td>
</tr>
<tr>
@ -58,13 +61,16 @@ As of 2019, Pillow development is
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
alt="Tidelift"
src="https://tidelift.com/badges/package/pypi/Pillow?style=flat"></a>
<a href="https://pypi.org/project/Pillow/"><img
src="https://tidelift.com/badges/package/pypi/pillow?style=flat"></a>
<a href="https://pypi.org/project/pillow/"><img
alt="Newest PyPI version"
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"
src="https://img.shields.io/pypi/dm/pillow.svg"></a>
<a href="https://www.bestpractices.dev/projects/6331"><img
alt="OpenSSF Best Practices"
src="https://www.bestpractices.dev/projects/6331/badge"></a>
</td>
</tr>
<tr>
@ -73,9 +79,10 @@ 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
alt="Join the chat at https://gitter.im/python-pillow/Pillow"
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
alt="Follow on https://fosstodon.org/@pillow"
src="https://img.shields.io/badge/publish-on%20Mastodon-595aff.svg"
rel="me"></a>
</td>
</tr>
</table>
@ -88,17 +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.
## More Information
## More information
- [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)
- [Contribute](https://github.com/python-pillow/Pillow/blob/master/.github/CONTRIBUTING.md)
- [Contribute](https://github.com/python-pillow/Pillow/blob/main/.github/CONTRIBUTING.md)
- [Issues](https://github.com/python-pillow/Pillow/issues)
- [Pull requests](https://github.com/python-pillow/Pillow/pulls)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Pre-fork](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst#pre-fork)
- [Release notes](https://pillow.readthedocs.io/en/stable/releasenotes/index.html)
- [Changelog](https://github.com/python-pillow/Pillow/releases)
- [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).

View File

@ -1,75 +1,50 @@
# Release Checklist
# Release checklist
## Main Release
See https://pillow.readthedocs.io/en/stable/releasenotes/versioning.html for
information about how the version numbers line up with releases.
## 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 `master` branch.
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions),
[Travis CI](https://travis-ci.org/github/python-pillow/Pillow) and
[AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm
passing tests in `master` branch.
* [ ] Check that all of the wheel builds [Pillow Wheel Builder](https://github.com/python-pillow/pillow-wheels) pass the tests in Travis CI.
* [ ] In compliance with [PEP 440](https://www.python.org/dev/peps/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 --all
git push --tags
```
* [ ] Create source distributions e.g.:
```bash
make sdist
```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/master/RELEASING.md#binary-distributions)
* [ ] Upload all binaries and source distributions e.g. `twine upload dist/Pillow-5.2.0*`
* [ ] Create a [new release on GitHub](https://github.com/python-pillow/Pillow/releases/new)
* [ ] In compliance with [PEP 440](https://www.python.org/dev/peps/pep-0440/), increment and append `.dev0` to version identifier in `src/PIL/_version.py`
* [ ] Create a new issue and select the "Maintainers only: Release" template.
## Point Release
## Point release
Released as needed for security, installation or critical bug fixes.
* [ ] Make necessary changes in `master` branch.
* [ ] Update `CHANGES.rst`.
* [ ] Make necessary changes in `main` branch.
* [ ] Check out release branch e.g.:
```bash
git checkout -t remotes/origin/5.2.x
```
* [ ] Cherry pick individual commits from `master` branch to release branch e.g. `5.2.x`.
* [ ] Check [GitHub Actions](https://github.com/python-pillow/Pillow/actions),
[Travis CI](https://travis-ci.org/github/python-pillow/Pillow) and
[AppVeyor](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm
passing tests in release branch e.g. `5.2.x`.
* [ ] In compliance with [PEP 440](https://www.python.org/dev/peps/pep-0440/), update version identifier in `src/PIL/_version.py`
* [ ] 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) 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`
* [ ] Run pre-release check via `make release-test`.
* [ ] Create tag for release e.g.:
```bash
git tag 5.2.1
git push
git push --tags
```
* [ ] Create source distributions e.g.:
* [ ] Create and check source distribution:
```bash
make sdist
```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/master/RELEASING.md#binary-distributions)
* [ ] Upload all binaries and source distributions e.g. `twine upload dist/Pillow-5.2.1*`
* [ ] Create a [new release on GitHub](https://github.com/python-pillow/Pillow/releases/new)
* [ ] 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) and then:
```bash
git push
```
## Embargoed Release
## Embargoed release
Released as needed privately to individual vendors for critical security-related bug fixes.
* [ ] Prepare patch for all versions that will get a fix. Test against local installations.
* [ ] Commit against master, cherry pick to affected release branches.
* [ ] Commit against `main`, cherry pick to affected release branches.
* [ ] Run local test matrix on each release & Python version.
* [ ] Privately send to distros.
* [ ] Run pre-release check via `make release-test`
@ -78,40 +53,25 @@ Released as needed privately to individual vendors for critical security-related
```bash
git checkout 2.5.x
git tag 2.5.3
git push origin 2.5.x
git push origin --tags
```
* [ ] Create source distributions e.g.:
* [ ] 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) and then:
```bash
make sdist
git push origin 2.5.x
```
* [ ] Create [binary distributions](https://github.com/python-pillow/Pillow/blob/master/RELEASING.md#binary-distributions)
* [ ] Create a [new release on GitHub](https://github.com/python-pillow/Pillow/releases/new)
## Binary Distributions
## Publicize release
### Windows
* [ ] Contact `@cgohlke` for Windows binaries via release ticket e.g. https://github.com/python-pillow/Pillow/issues/1174.
* [ ] Download and extract tarball from `@cgohlke` and `twine upload *`.
### Mac and Linux
* [ ] 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).
## Publicize Release
* [ ] Announce release availability via [Twitter](https://twitter.com/pythonpillow) e.g. https://twitter.com/PythonPillow/status/1013789184354603010
* [ ] 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
## Docker images
* [ ] Update Pillow in the Docker Images repository
```bash

View File

@ -1,8 +0,0 @@
#!/usr/bin/env python
import sys
from PIL import Image
if sys.maxsize < 2 ** 32:
im = Image.new("L", (999999, 999999), 0)

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``.
@ -8,7 +8,7 @@ Dependencies
Install::
python3 -m pip install pytest pytest-cov
python3 -m pip install pytest pytest-cov pytest-timeout
Execution
---------

View File

@ -1,58 +0,0 @@
import time
from PIL import PyAccess
from .helper import hopper
# Not running this test by default. No DOS against Travis 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:
print(
"{}: breaking at {} iterations, {:.6f} per iteration".format(
label, x + 1, (time.time() - starttime) / (x + 1.0)
)
)
break
if x == iterations - 1:
endtime = time.time()
print(
"{}: {:.4f} s {:.6f} per iteration".format(
label, 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 pytest
def pytest_report_header(config):
def pytest_report_header(config: pytest.Config) -> str:
try:
from PIL import features
@ -10,3 +14,22 @@ def pytest_report_header(config):
return out.getvalue()
except Exception as e:
return f"pytest_report_header failed: {e}"
def pytest_configure(config: pytest.Config) -> None:
config.addinivalue_line(
"markers",
"pil_noop_mark: A conditional mark where nothing special happens",
)
# We're marking some tests to ignore valgrind errors and XFAIL them.
# Ensure that the mark is defined
# even in cases where pytest-valgrind isn't installed
try:
config.addinivalue_line(
"markers",
"valgrind_known_error: Tests that have known issues with valgrind",
)
except Exception:
# valgrind is already installed
pass

View File

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

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,40 @@
DejaVuSans-24-{1,2,4,8}-stripped.ttf are based on DejaVuSans.ttf converted using FontForge to add bitmap strikes and keep only the ASCII range.
DejaVu Fonts — License
Fonts are © Bitstream (see below). DejaVu changes are in public domain. Explanation of copyright is on Gnome page on Bitstream Vera fonts. Glyphs imported from Arev fonts are © Tavmjung Bah (see below)
Bitstream Vera Fonts Copyright
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
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 BITSTREAM OR THE GNOME FOUNDATION 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 names of Gnome, the Gnome Foundation, and Bitstream Inc., 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 the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
Arev Fonts Copyright
Original text
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Tavmjong Bah" or the word "Arev".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Tavmjong Bah Arev" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
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.

Binary file not shown.

View File

@ -2,20 +2,27 @@
NotoNastaliqUrdu-Regular.ttf and NotoSansSymbols-Regular.ttf, from https://github.com/googlei18n/noto-fonts
NotoSans-Regular.ttf, from https://www.google.com/get/noto/
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
TINY5x3GX.ttf, from http://velvetyne.fr/fonts/tiny
ArefRuqaa-Regular.ttf, from https://github.com/google/fonts/tree/master/ofl/arefruqaa
ter-x20b.pcf, from http://terminus-font.sourceforge.net/
BungeeColor-Regular_colr_Windows.ttf, from https://github.com/djrrb/bungee
OpenSans.woff2, from https://fonts.googleapis.com/css?family=Open+Sans
All of the above fonts are published under the SIL Open Font License (OFL) v1.1 (http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL), which allows you to copy, modify, and redistribute them if you need to.
FreeMono.ttf is licensed under GPLv3, with the GPL font exception.
OpenSansCondensed-LightItalic.tt, from https://fonts.google.com/specimen/Open+Sans, under Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
DejaVuSans-24-{1,2,4,8}-stripped.ttf are based on DejaVuSans.ttf converted using FontForge to add bitmap strikes and keep only the ASCII range.
chromacheck-sbix.woff, from https://github.com/RoelN/ChromaCheck, under The MIT License (MIT), Copyright (c) 2018 Roel Nieskens, https://pixelambacht.nl Copyright (c) 2018 Google LLC
KhmerOSBattambang-Regular.ttf is licensed under LGPL-2.1 or later.
FreeMono.ttf is licensed under GPLv3.
10x20-ISO8859-1.pcf, from https://packages.ubuntu.com/xenial/xfonts-base
"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.

BIN
Tests/fonts/OpenSans.woff2 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
STARTFONT
FONT ÿ
SIZE 10
FONTBOUNDINGBOX
CHARS
STARTCHAR
ENCODING
BBX 2 5
ENDCHAR
ENDFONT

View File

@ -2,59 +2,52 @@
Helper functions.
"""
from __future__ import annotations
import logging
import os
import shutil
import subprocess
import sys
import sysconfig
import tempfile
from collections.abc import Sequence
from functools import lru_cache
from io import BytesIO
from pathlib import Path
from typing import Any, Callable
import pytest
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__)
HAS_UPLOADER = False
if os.environ.get("SHOW_ERRORS", None):
# local img.show for errors.
HAS_UPLOADER = True
class test_image_results:
@staticmethod
def upload(a, b):
a.show()
b.show()
uploader = None
if os.environ.get("SHOW_ERRORS"):
uploader = "show"
elif "GITHUB_ACTIONS" in os.environ:
HAS_UPLOADER = True
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
uploader = "github_actions"
else:
try:
import test_image_results
HAS_UPLOADER = True
except ImportError:
pass
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, b):
def convert_to_comparable(
a: Image.Image, b: Image.Image
) -> tuple[Image.Image, Image.Image]:
new_a, new_b = a, b
if a.mode == "P":
new_a = Image.new("L", a.size)
@ -67,14 +60,16 @@ def convert_to_comparable(a, 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:
assert len(a) == len(b), msg or f"got length {len(a)}, expected {len(b)}"
except Exception:
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:
assert im.mode == mode, (
msg or f"got mode {repr(im.mode)}, expected {repr(mode)}"
@ -86,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.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}"
if a.tobytes() != b.tobytes():
if HAS_UPLOADER:
try:
url = test_image_results.upload(a, b)
logger.error(f"Url for test images: {url}")
except Exception:
pass
try:
url = upload(a, b)
if url:
logger.error("URL for test images: %s", url)
except Exception:
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:
if mode:
img = img.convert(mode)
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.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}"
@ -115,7 +117,9 @@ def assert_image_similar(a, b, epsilon, msg=None):
diff = 0
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()))
ave_diff = diff / (a.size[0] * a.size[1])
@ -125,61 +129,90 @@ def assert_image_similar(a, b, epsilon, msg=None):
+ f" average pixel value difference {ave_diff:.4f} > epsilon {epsilon:.4f}"
)
except Exception as e:
if HAS_UPLOADER:
try:
url = test_image_results.upload(a, b)
logger.error(f"Url for test images: {url}")
except Exception:
pass
try:
url = upload(a, b)
if url:
logger.exception("URL for test images: %s", url)
except Exception:
pass
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:
if mode:
img = img.convert(mode)
assert_image_similar(a, img, epsilon, msg)
def assert_all_same(items, msg=None):
assert items.count(items[0]) == len(items), msg
def assert_not_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_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"""
value = True
for i, target in enumerate(targets):
value *= target - threshold <= actuals[i] <= target + threshold
assert value, msg + ": " + repr(actuals) + " != " + repr(targets)
if not (target - threshold <= actuals[i] <= target + threshold):
pytest.fail(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"
return pytest.mark.skipif(not features.check(feature), reason=reason)
def skip_unless_feature_version(feature, version_required, reason=None):
if not features.check(feature):
def skip_unless_feature_version(
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")
if reason is None:
reason = f"{feature} is older than {version_required}"
version_required = parse_version(version_required)
version_available = parse_version(features.version(feature))
reason = f"{feature} is older than {required}"
version_required = parse_version(required)
version_available = parse_version(version)
return pytest.mark.skipif(version_available < version_required, reason=reason)
def mark_if_feature_version(
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()
if reason is None:
reason = f"{feature} is {version_blacklist}"
version_required = parse_version(version_blacklist)
version_available = parse_version(version)
if (
version_available.major == version_required.major
and version_available.minor == version_required.minor
):
return mark(reason=reason)
return pytest.mark.pil_noop_mark()
@pytest.mark.skipif(sys.platform.startswith("win32"), reason="Requires Unix or macOS")
class PillowLeakTestCase:
# requires unix/macOS
iterations = 100 # count
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
between macOS and Linux rss reporting
@ -190,19 +223,13 @@ class PillowLeakTestCase:
from resource import RUSAGE_SELF, getrusage
mem = getrusage(RUSAGE_SELF).ru_maxrss
if sys.platform == "darwin":
# man 2 getrusage:
# ru_maxrss
# This is the maximum resident set size utilized (in bytes).
return mem / 1024 # Kb
else:
# linux
# man 2 getrusage
# ru_maxrss (since Linux 2.6.32)
# This is the maximum resident set size used (in kilobytes).
return mem # Kb
# man 2 getrusage:
# ru_maxrss
# This is the maximum resident set size utilized
# in bytes on macOS, in kilobytes on Linux
return mem / 1024 if sys.platform == "darwin" else mem
def _test_leak(self, core):
def _test_leak(self, core: Callable[[], None]) -> None:
start_mem = self._get_mem_usage()
for cycle in range(self.iterations):
core()
@ -214,94 +241,106 @@ class PillowLeakTestCase:
# helpers
def fromstring(data):
def fromstring(data: bytes) -> ImageFile.ImageFile:
return Image.open(BytesIO(data))
def tostring(im, string_format, **options):
def tostring(im: Image.Image, string_format: str, **options: Any) -> bytes:
out = BytesIO()
im.save(out, string_format, **options)
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:
# Always return fresh not-yet-loaded version of image.
# Operations on not-yet-loaded images is separate class of errors
# what we should catch.
# Operations on not-yet-loaded images are a separate class of errors
# that we should catch.
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
# (for fast, isolated, repeatable tests).
im = cache.get(mode)
if im is None:
if mode == "F":
im = hopper("L").convert(mode)
elif mode[:4] == "I;16":
im = hopper("I").convert(mode)
return _cached_hopper(mode).copy()
@lru_cache
def _cached_hopper(mode: str) -> Image.Image:
if mode == "F":
im = hopper("L")
else:
im = hopper()
try:
im = im.convert(mode)
except ImportError:
if mode == "LAB":
im = Image.open("Tests/images/hopper.Lab.tif")
else:
im = hopper().convert(mode)
cache[mode] = im
return im.copy()
raise
return im
def djpeg_available():
return bool(shutil.which("djpeg"))
def djpeg_available() -> bool:
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():
return bool(shutil.which("cjpeg"))
def netpbm_available():
def netpbm_available() -> bool:
return bool(shutil.which("ppmquant") and shutil.which("ppmtogif"))
def imagemagick_available():
return bool(IMCONVERT and shutil.which(IMCONVERT))
def magick_command() -> list[str] | None:
if sys.platform == "win32":
magickhome = os.environ.get("MAGICK_HOME")
if magickhome:
imagemagick = [os.path.join(magickhome, "convert.exe")]
graphicsmagick = [os.path.join(magickhome, "gm.exe"), "convert"]
else:
imagemagick = None
graphicsmagick = None
else:
imagemagick = ["convert"]
graphicsmagick = ["gm", "convert"]
if imagemagick and shutil.which(imagemagick[0]):
return imagemagick
if graphicsmagick and shutil.which(graphicsmagick[0]):
return graphicsmagick
return None
def on_appveyor():
return "APPVEYOR" in os.environ
def on_github_actions():
return "GITHUB_ACTIONS" in os.environ
def on_ci():
# GitHub Actions, Travis and AppVeyor have "CI"
def on_ci() -> bool:
return "CI" in os.environ
def is_big_endian():
def is_big_endian() -> bool:
return sys.byteorder == "big"
def is_win32():
def is_ppc64le() -> bool:
import platform
return platform.machine() == "ppc64le"
def is_win32() -> bool:
return sys.platform.startswith("win32")
def is_pypy():
def is_pypy() -> bool:
return hasattr(sys, "pypy_translation_info")
def is_mingw():
return sysconfig.get_platform() == "mingw"
if sys.platform == "win32":
IMCONVERT = os.environ.get("MAGICK_HOME", "")
if IMCONVERT:
IMCONVERT = os.path.join(IMCONVERT, "convert.exe")
else:
IMCONVERT = "convert"
class cached_property:
def __init__(self, func):
class CachedProperty:
def __init__(self, func: Callable[[Any], Any]) -> None:
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)
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
prior permission. ICC makes no representations about the suitability
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/16bit.r.tif Normal file

Binary file not shown.

Binary file not shown.

BIN
Tests/images/2422.flc Normal file

Binary file not shown.

BIN
Tests/images/8bit.s.tif Normal file

Binary file not shown.

BIN
Tests/images/9bit.j2k Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 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

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
Tests/images/ati1.dds Normal file

Binary file not shown.

BIN
Tests/images/ati1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

BIN
Tests/images/ati2.dds Normal file

Binary file not shown.

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.

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