Commit Graph

2397 Commits

Author SHA1 Message Date
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
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
Andrew Murray
66c5e9ae98 Added release notes 2023-12-05 19:31:33 +11: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
9a6c47a9d2 Merge branch 'main' into font 2023-12-04 22:25:58 +11:00
Andrew Murray
2b734a33c7 Updated lcms2 to 2.16 2023-12-04 08:32:39 +11:00
Andrew Murray
bd7874a6f1 Update Windows wheels info 2023-12-01 12:01:34 +11:00
Nulano
984700b1f7 fix documentation link to PIL.ImageFont.Layout 2023-11-30 23:58:47 +01: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
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
Hugo van Kemenade
959b45c945 Activate tabs based on browser's operating system 2023-11-27 16:27:39 +02:00
Andrew Murray
55c5587437 Fill identical pixels with transparency in subsequent frames 2023-11-25 19:16:32 +11:00
Andrew Murray
c855584dac Corrected "optimize" default when saving GIF images 2023-11-25 17:30:09 +11:00
Andrew Murray
10fd7ff539 Remove implication that "-C" is since Pillow 3.0.0 2023-11-20 13:43:08 -08:00
Nulano
108eee1bdd use --config-settings in external libraries list 2023-11-20 19:39:49 +01: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
Nulano
4b111d1d5e update tested versions to include Windows 11 2023-11-16 21:24:56 +01: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
Hugo van Kemenade
cb485d7127 Test Fedora 39 2023-11-12 17:20:01 +02:00
Aarni Koskela
307d00b44d Apply ruff autofixes 2023-11-06 12:43:14 +02:00
Andrew Murray
8cbd0b5fe0 Docs: link exceptions to Python docs 2023-11-05 12:18:38 +11: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
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
6b1e939027 Removed Fedora 37 2023-11-02 17:33:10 +11:00
Andrew Murray
d499f0016f
Mention defusedxml
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-11-02 08:21:35 +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
Andrew Murray
8cd01cab80 Updated AppVeyor to Python 3.12 2023-10-31 12:44:53 +11:00
Hugo van Kemenade
ac6eb84704 Add 'pypi' Sphinx role 2023-10-30 08:56:42 +02:00
Andrew Murray
84e148e944 Document that olefile is required for FPX and MIC formats 2023-10-30 09:02:42 +11:00
Hugo van Kemenade
430920e2a8 Move build config from setup.cfg to pyproject.toml 2023-10-21 22:37:28 +03:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +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
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
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
daf1ce78ed Add Python 3.12 to Pillow 10.1.0 release notes 2023-10-15 18:57:14 +03: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
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
Andrew Murray
c759ef2c08 Updated libimagequant to 4.2.2 2023-10-14 11:56:23 +11:00
Andrew Murray
c2d50881ee Added documentation 2023-10-14 11:01:57 +11:00
Hugo van Kemenade
810f5f06c4
Merge branch 'main' into cover 2023-10-13 23:42:06 +02:00
Andrew Murray
7cd792cf0c Updated libtiff to 4.6.0 2023-10-09 21:49:51 +11:00
Hugo van Kemenade
7921da54a7
Merge pull request #7448 from radarhere/links
Updated redirected links
2023-10-07 08:45:55 -06: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
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
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