Commit Graph

16307 Commits

Author SHA1 Message Date
Andrew Murray
9f54a11a9c Improve efficiency when a radius is zero 2023-08-12 18:17:07 +10:00
TheNooB
0b6ab79145
Check session type using environment variable instead of loginctl 2023-08-12 12:51:09 +08:00
Andrew Murray
c167d7a269 Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii 2023-08-12 12:09:20 +10:00
TheNooB
7b157b045a
Use os.getlogin() instead of whoami command for getting username 2023-08-11 21:14:34 +08:00
TheNooB
a8b3feac86
Apply suggestions from code review
Simplify conditional expressions

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-08-11 21:01:05 +08:00
pre-commit-ci[bot]
164ea2df6f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-08-11 10:42:12 +00:00
Andrew Murray
08b538780d Update CHANGES.rst [ci skip] 2023-08-11 19:49:02 +10:00
TheNooB
bc658e1791
Add session type check in grabclipboard for Linux 2023-08-11 17:47:36 +08:00
Andrew Murray
39d866b17d
Merge pull request #7311 from k128/main
Read WebP duration after opening
2023-08-11 19:46:49 +10:00
Andrew Murray
f39f74fb82 Update CHANGES.rst [ci skip] 2023-08-11 07:42:24 +10:00
Andrew Murray
6651a31436
Merge pull request #7329 from radarhere/gif
Allow "loop=None" when saving GIF images
2023-08-10 18:08:00 +10:00
Andrew Murray
bfafa460e3 Allow "loop=None" when saving 2023-08-09 10:31:34 +10:00
Andrew Murray
c98a7994da Update CHANGES.rst [ci skip] 2023-08-08 21:33:55 +10:00
Andrew Murray
649ad8a804
Merge pull request #7323 from radarhere/pdf_p_transparency
Fixed transparency when saving P mode images to PDF
2023-08-08 21:30:23 +10:00
Hugo van Kemenade
796bb1801d
Merge pull request #7326 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-08-08 10:41:22 +02:00
Andrew Murray
241a012804
Merge pull request #7325 from Yay295/Yay295-patch-1
Fix param in test_image.py function
2023-08-08 12:12:46 +10:00
Andrew Murray
15930be644 Use "is" when comparing types 2023-08-08 08:44:03 +10:00
pre-commit-ci[bot]
24a19e5b37
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)
- [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.3](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.1...v1.5.3)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)
- [github.com/tox-dev/pyproject-fmt: 0.12.1 → 0.13.0](https://github.com/tox-dev/pyproject-fmt/compare/0.12.1...0.13.0)
2023-08-07 19:39:13 +00:00
Yay295
5b6b6346bb
Fix param in test_image.py function 2023-08-07 09:49:20 -05:00
Andrew Murray
73bd40babe Test for relevant characters before and after "SMask" 2023-08-07 20:49:29 +10:00
Andrew Murray
5c59807216 Removed unused decoders 2023-08-07 13:54:11 +10:00
Andrew Murray
a70ea82eb5 Write P transparency as SMask 2023-08-07 13:53:19 +10:00
Andrew Murray
c9147c9c85 Moved writing of object into separate function 2023-08-06 22:14:32 +10:00
Andrew Murray
a5b0256290 Update CHANGES.rst [ci skip] 2023-08-04 23:57:56 +10:00
Andrew Murray
6bd3ed439a Ignore IPTC field that is only zero bytes 2023-08-04 23:54:48 +10:00
Andrew Murray
fc99a5871e
Merge pull request #7317 from radarhere/pdf_alpha
Set SMaskInData to 1 for LA PDFs
2023-08-04 23:54:20 +10:00
Andrew Murray
c5b4ad94e8 Do not set ColorSpace for JPXDecode since it is optional 2023-08-04 18:47:28 +10:00
Andrew Murray
bc11b2d6a9 Set SMaskInData to 1 for PDFs with alpha 2023-08-04 18:46:58 +10:00
Hugo van Kemenade
95257dff87
Merge pull request #7299 from radarhere/pdf 2023-08-04 11:43:09 +03:00
Hugo van Kemenade
917769bd9f
Merge pull request #7316 from radarhere/pdf_alpha 2023-08-04 11:42:08 +03:00
Andrew Murray
54aecc6c4a
Merge pull request #7315 from radarhere/xz
Updated xz to 5.4.4
2023-08-03 22:27:47 +10:00
Andrew Murray
6ca38552c9 Do not set ColorSpace for JPXDecode since it is optional 2023-08-03 22:07:36 +10:00
Andrew Murray
ddfb7ef14b Do not set BitsPerComponent for JPXDecode since it is ignored 2023-08-03 22:05:11 +10:00
Andrew Murray
022e650d18 Set SMaskInData to 1 for PDFs with alpha 2023-08-03 19:11:35 +10:00
Andrew Murray
57f45be765 Updated xz to 5.4.4 2023-08-03 09:04:18 +10:00
Andrew Murray
c54f57c93f Updated harfbuzz to 8.1.1 2023-08-03 08:57:55 +10:00
k128
9c6b8c423e
Merge pull request #1 from radarhere/webp
_decoder.get_next() may return None
2023-08-01 09:54:11 -04:00
Andrew Murray
60433d5f37 Added test 2023-08-01 19:17:54 +10:00
Andrew Murray
6115d5957f _decoder.get_next() may return None 2023-08-01 19:16:28 +10:00
Andrew Murray
230a2e3a33 If "reset" is always true, then the argument can be removed 2023-08-01 19:15:15 +10:00
Andrew Murray
6d3630d406 Update CHANGES.rst [ci skip] 2023-08-01 08:31:16 +10:00
k128
15e5229030
Update WebPImagePlugin.py 2023-07-31 15:32:05 -04:00
pre-commit-ci[bot]
2f5493a5f0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-07-31 19:19:57 +00:00
k128
27a0339d64
Update WebPImagePlugin.py
Automatically load duration
2023-07-31 15:14:22 -04:00
Hugo van Kemenade
c1c474a1f2
Merge pull request #7307 from radarhere/mode 2023-07-31 17:14:10 +03:00
Andrew Murray
8eee457725 Added release notes 2023-07-31 21:06:16 +10:00
Andrew Murray
1aa0ade1b6 Update CHANGES.rst [ci skip] 2023-07-31 11:45:00 +10:00
Andrew Murray
07038d7e89
Merge pull request #7266 from mtreinish/handle-repr-exceptions
Handle exceptions in _repr_jpeg_ and _repr_png_
2023-07-31 11:42:44 +10:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
07623d1a7c
Merge pull request #7305 from hugovk/docs-clarify-textlength-return
Docs: Clarify that a single value is returned, and depends on the text direction
2023-07-26 08:16:34 +10:00