Andrew Murray
|
06c331af5d
|
Added type hints to frombuffer
|
2024-09-06 15:16:59 +10:00 |
|
Hugo van Kemenade
|
8aa1e9209b
|
Merge pull request #8336 from radarhere/type_hint_imagefile
|
2024-09-04 14:56:23 +03:00 |
|
Hugo van Kemenade
|
9308f11ebe
|
Merge pull request #8231 from radarhere/ppm_i16
|
2024-09-04 14:46:31 +03:00 |
|
Andrew Murray
|
d00f3656a6
|
Changed im.tile to never be None
|
2024-08-30 22:28:03 +10:00 |
|
Andrew Murray
|
497080f63b
|
Added type hint to ImageFile._save tile parameter
|
2024-08-15 07:30:01 +10:00 |
|
Andrew Murray
|
8e730e17ae
|
Allow saving I;16 images as PPM
|
2024-07-13 13:00:58 +10:00 |
|
Andrew Murray
|
2d1fe7572f
|
Added type hints
|
2024-06-10 14:15:28 +10:00 |
|
Andrew Murray
|
f69168523e
|
Do not calculate destination length each time
|
2024-04-01 15:24:10 +11:00 |
|
Andrew Murray
|
3ba8eb3b7e
|
Raise a ValueError for negative values when loading P1-P3 PPM images
|
2024-03-16 12:29:21 +11:00 |
|
Andrew Murray
|
47eaf0937f
|
Use IO[bytes] in type hints
|
2024-02-13 22:26:23 +11:00 |
|
Andrew Murray
|
7972332bc5
|
Added type hints
|
2024-01-17 19:22:45 +11:00 |
|
Andrew Murray
|
6c320323b4
|
Only set row order when needed
|
2024-01-09 12:47:27 +11:00 |
|
Andrew Murray
|
673eb9a845
|
Merge branch 'main' into ppm
|
2024-01-09 12:46:55 +11:00 |
|
Ondrej Baranovič
|
f044d53fd1
|
swap conditions
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
2024-01-08 17:17:17 +01:00 |
|
Andrew Murray
|
bb55274845
|
Removed PPM loop to read header tokens
|
2024-01-07 18:49:01 +11:00 |
|
Nulano
|
0d841aab9a
|
add support for grayscale pfm image format
|
2024-01-06 14:08:51 +01:00 |
|
Hugo van Kemenade
|
43b2f61e79
|
Add 'from __future__ import annotations' using Ruff/isort
|
2023-12-21 13:13:31 +02:00 |
|
Aarni Koskela
|
0c705692ea
|
Remove old commented-out code
|
2023-11-06 21:21:07 +02:00 |
|
Andrew Murray
|
9979a822c7
|
Changed Image mode property to be read-only by default
|
2023-07-29 09:28:18 +10:00 |
|
Andrew Murray
|
5932a0bd19
|
Clear half token after use
|
2023-04-01 09:23:57 +11:00 |
|
pre-commit-ci[bot]
|
24183d652e
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
|
2023-02-06 19:27:19 +00:00 |
|
Hugo van Kemenade
|
2ae55ccbda
|
Improve exception traceback readability
|
2022-12-30 00:07:52 +02:00 |
|
Andrew Murray
|
967034356a
|
Fixed BytesWarning
|
2022-12-21 14:20:47 +11:00 |
|
Andrew Murray
|
1bac1cf6f5
|
Moved all comments logic into _ignore_comments()
|
2022-06-14 21:39:55 +10:00 |
|
Andrew Murray
|
c4d51fb268
|
Added support for PPM arbitrary maxval in plain formats
|
2022-06-13 19:55:25 +10:00 |
|
Andrew Murray
|
5051a29a4e
|
Merge branch 'main' into plainPPM
|
2022-06-12 16:11:17 +10:00 |
|
Hugo van Kemenade
|
87c2373265
|
Merge pull request #6242 from radarhere/ppm_maxval
|
2022-05-01 21:21:52 +03:00 |
|
Andrew Murray
|
81b473f9d2
|
Raise ValueError for invalid maxval
|
2022-04-30 10:37:50 +10:00 |
|
Andrew Murray
|
5867e0bbac
|
Decode bytes before passing to f-string
|
2022-04-24 15:42:45 +10:00 |
|
Andrew Murray
|
edc6c3d2f0
|
Use maxval instead of unreliable 32-bit specific behaviour
|
2022-03-16 22:10:47 +11:00 |
|
Andrew Murray
|
e3b53dc7e0
|
Use SAFEBLOCK instead of arbitrary large number
|
2022-03-16 21:23:29 +11:00 |
|
Andrew Murray
|
0d5a2d2b83
|
Allow PyDecoder to pass truncated data to C decoder
|
2022-03-13 14:11:28 +11:00 |
|
Andrew Murray
|
e32a94e835
|
Removed tokens_read variable
|
2022-03-13 13:36:26 +11:00 |
|
Andrew Murray
|
4fcef0d163
|
Removed re-raising of exception
|
2022-03-12 17:44:32 +11:00 |
|
Andrew Murray
|
9e04416c6c
|
Removed token_spans variable
|
2022-03-12 17:40:08 +11:00 |
|
Andrew Murray
|
073acd4c82
|
Moved decoder names out of MODES
|
2022-03-12 17:32:15 +11:00 |
|
Andrew Murray
|
ad07b04678
|
Maximum maxval is 65535
|
2022-03-10 09:55:47 +11:00 |
|
Andrew Murray
|
4283a604c0
|
Added support for arbitrary maxval
|
2022-03-09 22:29:45 +11:00 |
|
pre-commit-ci[bot]
|
0215175e1d
|
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
|
2022-03-06 02:39:09 +00:00 |
|
Andrew Murray
|
d20f39d02e
|
Merge branch 'main' into plainPPM
|
2022-03-06 13:38:19 +11:00 |
|
Andrew Murray
|
2922a00e9c
|
Renamed decoder
|
2022-03-04 17:08:40 +11:00 |
|
Piolie
|
be97a851a8
|
Update src/PIL/PpmImagePlugin.py
Remove commented line.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
|
2022-03-04 17:03:17 +11:00 |
|
Piolie
|
652f447412
|
Implement grayscale/color decoder
|
2022-03-04 16:59:01 +11:00 |
|
Piolie
|
ea7e108ca3
|
Implement bitonal decoder
|
2022-03-04 16:58:56 +11:00 |
|
Piolie
|
1ed05715d2
|
Expand preamble and _open function
|
2022-03-04 16:58:48 +11:00 |
|
Andrew Murray
|
72b7ab54bd
|
pre-commit autoupdate --freeze
|
2022-03-04 16:42:24 +11:00 |
|
Andrew Murray
|
f7504b1ef9
|
Changed variable
|
2022-03-04 15:49:37 +11:00 |
|
Andrew Murray
|
4f8173f53f
|
Refactored to reduce risk of infinite loop
|
2022-03-04 15:22:47 +11:00 |
|
Andrew Murray
|
f5b9e2c43a
|
Explicitly check if magic number is empty
|
2022-03-04 12:29:20 +11:00 |
|
Andrew Murray
|
3426052874
|
Removed re-raising of exception
|
2022-03-04 12:27:28 +11:00 |
|