Commit Graph

2956 Commits

Author SHA1 Message Date
Andrew Murray
45cdc53bbb Updated type hints 2024-06-08 18:03:06 +10:00
Andrew Murray
d2603b779a im color could be a tuple with a single float 2024-06-08 17:16:50 +10:00
Andrew Murray
d566c04d5b Updated type hints 2024-06-03 14:20:01 +10:00
Andrew Murray
c0ee645d0d
Merge branch 'main' into type-annotations 2024-05-21 22:44:03 +10:00
Sebastian Rittau
b2316f46cb
Use just str for _string_length_check
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-18 11:22:57 +02:00
Andrew Murray
73a3e4938c
Merge branch 'main' into type-annotations 2024-05-15 21:48:41 +10:00
Andrew Murray
e419fd7ab4 Added type hints 2024-05-15 20:19:09 +10:00
Andrew Murray
a8d154877d Added type hints 2024-05-13 18:47:51 +10:00
Hugo van Kemenade
0c8be38878
Merge pull request #7999 from radarhere/accept
Added MPEG accept function
2024-05-11 23:02:51 +03:00
Hugo van Kemenade
5e48d54769
Merge pull request #7984 from radarhere/modes
Added more modes to Image.MODES
2024-05-11 23:01:42 +03:00
Sebastian Rittau
6d6dfd176c
Revert unnecessary formatting change 2024-05-11 10:46:20 +02:00
Sebastian Rittau
6310280428
Move an import behind the TYPE_CHECKING flag
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-11 10:44:52 +02:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Hugo van Kemenade
bfbe339ae3
Merge pull request #8045 from radarhere/strings 2024-05-10 18:44:37 +03:00
Sebastian Rittau
431fe0dcc8 Rename protocol to SupportsGetData 2024-05-10 11:46:35 +02:00
Andrew Murray
ce8dedadfd
Merge branch 'main' into modes 2024-05-08 22:11:50 +10:00
Sebastian Rittau
bb8718e581 Hopefully the last Python 3.8 instance :/ 2024-05-08 12:54:44 +02:00
Sebastian Rittau
296050f382 More Python 3.8 compatibility 2024-05-08 12:26:45 +02:00
Sebastian Rittau
7ae8d37138 Make GetDataTransform public 2024-05-08 12:14:59 +02:00
Sebastian Rittau
ef35d79264 Python 3.8 compatibility 2024-05-08 12:14:37 +02:00
Andrew Murray
c6a3f0fdd8
Merge branch 'main' into accept 2024-05-08 18:45:10 +10:00
Andrew Murray
58ee112a9a
Merge branch 'main' into type_hint 2024-05-08 18:04:02 +10:00
Andrew Murray
ed0867abec Set stream length for later use 2024-05-08 06:30:43 +10:00
Sebastian Rittau
d63caf266d Various fixes 2024-05-07 15:59:20 +02:00
Sebastian Rittau
d44e9fccb1 Various fixes 2024-05-07 14:53:26 +02:00
pre-commit-ci[bot]
1aa3886ed7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-07 12:34:02 +00:00
Sebastian Rittau
c92f59d758 Add various type annotations 2024-05-07 14:30:34 +02:00
Andrew Murray
b17f1e507b Use f-strings 2024-05-07 14:01:08 +10:00
pre-commit-ci[bot]
71b8d99b36 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-04 19:27:45 +00:00
mrKazzila
984c2e7f30 chore: update __repr__ for PdfName 2024-05-04 19:26:22 +03:00
mrKazzila
74063feadc chore: add f-string formatting 2024-05-04 19:21:49 +03:00
Andrew Murray
6036d81d97 Added type hints 2024-05-04 20:51:54 +10:00
Andrew Murray
2250fbeb9a Added type hints 2024-04-29 20:25:11 +10:00
Cees Timmerman
8cc48b24fe
Update ExifTags.py
Fixed typo. No other instances in this repo.
2024-04-26 17:17:44 +02:00
Andrew Murray
49ce63d257
Merge branch 'main' into bgr 2024-04-25 09:13:20 +10:00
Hugo van Kemenade
02915c778e
Merge pull request #7996 from radarhere/tiff_px 2024-04-22 17:10:44 +03:00
Andrew Murray
2e1d2b2029 Updated deprecation message 2024-04-22 19:15:38 +10:00
Andrew Murray
023d017da0 Deprecate libtiff < 4 2024-04-22 18:26:20 +10:00
Andrew Murray
f690b7f691 Added MPEG accept function 2024-04-22 13:39:35 +10:00
Andrew Murray
4171435db4 Added more modes 2024-04-22 09:23:41 +10:00
Andrew Murray
d5c1ff4b43 Removed type hint ignores 2024-04-22 09:23:10 +10:00
Andrew Murray
bb2411dd01 Support reading P mode TIFF images with padding 2024-04-22 08:11:45 +10:00
Hugo van Kemenade
f8160b858a
Merge pull request #7936 from adamjstewart/types/fromarray 2024-04-17 16:43:57 +03:00
Andrew Murray
03835ce6f5 Corrected UnixViewer command 2024-04-17 14:51:12 +10:00
Hugo van Kemenade
0e90c1c9ae
Merge pull request #7952 from nulano/types-imagestat 2024-04-16 20:57:14 +03:00
Ondrej Baranovič
2e73bed053
ImageStat: simplify if block
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-16 18:34:48 +02:00
Ondrej Baranovič
8b62538617
ImageStat: simplify call to Image.histogram(mask)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-16 18:27:48 +02:00
Adam J. Stewart
c655dc0c6b
Use a property
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-04-16 17:53:48 +02:00
Andrew Murray
d431c97ba3 Deprecate BGR;15, BGR;16 and BGR;24 2024-04-15 19:28:52 +10:00
Andrew Murray
22705d3da5
Merge pull request #7956 from Cirras/obscure-bitmap-headers
Add support for reading `BITMAPV2INFOHEADER` and `BITMAPV3INFOHEADER`
2024-04-13 16:25:26 +10:00