Commit Graph

577 Commits

Author SHA1 Message Date
Andrew Murray
ab8f465f1a Use transparency info when converting from RGB to LA 2024-03-26 19:55:22 +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