Commit Graph

17488 Commits

Author SHA1 Message Date
Nulano
a81b945129 Update CmsProfile docs to match _imagingcms type stubs 2024-03-28 17:26:05 +01:00
Nulano
abb73b5b86 use PIL.ImageCms.core as module for PIL._imagingcms classes 2024-03-28 17:26:05 +01:00
Nulano
0015e9ce68 expose ImageCms.core.CmsTransform 2024-03-28 17:26:03 +01:00
Nulano
047a0d2a64 do not allow ImageCms.core.CmsProfile to be instantiated directly 2024-03-28 17:24:50 +01:00
Nulano
afd6e1fa29 import _imagingcms as core 2024-03-28 17:23:54 +01:00
Nulano
21566ebcdc add type hints to pyCms functions in ImageCms 2024-03-28 17:23:54 +01:00
Nulano
a1a687c261 add type hints to ImageCms.get_display_profile 2024-03-28 17:23:54 +01:00
Nulano
0630ef061f add type hints for ImageCms.{ImageCmsProfile,ImageCmsTransform} 2024-03-28 17:23:54 +01:00
Nulano
24ed5db2d1 check type given to ImageCms.core.profile_tobytes instead of crashing 2024-03-28 17:23:54 +01:00
Nulano
e7eea5ea30 add type hints to _imagingcms 2024-03-28 17:23:49 +01:00
Hugo van Kemenade
c2904b83b5
Merge pull request #7884 from radarhere/mpo 2024-03-28 18:13:57 +02:00
Hugo van Kemenade
d734c8b702
Merge pull request #7888 from radarhere/convert_rgb 2024-03-28 18:11:12 +02:00
Hugo van Kemenade
6464d5cf91
Merge pull request #7894 from radarhere/fits_gzip 2024-03-28 18:09:55 +02:00
Hugo van Kemenade
e3aeaa6ff8
Merge pull request #7911 from Yay295/fix_unclosed_images
Use setup_module() to open images so they aren't opened if skipped
2024-03-28 08:12:04 +02:00
Yay295
0d86da54bc
add typing to "ims" in test_image_fromqimage.py
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-27 14:02:02 -05:00
pre-commit-ci[bot]
26a212126f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-27 15:57:36 +00:00
Yay295
9c6b30560e use setup_module() to open images so they aren't opened if skipped 2024-03-27 10:53:07 -05:00
Hugo van Kemenade
3f49b0cfd2
Merge pull request #7907 from radarhere/xorgproto 2024-03-27 16:12:21 +02:00
Hugo van Kemenade
59cb1d75a9
Merge pull request #7909 from hugovk/appveyor-skip
Skip AppVeyor builds for irrelevant files
2024-03-27 13:00:21 +02:00
Hugo van Kemenade
f05946a390 Skip AppVeyor builds for irrelevant files 2024-03-27 12:30:39 +02:00
Hugo van Kemenade
fac81d6228
Merge pull request #7905 from radarhere/current 2024-03-27 11:10:24 +02:00
Andrew Murray
6ca8bfb253
Merge pull request #7897 from hugovk/flake8-pyi
Type hints: Add PYI (flake8-pyi) to Ruff and fix errors
2024-03-27 19:58:53 +11:00
Hugo van Kemenade
73bf04474f
enum can't be None
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 10:35:28 +02:00
Hugo van Kemenade
98c7d90af6
Variables can be None; update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 09:16:31 +02:00
Andrew Murray
142473c7b4 Support GZIP_1 compression 2024-03-26 21:29:28 +11:00
Andrew Murray
984480fd19 Updated xorgproto to 2024.1 2024-03-26 20:17:06 +11:00
Andrew Murray
e79d1746f2 Support conversion from RGB to La 2024-03-26 19:57:17 +11:00
Andrew Murray
ab8f465f1a Use transparency info when converting from RGB to LA 2024-03-26 19:55:22 +11:00
Andrew Murray
2c6258bee5 Updated indents 2024-03-26 06:08:10 +11:00
Andrew Murray
9d101bffeb
Removed reference to "current version"
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-26 06:07:39 +11:00
Andrew Murray
fb84c546b7 Removed references to the "current version" 2024-03-26 06:00:03 +11:00
Andrew Murray
58c4c757a2 Update CHANGES.rst [ci skip] 2024-03-25 21:06:10 +11:00
Andrew Murray
e0b1b38567
Merge pull request #7900 from scaramallion/dev-j2k-precision
Use I;16 mode for 9-bit JPEG 2000 images
2024-03-25 21:03:21 +11:00
scaramallion
144959ba9e
Merge pull request #2 from radarhere/dev-j2k-precision
Simplified code
2024-03-25 20:16:45 +11:00
scaramallion
7ca9bddf93
Update Tests/test_file_jpeg2k.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-25 20:13:45 +11:00
Andrew Murray
0f49eaf230 Simplified code 2024-03-25 18:23:52 +11:00
scaramallion
1f182ce8da Fix parsing the J2K header 2024-03-25 17:39:21 +11:00
Hugo van Kemenade
5e448b3013
Merge pull request #7904 from radarhere/releasenotes
Added release notes for #7872, #7882 and #7891
2024-03-25 07:56:10 +02:00
Andrew Murray
38f9193796 Added release notes for #7872 2024-03-25 10:35:00 +11:00
Andrew Murray
d7dba1cc67 Added release notes for #7882 2024-03-25 10:04:02 +11:00
Andrew Murray
0248e41800 Added release notes for #7891 2024-03-25 10:02:19 +11:00
pre-commit-ci[bot]
901c13c4b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-24 04:47:28 +00:00
scaramallion
ce060a8e8b Fix 9-bit JPEG 2000 images not using I;16 2024-03-24 15:40:11 +11:00
Andrew Murray
19cd94bdb3
Merge pull request #7895 from python-pillow/clean-up-authors-contributors
Clean up authors and contributors
2024-03-24 14:59:26 +11:00
Jeffrey A. Clark
567ee6bdaa
Update docs/conf.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-23 17:50:41 -04:00
Hugo van Kemenade
eff78cb514 Skip PYI034 as typing.Self is in Python 3.10+ 2024-03-23 20:52:51 +02:00
Hugo van Kemenade
20d8095439 Fix: PYI041 Use float instead of int | float 2024-03-23 20:52:50 +02:00
Hugo van Kemenade
6ed952b510 Fix: PYI024 Use typing.NamedTuple instead of collections.namedtuple 2024-03-23 20:52:50 +02:00
Hugo van Kemenade
5d37d028d3 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:44:43 +02:00
Hugo van Kemenade
41ffc1de81 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:41:29 +02:00