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
431fe0dcc8
Rename protocol to SupportsGetData
2024-05-10 11:46:35 +02:00
Andrew Murray
b2ce2f6ec4
Merge branch 'main' into type_hints
2024-05-09 08:58:03 +10: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
58ee112a9a
Merge branch 'main' into type_hint
2024-05-08 18:04:02 +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
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
a304fd5f41
Merge branch 'main' into type_hints
2024-04-30 19:41:34 +10:00
Nulano
5f805c39cc
Added type hints for PixelAccess methods and others
2024-04-29 23:52:51 +02:00
Andrew Murray
2250fbeb9a
Added type hints
2024-04-29 20:25:11 +10:00
Andrew Murray
49ce63d257
Merge branch 'main' into bgr
2024-04-25 09:13:20 +10:00
Andrew Murray
4171435db4
Added more modes
2024-04-22 09:23:41 +10: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
84238bd459
Merge branch 'main' into types/fromarray
2024-04-07 08:32:48 +10:00
Andrew Murray
48b270590c
accept returns bool or str
2024-04-06 18:31:08 +02:00
Nulano
819e1b9dd2
add type hints for Image.save
2024-04-04 23:38:50 +02:00
Nulano
8c14a394c1
add type hints for Image.open and Image.init
2024-04-04 20:01:24 +02:00
Andrew Murray
e85a84baa7
Added SupportsArrayInterface
2024-04-03 20:00:40 +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
7c5d0b9284
Add type hints
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:44:27 -06:00
Hugo van Kemenade
008b28eb0c
Add type hints
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:20:11 -06:00
Hugo van Kemenade
b6c755df32
Add type hints
...
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 22:05:16 +03:00
Hugo van Kemenade
d734c8b702
Merge pull request #7888 from radarhere/convert_rgb
2024-03-28 18:11:12 +02: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
fb84c546b7
Removed references to the "current version"
2024-03-26 06:00:03 +11:00
Andrew Murray
171e497e05
Raise ValueError if kmeans is negative
2024-03-22 17:36:04 +11:00
Andrew Murray
8b6a182815
Support conversion from RGB to RGBa
2024-03-21 16:25:40 +11:00
Andrew Murray
e2986e1989
Do not upgrade NumPy
2024-03-15 20:41:15 +11:00
Hugo van Kemenade
9fec5d581d
Merge pull request #7842 from radarhere/exif
2024-03-11 17:40:36 +02:00
Hugo van Kemenade
3cdd49f31f
Merge pull request #7801 from radarhere/codecs
2024-03-11 17:38:12 +02:00
Andrew Murray
b7f39076a1
Merge pull request #7846 from radarhere/type_hints
...
Added type hints to additional tests
2024-03-03 21:33:08 +11:00
Andrew Murray
d6a3f89e27
Open 16-bit grayscale PNGs as I;16
2024-03-02 15:39:43 +11:00
Andrew Murray
6d78d42769
Added type hints
2024-03-02 13:12:17 +11:00
Andrew Murray
492943a0ff
Fix logged tag name when loading with getexif()
2024-02-29 20:53:22 +11:00
Andrew Murray
5c858d75e4
Added type hints
2024-02-17 10:45:52 +11:00
Andrew Murray
3199c0ea40
Decoder and encoders subclass PyDecoder and PyEncoder
2024-02-15 20:24:08 +11:00
Andrew Murray
29dd02509d
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-11 22:02:55 +11:00
Andrew Murray
d02a778efd
Removed no cover pragmas
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:57:59 +11:00
Andrew Murray
68db96981c
Removed else
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:50:48 +11:00
Andrew Murray
19a6edeecc
Added type hints
2024-02-10 19:50:45 +11:00
Andrew Murray
152a24e13a
Simplified code
2024-02-10 16:48:02 +11:00
Andrew Murray
a118a82c30
Use os.path.realpath consistently when os.fspath is used
2024-02-08 18:48:45 +11:00
Andrew Murray
159fc068ca
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-07 20:50:36 +11:00
Andrew Murray
5a8e7dda79
Added type hints
2024-02-05 20:36:34 +11:00
Hugo van Kemenade
61d47c3dfa
More support for arbitrary os.PathLike
2024-01-27 14:06:06 +02:00
Andrew Murray
7972332bc5
Added type hints
2024-01-17 19:22:45 +11:00
Andrew Murray
5a587193c7
Added type hints
2024-01-16 12:22:59 +11:00
Andrew Murray
6a2bdb6feb
Added type hints
2024-01-16 09:00:40 +11:00
Andrew Murray
575edbefe4
Added type hints
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-15 18:25:31 +11:00
Andrew Murray
c75a93b9a3
Added type hints
2024-01-15 16:11:48 +11:00
mergify[bot]
ed9e29d31e
Merge pull request #7714 from radarhere/type_hints_fits
...
Added type hints to FitsImagePlugin
2024-01-14 12:58:11 +00:00
Andrew Murray
ffd0363b65
Added type hints
2024-01-13 16:26:15 +11:00
Andrew Murray
10cf2f2651
Added type hints
2024-01-13 14:40:59 +11:00
Andrew Murray
38bfe3cddf
Added type hint
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-10 23:36:26 +11:00
Andrew Murray
659098c6ac
Added type hints
2024-01-10 22:05:26 +11:00
Nulano
fc7088a561
improve ImageTransform documentation
2024-01-02 14:52:12 +01:00
Andrew Murray
24e9485e6b
Merge pull request #7671 from radarhere/imagetransform
...
Added type hints to ImageTransform
2024-01-01 21:45:56 +11:00
Andrew Murray
57096f55cf
Merge pull request #7642 from nulano/types-util
...
Add type hints to _util
2024-01-01 21:27:57 +11:00
Andrew Murray
4da1e49036
Added type hints
2024-01-01 19:22:01 +11:00
Andrew Murray
e1ea522f70
Added further type hints
2023-12-31 17:41:13 +02:00
Hugo van Kemenade
d71cf168ee
Merge pull request #7566 from radarhere/exit
2023-12-31 17:37:43 +02:00
Nulano
90d5552800
use _util.DeferredError.new everywhere
2023-12-27 14:55:30 +01:00
Andrew Murray
85818cd616
Added type hints to FontFile and subclasses
2023-12-27 12:27:21 +11:00
Andrew Murray
f8d75032db
Added strict type hints
2023-12-25 18:58:47 +11:00
Andrew Murray
1f9dafec80
Added type hints for format and format_description
2023-12-19 14:11:00 +11:00
Andrew Murray
ac1f10fa82
Merge pull request #7576 from deliangyang/main
...
Import plugins relative to the module
2023-12-14 18:28:22 +11:00
Hugo van Kemenade
27d7bd10c8
Use list comprehensions to create transformed lists
2023-12-03 21:59:44 +02:00
Hugo van Kemenade
76446ee450
Merge pull request #7524 from cclauss/ruff-rules-C4-PERF102-PIE810-PLR
2023-12-01 17:09:25 +02:00
Andrew Murray
5fb86c55ed
Moved code closing fp and _fp into common method
2023-11-29 20:05:17 +11:00
helloworld
b235aa98c6
fix: use parent_name instead of parent_module
2023-11-28 20:21:03 +08:00
Deliang Yang
6825a76692
fix: Importing plugins from a user-specified installation directory
...
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
fix: Wrong path replacement
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
fix: typo
2023-11-28 08:25:16 +08:00
Andrew Murray
5431b15bd2
Do not assign new fp attribute to image when exiting context manager
2023-11-24 15:19:19 +11:00
Andrew Murray
67e1253202
Do not assign new fp attribute to image when closing
2023-11-17 08:32:25 +11:00
Raphael Vieira Rossi
b25ece364b
fix: check object Image has attribute 'fp' when closes
2023-11-16 16:46:11 -03:00
Aarni Koskela
f47633a24a
Apply suggestions from code review
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-13 09:28:01 +02:00
Aarni Koskela
126bc44e9e
Fix up most noqas
...
Update Tests/bench_cffi_access.py
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-11-12 13:47:52 +02:00
Christian Clauss
fd59f91d17
ruff: Minor optimizations of list comprehensions, x in set, etc.
2023-11-06 19:13:47 +06:00
Aarni Koskela
9e615b6ad3
Add noqas for UP031
2023-11-06 12:43:14 +02:00
Andrew Murray
91f115bead
Fixed im.frombytes() for images with a zero dimension
2023-10-25 08:52:26 +11:00
Andrew Murray
5071692039
Fixed Image.frombytes() for images with a zero dimension
2023-10-25 08:52:06 +11:00
Andrew Murray
19aeed07bf
Merge branch 'main' into gray
2023-10-20 07:47:17 +11:00
Andrew Murray
d682c18ded
Use "gray" more consistently
2023-10-19 19:12:01 +11:00
Andrew Murray
8b71f3d3c1
Added messages to errors
2023-10-19 18:42:41 +11:00
Hugo van Kemenade
ebefb5f1e0
Merge pull request #7442 from radarhere/warning
2023-10-14 01:30:59 +02:00
Andrew Murray
31df7b1655
Use new() instead of Image()._new()
2023-10-13 15:41:26 +11:00