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