Lysandros Nikolaou
308e1fc93d
Avoid race on reading alignment in for-loop
2025-03-06 13:51:26 +01:00
pre-commit-ci[bot]
10104eb5aa
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-02-14 20:10:31 +00:00
Lysandros Nikolaou
7d2ea7665f
Fix iterations through arenas
2025-02-14 21:09:04 +01:00
Andrew Murray
19154a5478
Merge branch 'main' into reduce-contention
2025-02-06 22:47:54 +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
e2a96a5c2c
Only import distutils when type checking
2025-01-31 10:29:30 -05:00
pre-commit-ci[bot]
cff21412c5
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-01-31 10:29:30 -05:00
Kevin Newton
9b130e6d6c
Reduce memory arena contention
...
Previously there was one memory arena for all threads, making it
the bottleneck for multi-threaded performance. As the number of
threads increased, the contention for the lock on the arena would
grow, causing other threads to wait to acquire it.
This commit makes it use 8 memory arenas, and round-robbins how
they are assigned to threads. Threads keep track of the index that
they should use into the arena array, assigned the first time the
arena is accessed on a given thread.
When an image is first created, it is allocated from an arena.
When the logic to have multiple arenas is enabled, it then keeps
track of the index on the image, so that when deleted it can be
returned to the correct arena.
Effectively this means that in single-threaded programs, this
should not really have an effect. We also do not do this logic if
the GIL is enabled, as it effectively acts as the lock on the
default arena for us.
As expected, this approach has no real noticable effect on regular
CPython. On free-threaded CPython, however, there is a massive
difference (measuring up to about 70%).
2025-01-31 10:29:30 -05: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