Commit Graph

2361 Commits

Author SHA1 Message Date
Hugo van Kemenade
27eacddfd5
Merge pull request #7688 from radarhere/macos_imagegrab 2024-01-03 16:27:51 +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
Nulano
b4a8271288 update Windows 11 tested versions 2024-01-02 17:26:11 +01: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
fd14824649 bbox on macOS is not 2x on retina screens 2024-01-02 19:15:13 +11:00
Nulano
de62b25ed3 fix image url in "Reading from URL" example 2024-01-01 18:06:46 +01: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
24e9485e6b
Merge pull request #7671 from radarhere/imagetransform
Added type hints to ImageTransform
2024-01-01 21:45:56 +11: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
59100652b6 Added type hints to ImageTransform 2024-01-01 20:33:34 +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
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
8676cbd4e7 Do not try and crop glyphs from outside of source ImageFont image 2024-01-01 16:13:24 +11:00
Andrew Murray
9bcd477058 Use consistent language 2024-01-01 14:19:16 +11: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
2825323e84 Release notes: add ImageColor and ImageMode optimisations, and type hints 2023-12-31 17:48:31 +02:00
Nulano
aa605bc6f2 document IptcImagePlugin deprecations 2023-12-31 17:41:13 +02:00
Hugo van Kemenade
f9e3d073b3
Merge pull request #7663 from radarhere/copyright 2023-12-31 17:23:22 +02:00
Andrew Murray
2ec53e36e9 Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() 2023-12-31 23:17:28 +11:00
Andrew Murray
ee6e12a803 Updated copyright year 2023-12-31 18:37:16 +11:00
Andrew Murray
557ba59d13 Include further builtins 2023-12-30 09:30:12 +11: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
Nulano
3a4298d16c avoid hard dependency on typing_extensions 2023-12-27 14:55:30 +01: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
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
Andrew Murray
bc5ec2268a Added type hints 2023-12-26 22:26:11 +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
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency 2023-12-21 12:58:07 +02: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
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
Andrew Murray
4c7eeec4fc
Merge pull request #7600 from nulano/anchor-clarify-docs
Clarify default anchor alignment
2023-12-13 07:36:00 +11:00
Nulano
af2d976880 clarify default anchor alignment 2023-12-12 17:22:19 +01: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
afae56829a Added release notes for #7599 and #7593 2023-12-07 20:54:30 +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