Commit Graph

17738 Commits

Author SHA1 Message Date
Andrew Murray
98ae91a65d Added BGXR and BGAR unpackers 2024-04-09 00:45:48 +10:00
Jonah Jeleniewski
9e5b9fb18f Improve comments around bitmap info headers 2024-04-08 22:38:06 +10:00
Jonah Jeleniewski
a1a2202ebe Add support for bitmaps with header size 56
Size 56 is the undocumented `BITMAPV3INFOHEADER`.
It adds the alpha bit mask.

The format is known to be supported by:
- Windows (MS paint, etc.)
- Adobe Photoshop
- Popular web browsers
2024-04-08 22:38:06 +10:00
Jonah Jeleniewski
2f3281dcda Add support for bitmaps with header size 52
Size 52 is the undocumented `BITMAPV2INFOHEADER`.
It adds the RGB bit masks.

The format is known to be supported by:
- Adobe Photoshop
- Popular web browsers
2024-04-08 21:18:19 +10:00
Hugo van Kemenade
33a73b5266
Merge pull request #7955 from radarhere/imagemode
Removed outdated comment
2024-04-07 09:51:24 +03:00
Andrew Murray
76fb002dd4
Removed outdated comment 2024-04-07 16:14:41 +10:00
Nulano
bcb2db6a87 ImageStat: use functools.cached_property and add type hints 2024-04-07 00:46:16 +02:00
Andrew Murray
a25a1aef05 Update CHANGES.rst [ci skip] 2024-04-07 08:38:43 +10:00
Andrew Murray
84238bd459
Merge branch 'main' into types/fromarray 2024-04-07 08:32:48 +10:00
Andrew Murray
84a02c851a
Merge pull request #7944 from nulano/type-image-open
Add type hints for `Image.open`, `Image.init`, and `Image.Image.save`
2024-04-07 08:31:55 +10:00
Hugo van Kemenade
38f4c7ba5a
Merge pull request #7950 from Yay295/patch-1
Rename test_roundtrip() to test_mode()
2024-04-07 00:18:58 +03:00
Yay295
05d2314606
Make ModeDescriptor a NamedTuple 2024-04-06 15:52:17 -05:00
Yay295
1635e7a571
Update Tests/test_image_getdata.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-06 15:18:16 -05:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Yay295
6a255de24f
Rename test_roundtrip() to test_hopper()
This test isn't actually roundtripping anything.
2024-04-06 11:14:38 -05:00
Hugo van Kemenade
06b71f714f
Merge pull request #7947 from radarhere/jpeg2000_cmyk 2024-04-06 16:24:39 +03:00
Hugo van Kemenade
f8ec9f7974
Merge pull request #7931 from Yay295/imagingcms_modes
Remove unused CMS properties and fix documentation
2024-04-06 09:28:45 +03:00
Andrew Murray
7eee479ce5 Corrected indentation 2024-04-05 23:35:12 -05:00
Andrew Murray
1c2a323a90 Corrected variable name 2024-04-05 23:35:12 -05:00
Andrew Murray
c61a481028 Support reading CMYK JPEG2000 images 2024-04-06 13:40:39 +11:00
Andrew Murray
ff64adee9d
Merge pull request #7937 from radarhere/qoi
Document that QoiImagePlugin uses Python for decoding
2024-04-05 16:42:54 +11:00
Nulano
819e1b9dd2 add type hints for Image.save 2024-04-04 23:38:50 +02:00
Andrew Murray
059b8e9171 Updated line formatting 2024-04-05 06:52:36 +11:00
Andrew Murray
0702f704fa
Remove commas
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-04-05 05:16:41 +11:00
Andrew Murray
2a2588d5df
Use extlink
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-05 05:09:11 +11:00
Nulano
8c14a394c1 add type hints for Image.open and Image.init 2024-04-04 20:01:24 +02:00
Andrew Murray
0cc5de4e09 Link to https://pypi.org/project/qoi 2024-04-04 12:17:02 +11:00
Adam J. Stewart
92dfb02096
Merge pull request #1 from radarhere/types/fromarray
Added SupportsArrayInterface
2024-04-03 11:20:05 +02:00
Andrew Murray
e85a84baa7 Added SupportsArrayInterface 2024-04-03 20:00:40 +11:00
Hugo van Kemenade
e8ab564077
Merge pull request #7938 from radarhere/appveyor 2024-04-03 09:23:28 +03:00
Andrew Murray
a6793bba5e Updated pattern for skipping builds based on file changes 2024-04-03 12:19:45 +11:00
Andrew Murray
8c57cd56a5 QoiImagePlugin uses PyDecoder 2024-04-03 12:00:02 +11:00
Adam J. Stewart
5d19151cd3
Python 3.10+ 2024-04-02 17:56:52 +02:00
pre-commit-ci[bot]
8a63980e39 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-02 15:53:42 +00:00
Adam J. Stewart
37ed8c337d
Try type comment 2024-04-02 17:53:11 +02:00
pre-commit-ci[bot]
8e47a6f2c8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-02 15:46:28 +00:00
Adam J. Stewart
4915f19b13
fromarray: add type hints 2024-04-02 17:45:06 +02:00
Hugo van Kemenade
aeeb596c98
Merge pull request #7934 from radarhere/macos 2024-04-02 10:54:41 +03:00
Andrew Murray
38e8112650 Updated macOS tested Pillow versions 2024-04-02 17:58:49 +11:00
Hugo van Kemenade
7f9a174b33
Merge pull request #7933 from jbjd/fix_ImageMath.rst 2024-04-02 09:36:45 +03:00
Andrew Murray
75454646f4 Moved code onto single line 2024-04-02 00:38:02 -05:00
jbjd
b37279a29c fix parameter name in ImageMath docs 2024-04-01 20:09:02 -05:00
Andrew Murray
dc3ea89c33
Merge pull request #7932 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-04-02 08:59:58 +11:00
Hugo van Kemenade
7867040486 Check GHA, RTD and Renovate config with pre-commit 2024-04-01 20:55:19 +03:00
Hugo van Kemenade
55b8f9126b Move Ruff's fix=true up from pre-commit to pyproject 2024-04-01 20:49:47 +03:00
Hugo van Kemenade
97c6e46f34 Fix lint 2024-04-01 20:49:19 +03:00
pre-commit-ci[bot]
88ddcde8d8 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-01 17:24:31 +00:00
pre-commit-ci[bot]
793bb7fb6f
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.3.4)
- [github.com/psf/black-pre-commit-mirror: 24.1.1 → 24.3.0](https://github.com/psf/black-pre-commit-mirror/compare/24.1.1...24.3.0)
- [github.com/PyCQA/bandit: 1.7.7 → 1.7.8](https://github.com/PyCQA/bandit/compare/1.7.7...1.7.8)
- [github.com/Lucas-C/pre-commit-hooks: v1.5.4 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.4...v1.5.5)
2024-04-01 17:24:09 +00:00
Yay295
7a9b57ce08 remove mode properties from CmsTransform interface 2024-04-01 10:16:23 -05:00
Yay295
16ce3da0a4 remove unused mode properties from CmsTransformObject/PIL.ImageCms.core.CmsTransform 2024-04-01 09:45:52 -05:00