Andrew Murray
84e275d906
Loading does not change mode
2024-09-18 20:27:35 +10:00
Andrew Murray
f1e86965f6
Use transposed size after opening for TIFF images
2024-09-18 20:26:06 +10:00
Andrew Murray
06c331af5d
Added type hints to frombuffer
2024-09-06 15:16:59 +10:00
Hugo van Kemenade
eaeda4a6be
Merge pull request #8339 from radarhere/type_hint
2024-09-04 14:57:01 +03:00
Andrew Murray
e47b181084
Added type hints
2024-08-31 18:48:16 +10:00
Andrew Murray
8699f13a74
Require fp parameter
2024-08-30 22:28:13 +10:00
Andrew Murray
d00f3656a6
Changed im.tile to never be None
2024-08-30 22:28:03 +10:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init
2024-08-28 08:31:09 +10:00
Andrew Murray
e6e5ef5c5f
Added type hints
2024-08-21 08:05:02 +10:00
Andrew Murray
497080f63b
Added type hint to ImageFile._save tile parameter
2024-08-15 07:30:01 +10:00
Andrew Murray
8737709781
Added return type to ImageFile.load()
2024-08-15 07:30:00 +10:00
Andrew Murray
4d0e8e74b4
Use im property
2024-08-10 10:20:08 +10:00
Andrew Murray
8f1157a61d
Added type hints to Image.__init__()
2024-08-02 23:30:27 +10:00
Andrew Murray
accfaf1c09
Added type hints
2024-07-30 20:20:09 +10:00
Andrew Murray
01529d8b09
Added type hints
2024-07-15 19:23:36 +10:00
Andrew Murray
5bae934317
Added type hints
2024-07-12 21:16:56 +10:00
Andrew Murray
8a05e32336
Added type hints
2024-07-08 20:09:45 +10:00
Andrew Murray
f2302ab716
Added type hints
2024-06-24 21:04:33 +10:00
Andrew Murray
1eb960f7e3
Added type hints
2024-06-11 23:26:00 +10:00
Andrew Murray
2d1fe7572f
Added type hints
2024-06-10 14:15:28 +10:00
Andrew Murray
8a3a72e51d
Added type hints
2024-05-18 16:06:50 +10:00
Andrew Murray
e419fd7ab4
Added type hints
2024-05-15 20:19:09 +10: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
Hugo van Kemenade
80fd507335
Merge pull request #7713 from radarhere/load
2024-03-11 17:34:38 +02:00
Andrew Murray
6d78d42769
Added type hints
2024-03-02 13:12:17 +11:00
Andrew Murray
47eaf0937f
Use IO[bytes] in type hints
2024-02-13 22:26:23 +11:00
Andrew Murray
8d96e3bc59
Changed name of first _Tile parameter
2024-02-02 23:54:31 +11:00
Andrew Murray
7972332bc5
Added type hints
2024-01-17 19:22:45 +11:00
pre-commit-ci[bot]
edaf7acdb3
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-01-15 22:01:19 +00:00
Andrew Murray
6a2bdb6feb
Added type hints
2024-01-16 09:00:40 +11:00
Andrew Murray
c75a93b9a3
Added type hints
2024-01-15 16:11:48 +11:00
Andrew Murray
543b5a6741
Use consistent arguments for load_read
2024-01-13 21:11:16 +11:00
Nulano
cc51dace35
fix types hints for ImageFile._Tile
2023-12-27 14:55:30 +01:00
Hugo van Kemenade
dd42a24f9e
Merge pull request #7565 from radarhere/tile
2023-12-21 12:59:28 +02:00
Benjamin Gilbert
e1fb1ab5c4
Deprecate raise_oserror() for removal in Pillow 12
...
It's only useful if the caller has an IMAGING_CODEC_* error code, which
are only produced by codec decode() methods and are automatically
translated by ImageFile.
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-13 02:17:32 -06:00
Benjamin Gilbert
ec17dc11ba
Translate encoder error codes to strings
...
When decoding, we use raise_oserror() to convert codec error codes to
strings. Adapt that code to be used when encoding as well. Add a new
helper function that returns the exception so we can still raise
`from exc`.
2023-12-12 23:13:51 -06:00
Andrew Murray
5aadeb5004
Moved _Tile to ImageFile
2023-12-02 21:36:17 +11:00
Andrew Murray
49578f0059
Merge branch 'main' into improved_dds
2023-12-02 21:35:20 +11:00
Andrew Murray
a07bac3a56
Attempt memory mapping when tile args is a string
2023-11-21 21:45:14 +11:00
Aarni Koskela
0c705692ea
Remove old commented-out code
2023-11-06 21:21:07 +02:00
Andrew Murray
a54d28a7bc
Merge branch 'main' into improved_dds
2023-10-21 14:27:31 +11:00
Andrew Murray
8b71f3d3c1
Added messages to errors
2023-10-19 18:42:41 +11:00
Andrew Murray
5e9a2e3000
Renamed "tile_args" to "args" for consistency with existing ImageFile variable
2023-10-17 19:10:24 +11:00
REDxEYE
a5dde8b1c4
Apply suggestion for PR
2023-10-12 19:09:28 +03:00
pre-commit-ci[bot]
777c54a4d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-15 00:09:03 +00:00
REDxEYE
9165771d5e
Add BC5U support. Seen in Amnesia: The Bunker
2023-06-15 03:08:04 +03:00
pre-commit-ci[bot]
3602e35818
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-15 02:37:36 +03:00
REDxEYE
de2b4be9b9
Add Tile namedtuple for code readability.
...
Add typing info to Image.tile
2023-06-15 02:30:31 +03:00
Andrew Murray
fcc59a4001
Use existing variable names from ImageFile
2023-02-25 16:31:26 +02:00