Commit Graph

16802 Commits

Author SHA1 Message Date
Hugo van Kemenade
554598d393
Merge pull request #7649 from radarhere/fuzz 2023-12-29 13:35:27 +02:00
Andrew Murray
a5e42107ea Removed __future__ import from fuzz_font and fuzz_pillow 2023-12-29 11:23:34 +11: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
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
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