Hugo van Kemenade
190c53a1b1
Merge pull request #7228 from radarhere/32bit
...
Removed support for 32-bit
2023-06-24 19:02:00 +03:00
Andrew Murray
0d54cf5c7f
Merge pull request #6645 from Yay295/int_def
...
Better C integer definitions
2023-06-24 13:35:23 +10:00
Andrew Murray
b0b0798820
Lint fix
2023-06-23 22:22:33 +10:00
Rozie
43a12542ad
Update Image.show docs to list all viewers used on linux
...
[ci skip]
Accurate description of how default viewer is chosen
2023-06-23 15:05:28 +03:00
Andrew Murray
d6f19625e8
Removed support for 32-bit
2023-06-23 21:52:00 +10:00
Andrew Murray
cb8956fffb
Convert to HSV if mode is HSV in getcolor()
2023-06-22 23:27:45 +10:00
Hugo van Kemenade
d64739f4d1
Merge pull request #7218 from radarhere/null
2023-06-18 21:50:46 +03:00
Andrew Murray
e52fa8fe38
Use relevant extension for temporary file
2023-06-17 14:37:13 +02:00
Antoine Beyeler
f72dd8576e
Changed grabclipboard()
to use PNG compression on macOS
...
Before, a lossy JPG compression was used.
2023-06-17 12:55:58 +02:00
Andrew Murray
fd9bea271a
Compare long long with long long
...
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2023-06-17 14:39:34 +10:00
Andrew Murray
7044038e70
Fixed decompression bomb check
2023-06-17 14:35:44 +10:00
Andrew Murray
98cc2e63ac
Destroy image on error
2023-06-15 14:27:38 +10:00
Andrew Murray
618c00c4ea
Return early if image is null
2023-06-15 14:27:33 +10: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
Andrew Murray
bd4826591b
Removed INVALID enum
2023-06-15 02:49:09 +03:00
Andrew Murray
cadac4aad2
Corrected error messages
2023-06-15 02:47:30 +03:00
Andrew Murray
78756cd17b
Simplified imports
2023-06-15 02:46:32 +03:00
Andrew Murray
9a7bd0d10b
Fixed big-endian bug
2023-06-15 02:45:46 +03:00
Andrew Murray
b87d4e075e
Restored formatting
2023-06-15 02:45:46 +03:00
Andrew Murray
eda4192618
Fixed typo
2023-06-15 02:45:46 +03:00
REDxEYE
15c90ac9bb
Simplified save code
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-06-15 02:45:46 +03:00
REDxEYE
91664c9d8e
Small refactor
2023-06-15 02:45:43 +03:00
REDxEYE
7c25e0bbda
Small refactor
2023-06-15 02:43:42 +03:00
pre-commit-ci[bot]
a63fdc2235
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-15 02:42:43 +03:00
REDxEYE
de8b89c823
Add support for writing LA dds textures
2023-06-15 02:42:41 +03:00
REDxEYE
429dc2850e
Remove unnecessary tuple creation
2023-06-15 02:37:38 +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
19887374ae
Add support for single channel textures
2023-06-15 02:33:55 +03:00
REDxEYE
3f77a9e235
Remove unused constants
2023-06-15 02:30:34 +03:00
REDxEYE
de2b4be9b9
Add Tile namedtuple for code readability.
...
Add typing info to Image.tile
2023-06-15 02:30:31 +03:00
REDxEYE
f2d91fcdaa
Add IntEnum/IntFlag for most of DDS members
2023-06-15 02:27:18 +03:00
mergify[bot]
561986ee71
Merge pull request #7092 from radarhere/exif_transpose
...
Added in_place argument to ImageOps.exif_transpose()
2023-06-14 07:24:47 +00:00
Andrew Murray
7d97fa8b86
Use snake case
2023-06-14 16:12:47 +10:00
Hugo van Kemenade
76a8e9ceb3
Merge pull request #7177 from radarhere/freetype
2023-06-14 09:06:59 +03:00
Andrew Murray
541d2605b9
Allow alpha differences to indicate different frames when saving GIF
2023-06-14 14:21:07 +10:00
Andrew Murray
044de40c93
Document that alpha_only is a keyword-only argument
2023-06-14 11:28:14 +10:00
Andrew Murray
17b19b5668
Merge branch 'main' into apng
2023-06-14 11:26:42 +10:00
Andrew Murray
d7c7b832f1
Highlight code
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:42 +10:00
Andrew Murray
bae918280d
Changed alpha_only to keyword-only argument
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:12 +10:00
Andrew Murray
f338f35657
Changed inPlace to be keyword-only argument
2023-06-14 10:01:36 +10:00
Andrew Murray
8bbd4ada9b
Merge branch 'main' into exif_transpose
2023-06-14 09:57:25 +10:00
Andrew Murray
68edbbca94
Merge branch 'main' into int_def
2023-06-14 09:11:41 +10:00
Andrew Murray
538971532d
Corrected error code
...
Co-authored-by: nulano <nulano@nulano.eu>
2023-06-14 08:55:21 +10:00
Andrew Murray
c24c1ccf81
Use "not in"
...
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-14 08:52:55 +10:00
Hugo van Kemenade
8f3ccff8f2
Merge pull request #7206 from radarhere/text_layout
2023-06-13 20:31:24 +03:00
Hugo van Kemenade
c62c514299
Merge pull request #7187 from radarhere/putpalette
2023-06-13 20:10:33 +03:00
Hugo van Kemenade
9d08c8247d
Merge pull request #7180 from radarhere/int64
2023-06-13 20:08:26 +03:00
Hugo van Kemenade
ae921956ba
Merge pull request #7078 from radarhere/long8
2023-06-13 19:48:55 +03:00
Hugo van Kemenade
0c7061e7e4
Merge pull request #7056 from radarhere/eps
2023-06-13 19:47:55 +03:00
Andrew Murray
1756df4615
Removed unused private method
2023-06-10 20:24:34 +10:00
Andrew Murray
4dcca33d30
Removed unused arguments
2023-06-10 19:06:25 +10:00
Andrew Murray
389ad11693
Only call text_layout once in getmask2
2023-06-10 17:10:42 +10:00
Andrew Murray
aeb6e9909e
Removed unused argument
2023-06-10 15:57:05 +10:00
Andrew Murray
748a4d0fcd
Removed unused variable
2023-06-10 14:26:28 +10:00
Andrew Murray
da6b2ec285
Document order of kernel weights
2023-06-09 10:47:20 +10:00
Andrew Murray
15edb6d625
Fixed signedness comparison warning
2023-06-07 22:33:55 +10:00
mergify[bot]
6b3991befb
Merge pull request #7146 from radarhere/apng_duration
...
Fixed combining single duration across duplicate APNG frames
2023-06-06 08:57:02 +00:00
Andrew Murray
400716da0d
Merge branch 'main' into apng_duration
2023-06-06 18:00:48 +10:00
Andrew Murray
3b65261c96
Remove temporary file when error is raised
2023-06-06 17:54:55 +10:00
Hugo van Kemenade
07be6aad46
Merge pull request #7200 from radarhere/imagegrab
...
Do not use temporary file when grabbing clipboard on Linux
2023-06-06 09:35:03 +03:00
Hugo van Kemenade
3568df8af1
Merge pull request #7141 from radarhere/grabclipboardwin32
2023-06-06 09:24:13 +03:00
Hugo van Kemenade
df873e39db
Merge pull request #7181 from radarhere/gif
2023-06-06 09:22:57 +03:00
Andrew Murray
97bd53392c
Do not use temporary file when grabbing clipboard on Linux
2023-06-05 18:36:41 +10:00
Andrew Murray
0835be95cb
Added comment
2023-06-05 15:07:11 +10:00
Andrew Murray
e45da2ae17
Do not close provided file handles with libtiff
2023-06-05 11:07:09 +10:00
Hugo van Kemenade
9a560c78a8
Merge pull request #7173 from radarhere/relative
2023-06-02 16:00:01 +03:00
Andrew Murray
c45019fe0c
Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12
2023-05-29 12:28:03 +10:00
Andrew Murray
07eccd9798
Fixed calling putpalette() on L and LA images before load()
2023-05-28 06:44:34 +10:00
Andrew Murray
922e239cca
Fixed saving multiple 1 mode images to GIF
2023-05-24 08:55:14 +10:00
Andrew Murray
b8719033ca
Removed unused INT64 definition
2023-05-23 22:53:16 +10:00
Andrew Murray
bce0f0d5a6
Moved function code inline
2023-05-23 21:25:11 +10:00
rrcgat
fffcb558f6
Use image/png mime type for ImageGrab (wl-paste) if possible, otherwise the first mime type taken
2023-05-23 18:44:25 +08:00
Andrew Murray
c656583b84
Merge branch 'main' into fix-imagegrab-with-wl-paste
2023-05-23 08:47:42 +10:00
Andrew Murray
546f6cbc27
Replaced absolute PIL import with relative import
2023-05-20 17:11:43 +10:00
Yay295
f6b516bb06
Adjust C preprocessor block labels
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-19 08:11:39 -05:00
Yay295
724f266460
change INT16 def failure to an error
2023-05-18 17:49:13 -05:00
Yay295
9da0b58eea
move INT8 def to top
2023-05-18 17:49:13 -05:00
Yay295
fbec8f19dd
add check for C99+ to use their defs if possible
2023-05-18 17:49:13 -05:00
Yay295
c2527348ec
add comment explaining why #define and not typedef
2023-05-18 17:49:13 -05:00
Yay295
e9cfe4b6a2
label preprocessor if..else..endif for clarity
2023-05-18 17:49:13 -05:00
Yay295
6de5e999bd
add UINT64 def if INT64 is defined
2023-05-18 17:49:12 -05:00
Yay295
509671c53e
fix INT64 def and add warning if not set
2023-05-18 17:49:12 -05:00
Hugo van Kemenade
a58034b86c
Merge pull request #7135 from n3011/jpg_repr
2023-05-16 12:14:40 +03:00
Hugo van Kemenade
34ff170d8e
Merge pull request #7143 from nulano/imagegrab-prefer-xcb
...
Prefer screenshots using XCB over gnome-screenshot
2023-05-14 19:55:16 +03:00
Ishant Mrinal Haloi
f328383763
Apply suggestions from code review
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-14 11:11:56 +05:30
Andrew Murray
59b7a48570
Updated docstrings
2023-05-13 12:24:50 +10:00
Ishant Mrinal Haloi
2db9c68571
Apply suggestions from code review
...
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-13 07:32:02 +05:30
Ishant Mrinal Haloi
46708099b1
Apply suggestions from code review
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-12 21:56:40 +05:30
Andrew Murray
7e29efd518
Do not catch OSError raised when loading image
2023-05-11 16:29:08 +01:00
Andrew Murray
3ec03c6720
Only check for gnome-screenshot on Linux
...
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-05-10 13:53:55 +10:00
Andrew Murray
c68c508e27
Fixed joined corners for odd dimensions
2023-05-10 13:25:35 +10:00
Andrew Murray
a0b691a219
Fixed combining single duration across duplicate PNG frames
2023-05-09 12:12:16 +10:00
nulano
bb18abc603
prefer screenshots using XCB over gnome-screenshot
2023-05-08 22:57:12 +01:00
Andrew Murray
f67fcf131a
If the clipboard fails to open on Windows, wait and try again
2023-05-08 11:58:05 +10:00
Ishant Mrinal Haloi
ccdce1791d
rename format to image_format
2023-05-06 10:35:28 +05:30
Ishant Mrinal Haloi
2d841e16c2
Apply suggestions from code review
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-06 10:31:58 +05:30
Ishant Mrinal Haloi
5377b0735f
add _repr_jpg_ for ipython display
...
Signed-off-by: Ishant Mrinal Haloi <mrinal.haloi11@gmail.com>
2023-05-04 21:43:57 +05:30
Andrew Murray
a4986ba986
Support reading signed 8-bit TIFF images
2023-05-04 07:54:30 +10:00
Hugo van Kemenade
9636a2aaf1
Merge pull request #7132 from radarhere/regular_polygon_width
2023-05-03 18:21:25 +03:00
Hugo van Kemenade
74a851965c
Merge pull request #7108 from radarhere/filter
2023-05-03 18:18:53 +03:00
Hugo van Kemenade
4c6159b9a3
Merge pull request #7112 from radarhere/grabclipboard_stderr
2023-05-03 18:16:52 +03:00
Andrew Murray
3fc446c277
Added width argument to regular_polygon
2023-05-03 22:54:18 +10:00
Andrew Murray
58e0dd7df9
Merge branch 'main' into apng
2023-05-03 13:42:39 +10:00
Andrew Murray
15ef533df9
Added alpha_only argument to getbbox()
2023-05-02 08:41:18 +10:00
Andrew Murray
ff003bfbcc
Added unpacker from I;16B to I;16
2023-04-30 14:49:40 +10:00
Hugo van Kemenade
139acc4542
Merge pull request #7107 from radarhere/float_font_sizes
...
Support float font sizes
2023-04-29 21:20:46 +03:00
Hugo van Kemenade
380a927fc2
Merge pull request #7102 from radarhere/xref_table
...
Use later value for duplicate xref entries in PdfParser
2023-04-29 21:20:10 +03:00
Andrew Murray
96bdbc4afe
Renamed variable
2023-04-29 19:11:02 +10:00
Andrew Murray
ebd3c47425
When saving, allow alpha differences to indicate different frames
2023-04-29 15:02:11 +10:00
Andrew Murray
ab3d0c071e
Raise error from stderr of Linux grabclipboard command
2023-04-24 21:03:27 +10:00
Andrew Murray
48a6c3f072
Merge pull request #7105 from bigcat88/load-before-deepcopy
...
Load before getting size in __getstate__
2023-04-24 07:47:36 +10:00
Andrew Murray
d0b41da094
Support I mode for BuiltinFilter
2023-04-22 21:22:01 +10:00
Andrew Murray
81a756e93b
Support float font sizes
2023-04-22 13:45:18 +10:00
Andrew Murray
91b69857c7
Removed duplicate code
2023-04-22 10:13:56 +10:00
Alexander Piskun
b10379b3c1
Load image before deepcopy(__getstate__)
...
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2023-04-21 17:42:45 +03:00
Andrew Murray
d2256338b8
Use later value for duplicate xref entries
2023-04-20 23:15:20 +10:00
Andrew Murray
f15d7265f7
Call init() if mimetype is not found with preinit()
2023-04-18 10:33:31 +10:00
Andrew Murray
cc84ff5e7d
Note that open() seeks to the start of file objects
2023-04-17 16:10:29 +10:00
Andrew Murray
8871b95559
Merge branch 'main' into fix-imagegrab-with-wl-paste
2023-04-17 15:28:39 +10:00
Andrew Murray
57bbe6df2c
Remove use of deprecated "bpp" member
2023-04-16 23:16:01 +10:00
Carl Weaver
6d12581385
Update src/PIL/ImageGrab.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-16 15:37:38 +08:00
Andrew Murray
fe8599c5d6
Use ExifTags
2023-04-16 14:04:39 +10:00
Andrew Murray
bcb8dfc2fa
Rearranged code
2023-04-15 22:30:18 +10:00
rrcgat
099d696dc7
Fix ImageGrab with wl-paste
2023-04-15 19:28:54 +08:00
Andrew Murray
8d3014b8bf
Added inPlace argument to exif_transpose()
2023-04-15 21:03:59 +10:00
Nulano
f619675115
Update vendored Raqm to 0.10.1
2023-04-12 21:14:38 +02:00
Andrew Murray
54fddf0181
Merge branch 'main' into version_bump
2023-04-11 07:18:13 +10:00
Andrew Murray
bc0bf5efea
Preserve line spacing backwards compatibility
2023-04-10 18:49:06 +10:00
Andrew Murray
b2301d70d1
Removed ImageFont.getsize and related functions
2023-04-10 16:56:13 +10:00
Andrew Murray
dd15f15d08
Added further field sizes
2023-04-10 09:06:20 +10:00
Andrew Murray
2cba9904db
Removed _category
2023-04-08 11:48:06 +10:00
Hugo van Kemenade
b25bf5161a
Remove Image.coerce_e, deprecated in 9.2.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
584f8c39de
Remove PhotoImage.paste() box parameter, deprecated in 9.2.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c9f11565f1
Remove FreeTypeFont.getmask2 fill parameter, deprecated in 9.2.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
575a038f97
Remove FitsStubImagePlugin, deprecated in 9.1.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c8ec15980b
Remove constants deprecated in 9.1.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
8d83d5e66a
Remove ImageShow.Viewer.show_file file argument, deprecated in 9.1.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
5dbef9e0a8
Remove ImagePalette size parameter, deprecated in 8.4.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
52f4fc59a2
Remove JpegImagePlugin.convert_dict_qtables, deprecated in 8.3.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
ddc4e90235
Remove im.category and related Image.NORMAL, Image.SEQUENCE, Image.CONTAINER, deprecated in 8.2.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
070e770469
Remove support for Tk/Tcl <= 8.4, deprecated in 8.2.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
59c9d87f8a
Remove support for PyQt5 and PySide2, deprecated in 9.2.0
2023-04-06 16:11:36 +03:00
Andrew Murray
1e250e1137
10.0.0.dev0 version bump
2023-04-01 23:36:52 +11:00
Hugo van Kemenade
4f7070e24c
9.6.0.dev0 version bump
2023-04-01 12:34:27 +03:00
Andrew Murray
2203afeafa
Do not set size unnecessarily if image failed to open
2023-04-01 19:36:06 +11:00
Hugo van Kemenade
10794e0d66
9.5.0 version bump
2023-04-01 09:15:01 +03:00
Hugo van Kemenade
48b0be2fb7
Merge pull request #6879 from Yay295/eps_plugin_perf
2023-04-01 08:55:48 +03:00
Hugo van Kemenade
3cfdef395e
Merge pull request #7047 from nulano/freetype-import
...
Do not discard error message if _imagingft fails to import
2023-04-01 08:43:45 +03:00
Andrew Murray
b1b0353d17
Corrected passing TIFF_LONG to libtiff
2023-04-01 12:21:16 +11:00
Andrew Murray
aa9ecac032
Added ImageSourceData to TAGS_V2
2023-04-01 10:27:39 +11:00
Andrew Murray
3cd1e12974
Merge pull request #7052 from radarhere/ppm_half_token
...
Clear PPM half token after use
2023-04-01 10:07:47 +11:00
Andrew Murray
eeaee75a6e
Merge pull request #7021 from radarhere/getmask2
...
Do not render text if image has zero width or height
2023-04-01 09:26:06 +11:00
Andrew Murray
5932a0bd19
Clear half token after use
2023-04-01 09:23:57 +11:00
mergify[bot]
20a7ed291f
Merge pull request #7051 from Yay295/patch-1
...
Add missing word
2023-03-31 13:14:52 +00:00
Yay295
b606da7f0e
add missing word
2023-03-31 07:19:33 -05:00
Andrew Murray
89d2cdfcfa
Fixed warning that nLeft is set but not used
2023-03-31 22:30:36 +11:00
Andrew Murray
59d67fa68a
Only call PyTuple_Check once in getink
2023-03-31 21:59:06 +11:00
Andrew Murray
d84e227204
Fixed warning that variable may be uninitialized
2023-03-31 21:52:37 +11:00
Andrew Murray
485532c1f3
Mention available pixel types when converting from NumPy
2023-03-31 21:00:28 +11:00
Andrew Murray
e95b55acd4
Document loss of palette when converting to NumPy
2023-03-31 20:48:14 +11:00
Hugo van Kemenade
f191666a91
Merge pull request #6999 from radarhere/null
...
Handle failure from PyDict_New or PyList_New
2023-03-31 08:32:13 +03:00
nulano
3d4e9b107d
warn if module is found but fails to import in PIL.features
2023-03-31 02:57:58 +02:00
nulano
e971674011
cleanup in _imagingft
2023-03-31 02:08:58 +02:00
nulano
b18efc775d
do not discard ImportError message in ImageFont
2023-03-31 01:48:17 +02:00
Andrew Murray
448ab0a687
Call FT_Done_MM_Var when returning early
...
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 14:36:58 +11:00
Andrew Murray
7632d8df36
Do not DECREF individual list items, reverting grouping
2023-03-30 12:35:07 +11:00
Andrew Murray
0ea1184bcf
Free additional variables
...
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 07:54:01 +11:00
Yay295
b8b153fd77
Merge branch 'python-pillow:main' into eps_plugin_perf
2023-03-29 10:27:25 -05:00
Andrew Murray
f8be09612d
Merge pull request #6903 from joshware/jp2k_options
...
Support custom comments and PLT markers when saving JPEG2000 images
2023-03-29 23:43:54 +11:00
Andrew Murray
9a7a448219
Increase similiarity between test_plt_marker and _parse_comment
2023-03-29 20:14:29 +11:00
Andrew Murray
2f66d2d6a1
Changed maximum comment length to 65531
2023-03-29 19:25:35 +11:00
Andrew Murray
1fd189164c
Renamed "add_plt" to "plt"
2023-03-27 22:38:29 +11:00
Hugo van Kemenade
1ff0fb4472
Merge pull request #7034 from radarhere/array_interface
2023-03-25 19:16:53 +02:00
Andrew Murray
d5d830dd00
Merge branch 'main' into bgr32
2023-03-25 23:45:48 +11:00
Andrew Murray
7c3fd25433
Allow saving bytes as comments
2023-03-24 09:45:51 +11:00
Hugo van Kemenade
745f540f0e
Merge pull request #7018 from radarhere/apng
2023-03-23 14:56:47 +02:00
Hugo van Kemenade
3d4a6f7d17
Merge pull request #6996 from radarhere/webp
2023-03-23 14:53:21 +02:00
Andrew Murray
6a931861fe
Load before getting size in __array_interface__
2023-03-23 10:12:18 +11:00
Andrew Murray
176b2a2000
Merge branch 'master' into jp2k_options
2023-03-23 08:57:20 +11:00
Hugo van Kemenade
31e8e012bb
Merge pull request #6909 from radarhere/jp2_comment
2023-03-22 23:54:55 +02:00
Andrew Murray
dc79a09d62
Merge branch 'main' into null
2023-03-22 18:56:52 +11:00
Hugo van Kemenade
e7fa3091a0
Merge pull request #7003 from radarhere/reference_count
...
Decrement reference count
2023-03-22 08:05:17 +02:00
nulano
e1d0a96404
remove unused version value
2023-03-21 22:05:27 +00:00
nulano
1a11ba662c
do not insert null into dict
2023-03-21 22:05:26 +00:00
Hugo van Kemenade
5832362215
Merge pull request #7020 from radarhere/no_libtiff
2023-03-21 17:12:59 +02:00
nulano
76d36da12e
avoid Py_DECREF(Py_None)
2023-03-21 00:59:00 +00:00
Andrew Murray
dfeed0eb7e
Group decrementing reference counts for previous axes in font_getvaraxes
2023-03-20 22:44:14 +11:00
Andrew Murray
6328662248
PyUnicode_* may return NULL
2023-03-20 17:36:55 +11:00
Andrew Murray
11d100ce5d
Support creating BGR;15, BGR;16 and BGR;24 images
2023-03-20 00:30:10 +11:00
Andrew Murray
01cdfb6b27
Removed duplicate calls to PyTuple_GET_SIZE
2023-03-19 23:29:17 +11:00
Andrew Murray
fec92ce9cc
Restored deleted docstring
2023-03-19 13:36:43 +11:00
Auto-5
f03f9670fa
Removed incorrect docstring
2023-03-18 14:12:53 +00:00
Andrew Murray
c7d4d1f75a
Fixed typo
...
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-03-18 22:47:04 +11:00
Andrew Murray
80edcd18d1
Do not render text if image has zero width or height
2023-03-17 20:11:35 +11:00
Andrew Murray
5080d35816
Allow libtiff_support_custom_tags to be missing
2023-03-17 11:27:58 +11:00
Andrew Murray
0966293a0d
Consider transparency when applying blend mask
2023-03-16 20:05:56 +11:00
Andrew Murray
9e6ae98362
Dropped support for BGR;32 mode
2023-03-13 17:31:12 +11:00
Andrew Murray
f8d93267e1
Merge branch 'main' into i16n
2023-03-13 14:33:26 +11:00
mergify[bot]
264b19b266
Merge pull request #6852 from radarhere/qoi
...
Added QOI reading
2023-03-12 14:43:19 +00:00
Andrew Murray
56f9b85ad9
Removed unnecessary line
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-13 00:03:08 +11:00
Andrew Murray
36ee817329
Merge branch 'main' into pdf
2023-03-12 23:31:26 +11:00
Hugo van Kemenade
be244b5070
Merge pull request #7005 from radarhere/unclosed_file
2023-03-12 13:12:28 +02:00
Hugo van Kemenade
258cb8d8bf
Merge pull request #6998 from radarhere/ifdrational
2023-03-12 13:09:44 +02:00
Hugo van Kemenade
436ebdb191
Merge pull request #7002 from radarhere/setup_module
2023-03-12 13:09:03 +02:00
Hugo van Kemenade
8ef6503801
Merge pull request #6914 from radarhere/default
2023-03-12 12:39:45 +02:00
Hugo van Kemenade
bfcea9d718
Merge pull request #6988 from radarhere/memoryview
2023-03-11 22:42:09 +02:00
Andrew Murray
b3d7823740
Decrement reference count
2023-03-12 00:11:48 +11:00
Andrew Murray
f9cbc2e084
Close OleFileIO instance when closing or exiting FPX or MIC
2023-03-11 23:11:43 +11:00
Andrew Murray
c63b0ca210
Decrement reference count
2023-03-11 18:32:43 +11:00
Andrew Murray
347dea12a9
Moved potential error earlier
2023-03-10 23:13:15 +11:00
Andrew Murray
929dbba834
Handle failure from PyDict_New or PyList_New
2023-03-10 17:37:06 +11:00
Andrew Murray
6932562974
Added __int__ to IFDRational for Python >= 3.11
2023-03-09 22:21:37 +11:00
Andrew Murray
cbde5b2626
Added reading of JPEG2000 comments
2023-03-09 13:36:22 +11:00
Andrew Murray
2d01875e7c
Added QOI reading
2023-03-09 13:34:44 +11:00
Andrew Murray
459f0d8352
Round duration when saving animated WebP
2023-03-07 18:07:46 +11:00
Andrew Murray
494a3bcf2b
Release buffer on error
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-03-06 10:00:51 +11:00
Andrew Murray
eda95342ae
Merge pull request #6986 from fcarron/fix_libtiff_file_pointer
...
Close file pointer copy in the libtiff encoder if still open
2023-03-05 16:24:19 +11:00
Andrew Murray
b970eb9e5d
Added memoryview support to Dib.frombytes()
2023-03-04 17:18:59 +11:00
Andrew Murray
02afe1f13b
Removed unused profile_fromstring method
2023-03-04 16:35:51 +11:00
Frédéric Carron
2299490082
Close the file pointer copy (_fp) in the libtiff encoder if it is still open.
2023-03-03 11:41:37 +01:00
Yay295
281cbc2755
Merge branch 'python-pillow:main' into eps_plugin_perf
2023-03-02 15:29:12 -06:00
Yay295
60b717a94b
add link to %ImageData definition
...
and remove empty comment lines
2023-03-02 15:27:06 -06:00
Yay295
4f9c3847e8
notes about %ImageData, and use better var names
2023-03-02 15:02:53 -06:00
Hugo van Kemenade
6ca7bcceee
Merge pull request #6976 from radarhere/memoryview
2023-03-02 12:20:41 +02:00
Andrew Murray
a4965a7eaa
Split into x and y errors
2023-03-01 22:06:40 +11:00
Andrew Murray
b84c29a035
Raise an error if co-ordinates are incorrectly ordered
2023-03-01 11:22:35 +11:00
Andrew Murray
9c98f4d515
Release buffer
2023-02-27 09:48:41 +11:00
Hugo van Kemenade
7e8b11b159
Merge pull request #6954 from radarhere/corners
2023-02-26 18:29:35 +02:00
Andrew Murray
6df3ad6f2d
Merge pull request #6971 from akx/clarify-variable-names
...
Clarify some local variable names
2023-02-26 22:45:12 +11:00
Aarni Koskela
bbbaf3c615
Update src/PIL/PcfFontFile.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-02-26 13:03:29 +02:00
Andrew Murray
c799bd8a03
Adjusted variable names and comments to better match specification
2023-02-25 16:31:26 +02:00
Andrew Murray
fcc59a4001
Use existing variable names from ImageFile
2023-02-25 16:31:26 +02:00
Hugo van Kemenade
7d8a08b221
Merge pull request #6958 from radarhere/codeblock
2023-02-25 13:38:29 +02:00
Andrew Murray
132fb9360b
Added memoryview support to frombytes()
2023-02-25 19:10:47 +11:00
Andrew Murray
8a1b9aa0ad
Allow comments in FITS images
2023-02-25 16:44:07 +11:00
Aarni Koskela
8e18415cc5
Clarify variable names in TiffImagePlugin
...
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:09:14 +02:00
Aarni Koskela
6f79e653d6
Clarify variable names in PcfFontFile
...
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:08:20 +02:00
Aarni Koskela
04be46d484
Clarify variable names in ImageFile
...
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:04:38 +02:00
Aarni Koskela
b6b72170a8
Clarify variable names in Image
...
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:59:54 +02:00
Aarni Koskela
f52bbf8950
Clarify variable names in BdfFontFile
...
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:58:51 +02:00
Andrew Murray
742aff3718
Replace Python code-blocks with double colons
2023-02-24 08:17:10 +11:00
Andrew Murray
0d667f5e0b
Do not read "resolution" parameter if it will not be used
2023-02-23 12:44:38 +01:00
Jasper van der Neut
36bcc0a898
Support saving PDF with different X and Y resolution.
...
Add a `dpi` parameter to the PDF save function, which accepts
a tuple with X and Y dpi.
This is useful for converting tiffg3 (fax) images to pdf,
which have split dpi like (204,391), (204,196) or (204,98).
2023-02-21 11:49:05 +01:00
Andrew Murray
60208a3250
Only allow "corners" to be used as a keyword argument
2023-02-17 10:32:55 +11:00
Andrew Murray
0f2a4c1ae5
Added "corners" argument to rounded_rectangle()
2023-02-16 19:19:17 +11:00
Andrew Murray
ad0e9dbaaf
Fixed writing int as UNDEFINED tag
2023-02-14 10:52:32 +11:00
Hugo van Kemenade
f2a2794834
Merge pull request #6930 from greatvovan/patch-1
2023-02-12 14:18:48 +02:00
Andrew Murray
da38395396
Removed quotes from result in docstring
2023-02-12 21:56:23 +11:00
Hugo van Kemenade
73707eb5f7
Merge pull request #6943 from hugovk/add-3.12-dev
...
Test Python 3.12-dev
2023-02-12 07:21:27 +02:00
Hugo van Kemenade
79765d5b9c
Merge pull request #6939 from radarhere/exif
...
Resolves https://github.com/python-pillow/Pillow/issues/6932
2023-02-11 23:39:32 +02:00
Hugo van Kemenade
826c98156c
Remove unused listwindows functions for Windows/3.12 support
2023-02-11 16:36:52 +02:00
Andrew Murray
20daa1d049
Fixed typo
2023-02-11 20:49:09 +11:00
Andrew Murray
bb524018d3
Raise an error when EXIF data is too long
2023-02-11 16:20:27 +11:00
Andrew Murray
a8e03e4dab
Added Exif code examples
2023-02-10 20:11:50 +11:00
pre-commit-ci[bot]
074c6afdc7
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-09 04:41:00 +00:00
Vladimir
0eac4f1942
Fix syntax
2023-02-08 20:34:45 -08:00
Vladimir
1656753146
Add docstrings for getixif() and Exif
2023-02-07 22:48:33 -08:00
Yay295
0f27ddafb7
split long line
2023-02-07 13:56:38 -06:00
Yay295
99b153c9ca
hyphenate "backwards-compatibility"
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-07 13:49:00 -06:00
Yay295
35463e8ca3
Merge branch 'main' into eps_plugin_perf
2023-02-06 17:50:18 -06:00
Yay295
bd0fac80c4
deprecate EpsImagePlugin.PSFile
2023-02-06 17:26:05 -06:00
Yay295
be9aea35a8
add eps test for bad BoundingBox, good ImageData
2023-02-06 17:26:04 -06: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
Andrew Murray
642d574087
Added JPXDecode for RGBA images
2023-02-02 21:48:47 +11:00
Andrew Murray
b3af769c1a
Set alpha channel for OpenJPEG
2023-02-02 20:52:50 +11:00
Andrew Murray
04e8a9b3e7
Removed unnecessary code
2023-01-31 22:32:02 +11:00
Andrew Murray
79e67cb5c3
Removed default argument
2023-01-31 21:42:25 +11:00
Andrew Murray
3e37a919b1
Prevent register_open from adding duplicates to ID
2023-01-28 22:43:04 +11:00
nulano
73f55b4e01
remove redundant default value
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-01-28 15:35:33 +11:00
Hugo van Kemenade
6d09f3382d
Merge pull request #6902 from radarhere/open
2023-01-21 19:06:07 +02:00
Andrew Murray
535d886bf9
Merge pull request #6905 from hugovk/deprecate-pillow-11
...
Handling for deprecations to be removed in Pillow 11
2023-01-21 07:06:59 +11:00
Hugo van Kemenade
9b660db62d
Handling for deprecations to be removed in Pillow 11
2023-01-20 14:35:11 +02:00
pre-commit-ci[bot]
41b3ac8aed
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-01-19 00:52:43 +00:00
Josh Ware
de43bc99c8
Added support for jpeg2000 comments and PLT marker segments
2023-01-19 11:37:14 +11:00
Josh Ware
fcf5b7ef83
Fixed merge conflicts during recent pull
2023-01-19 11:33:15 +11:00
Andrew Murray
bf0abdca27
Do not retry past formats when loading all formats for the first time
2023-01-19 08:06:30 +11:00
Hugo van Kemenade
0b53853941
Merge pull request #6893 from radarhere/formats
2023-01-18 22:53:17 +02:00
Hugo van Kemenade
407f0f94c1
Merge pull request #6892 from radarhere/init
2023-01-18 22:50:41 +02:00
Andrew Murray
3360b5a756
Stop reading when a line becomes too long
2023-01-15 19:49:13 +11:00
Hugo van Kemenade
50f5eade47
Merge pull request #6895 from python-pillow/alex-clark-jeffrey-a-clark-alex
...
Alex Clark -> Jeffrey A. Clark (Alex)
2023-01-14 21:51:27 +02:00
Alex Clark
55ce251a89
Alex Clark -> Jeffrey A. Clark (Alex)
...
I'm still "Alex", just on a Jeffrey A. Clark roll lately.
2023-01-14 12:36:22 -05:00
Andrew Murray
5f9285eea6
Do not retry specified formats if they failed
2023-01-14 23:22:35 +11:00
Andrew Murray
c5d1b15824
Do not unintentionally load TIFF format at first
2023-01-14 22:45:29 +11:00
Andrew Murray
e48aead015
Allow writing IFDRational to BYTE tag
2023-01-13 21:02:42 +11:00
Yay295
89bdcfe835
Merge branch 'python-pillow:main' into eps_plugin_perf
2023-01-12 16:03:31 -06:00
Andrew Murray
a75a1a9514
Updated raqm to 0.10.0
2023-01-12 11:49:08 +11:00
Andrew Murray
eb89e3a2b1
Merge pull request #6874 from hugovk/invalid-box-blur-filter
...
Raise ValueError for BoxBlur filter with negative radius
2023-01-12 08:25:10 +11:00
Yay295
651b3521ac
Merge branch 'main' into eps_plugin_perf
2023-01-11 11:29:22 -06:00
Andrew Murray
173b65d095
Raise ValueError during filter operation as well
2023-01-11 20:02:10 +11:00
Andrew Murray
7f57c93b89
Only read when necessary
2023-01-11 08:50:20 +11:00
Yay295
c3134dc049
refactor EpsImagePlugin
...
Merge the PSFile class into the EpsImageFile class to hopefully improve performance.
Also added a check for the required "%!PS-Adobe" and "%%BoundingBox" header comments.
2023-01-10 08:44:38 -06:00
Hugo van Kemenade
08c7b17e23
Raise ValueError for BoxBlur filter with negative radius
2023-01-09 19:04:55 +02:00
Hugo van Kemenade
8d5eb71d26
Use enumerate
2023-01-08 13:47:46 +02:00
Hugo van Kemenade
2df4865e42
Use 'key in mydict' instead of 'key in mydict.keys()'
2023-01-08 13:47:46 +02:00
Hugo van Kemenade
b2b8c833aa
Use single isinstance call for multiple types
2023-01-08 13:47:45 +02:00
Andrew Murray
f30eb38e31
Merge pull request #6868 from radarhere/filters
...
Refer to Resampling enum
2023-01-08 05:33:40 +11:00
Andrew Murray
246f6fa46a
Simply attribute reference
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-08 04:45:16 +11:00
Andrew Murray
a22f6ddefa
Merge pull request #6761 from javidcf/patch-1
...
Support arbitrary number of loaded modules on Windows
2023-01-07 17:50:57 +11:00
Andrew Murray
d3d7566d9a
Refer to Resampling enum
2023-01-07 11:27:43 +11:00
Javier Dehesa
2cc40cc7f4
Fix tcl/tk loading error handling
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:54 +00:00
Javier Dehesa
da39e4e38e
Fix tcl/tk loading error handling
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:36 +00:00
Javier Dehesa
e945ab382a
Fix tcl/tk loading error handling
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:04:50 +00:00
Andrew Murray
ea9a1b84aa
LOAD_TRUNCATED_IMAGES may allow PNG images to open
2023-01-03 14:09:45 +11:00
Andrew Murray
549560cf55
9.5.0.dev0 version bump
2023-01-02 14:03:31 +11:00
Andrew Murray
a5bbab1c1e
9.4.0 version bump
2023-01-02 10:29:07 +11:00
Andrew Murray
d4d981dc9f
Updated size parameter descriptions
2023-01-02 08:41:50 +11:00
Andrew Murray
51d95add6a
Replaced IOError with OSError
2023-01-01 07:03:09 +11:00
Eric Soroos
1c57ab8429
Return a PyError instead of a fake fterror.
...
* Update Tests to IOError rather than OSError
2023-01-01 07:03:09 +11:00
Eric Soroos
87d1770c18
Fix null pointer dereference crash with malformed font
2023-01-01 07:03:09 +11:00
Hugo van Kemenade
7b0008bb82
Merge pull request #6842 from radarhere/zero
...
Return from ImagingFill early if image has a zero dimension
2022-12-31 13:23:12 +02:00
Andrew Murray
b4347daa3c
Merge branch 'main' into enum
2022-12-31 09:37:56 +11:00
Andrew Murray
91b01f4cc2
Return from ImagingFill early if image has a zero dimension
2022-12-30 16:48:33 +11:00
Andrew Murray
68fdd2a9e7
Further improve exception traceback readability
2022-12-30 14:24:28 +11:00
Hugo van Kemenade
2ae55ccbda
Improve exception traceback readability
2022-12-30 00:07:52 +02:00
Hugo van Kemenade
9ae53cf6ae
Merge pull request #6840 from radarhere/ifd1
2022-12-29 23:38:09 +02:00
Hugo van Kemenade
1ba19b1105
Merge pull request #6800 from radarhere/int_ascii
...
Resolves https://github.com/python-pillow/Pillow/issues/6799
2022-12-29 23:36:33 +02:00
Andrew Murray
1e3f3ab596
Do not attempt to read IFD1 if absent
2022-12-29 21:52:09 +11:00
Hugo van Kemenade
e107af41a9
Merge pull request #6783 from radarhere/grabclipboard
...
If available, use wl-paste or xclip for grabclipboard() on Linux
2022-12-29 12:01:24 +02:00
Andrew Murray
4518dc82ba
Merge branch 'main' into signed
2022-12-29 09:37:35 +11:00
Hugo van Kemenade
1a93e84355
Merge pull request #6798 from radarhere/apply_transparency
2022-12-28 16:49:59 +02:00
Hugo van Kemenade
d972890fb4
Merge pull request #6825 from radarhere/i16
2022-12-28 16:47:07 +02:00
Hugo van Kemenade
88a81db1c4
Merge pull request #6708 from radarhere/rgba2rgb_
...
Resolves https://github.com/python-pillow/Pillow/issues/6706
2022-12-28 16:27:31 +02:00
Andrew Murray
a0e1608f4f
Support accessing I;16N pixels
2022-12-28 18:58:16 +11:00
Andrew Murray
8cfc25618f
Support unpacking I;16N
2022-12-28 18:57:24 +11:00
Andrew Murray
e908e10aab
Support packing I;16N
2022-12-28 17:47:38 +11:00
Andrew Murray
700a8e98da
Support converting between I;16N and L
2022-12-28 17:47:15 +11:00
Andrew Murray
bcdb208fe2
Restored Image constants, except for duplicate Resampling attributes
2022-12-28 09:44:53 +11:00
Hugo van Kemenade
0a19b34a85
Merge pull request #6820 from radarhere/dds_l
...
Added DDS support for uncompressed L and LA images
2022-12-26 10:02:37 +02:00
Hugo van Kemenade
88420f6cfb
Merge pull request #6749 from radarhere/exif_lightsource
...
Added LightSource tag values to ExifTags
2022-12-26 10:01:32 +02:00
Andrew Murray
08816f43ae
Added support for I;16 modes in putdata()
2022-12-26 18:35:24 +11:00
Hugo van Kemenade
6fc0456688
Merge pull request #6821 from radarhere/pyaccess
2022-12-23 16:23:00 +02:00
Hugo van Kemenade
54eb83557f
Merge pull request #6819 from radarhere/png_exif
...
Resolves https://github.com/python-pillow/Pillow/issues/6804
2022-12-23 16:21:05 +02:00
Hugo van Kemenade
e0eca1f3d9
Merge pull request #6817 from radarhere/mpo_exif
2022-12-23 16:20:38 +02:00
Hugo van Kemenade
0934c25686
Merge pull request #6762 from radarhere/exif_hide_offsets
2022-12-23 16:05:21 +02:00
Hugo van Kemenade
7a19251d0d
Merge pull request #6787 from radarhere/gif_disposal
...
Resolves https://github.com/python-pillow/Pillow/issues/6785
2022-12-23 16:04:29 +02:00
Hugo van Kemenade
f9c88c984e
Merge pull request #6811 from radarhere/registered_extensions
...
Resolves https://github.com/python-pillow/Pillow/issues/6809
2022-12-23 15:59:53 +02:00
Andrew Murray
b0f1d2ed8d
Clear pyaccess after re-assigning im
2022-12-23 23:20:06 +11:00
Andrew Murray
dcf3d0bee2
Added support for uncompressed LA images
2022-12-23 19:07:45 +11:00
Andrew Murray
9e6a7d9740
Added support for uncompressed L images
2022-12-23 17:43:18 +11:00
Andrew Murray
88f15eb9f0
Do not save EXIF from info
2022-12-23 12:10:36 +11:00
Andrew Murray
318b658c9c
Initialize unsigned char variables
2022-12-22 17:16:52 +11:00
Andrew Murray
9898613c4d
Fixed saving EXIF data to MPO
2022-12-22 15:31:36 +11:00
Andrew Murray
9dfba1fe2b
Merge branch 'main' into exif_hide_offsets
2022-12-22 09:03:11 +11:00
Andrew Murray
921c46679d
Merge branch 'main' into gif_disposal
2022-12-22 08:32:27 +11:00
Andrew Murray
818e967fec
Merge branch 'main' into exif_lightsource
2022-12-22 07:50:35 +11:00
Andrew Murray
c6d1fddba5
Merge branch 'main' into registered_extensions
2022-12-22 07:45:52 +11:00
Hugo van Kemenade
aab4adc441
Merge pull request #6792 from radarhere/webp_gif
...
Resolves https://github.com/python-pillow/Pillow/issues/6791
2022-12-21 21:09:23 +02:00
Hugo van Kemenade
acdb882aae
Merge pull request #6793 from radarhere/tile
2022-12-21 16:56:41 +02:00
Andrew Murray
967034356a
Fixed BytesWarning
2022-12-21 14:20:47 +11:00
Andrew Murray
2a86d7353f
Always initialize all plugins in registered_extensions()
2022-12-19 08:19:15 +11:00
Hugo van Kemenade
193b24fad0
Merge pull request #6767 from radarhere/blp_jpeg
...
Resolves https://github.com/python-pillow/Pillow/issues/6741
2022-12-16 21:22:01 +02:00
Hugo van Kemenade
d1cb81976c
Run Bandit on CI via pre-commit
2022-12-14 21:40:44 +02:00
Andrew Murray
5257d561c0
Merge pull request #6748 from radarhere/exif_ifd
...
Added IFD enum to ExifTags
2022-12-14 07:33:14 +11:00
Andrew Murray
5301b86f1c
Use snake case
2022-12-14 06:48:36 +11:00
Hugo van Kemenade
d013fbf656
Merge pull request #6779 from radarhere/gif_duration
...
Resolves https://github.com/python-pillow/Pillow/issues/6778
2022-12-13 18:14:28 +02:00
Andrew Murray
6da4169f37
Fixed writing int as ASCII tag
2022-12-13 22:40:55 +11:00
Andrew Murray
f6f622dcee
Clarify apply_transparency() docstring
2022-12-12 06:36:27 +11:00
Andrew Murray
4f0b83cc54
Only set tile in ImageFile __setstate__
2022-12-09 12:29:27 +11:00
Andrew Murray
66f5ad0eae
Ignore non-opaque WebP background when saving as GIF
2022-12-09 10:45:09 +11:00
Andrew Murray
4ab837ae23
Only compare to previous when checking for duplicate frames while saving
2022-12-08 11:35:48 +11:00
Andrew Murray
2ecf88eaa6
If available, use xclip for grabclipboard() on Linux
2022-12-07 22:01:37 +11:00
Andrew Murray
ccac854077
If available, use wl-paste for grabclipboard() on Linux
2022-12-07 21:33:09 +11:00
Andrew Murray
1d780081a6
Free comment when returning early
2022-12-06 20:22:12 +11:00
Andrew Murray
c2a42655e1
Allow get_child_images to access JPEG thumbnails
2022-12-06 19:30:53 +11:00
Sam Mason
eddc9bdcec
switch to #z for comment parameter
...
* means `comment=None` can be passed directly
* no need to conditionally run `str.encode()`
* clean up checking of whether a comment is passed
2022-12-05 17:46:54 +00:00
Andrew Murray
72ac7d1ce9
Corrected default combined frame duration
2022-12-05 18:53:28 +11:00
Andrew Murray
e50ae85ea4
Use jpeg_write_marker to write comment
2022-12-05 13:57:26 +11:00
Andrew Murray
8ada23ed04
Added IFD1 reading
2022-12-05 09:09:00 +11:00
Andrew Murray
c1d0a00943
Use _binary instead of struct
2022-12-03 09:31:05 +11:00
Andrew Murray
976ad5746a
Save comments from any image format by default
2022-12-03 09:29:02 +11:00
pre-commit-ci[bot]
e9f4858491
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-12-02 18:07:10 +00:00
Sam Mason
d822d85af6
support round-tripping JPEG comments
2022-12-02 17:57:19 +00:00
Andrew Murray
3ec8fa6147
Do not trust JPEG decoder to determine image is CMYK
2022-11-30 13:49:07 +11:00
Yay295
556b672eb2
Fix webp dealloc method definitions
2022-11-27 17:48:12 -06:00
Andrew Murray
a0326245a2
Removed typo
2022-11-28 08:40:04 +11:00
Andrew Murray
24a5405a9f
Added IFD enum
2022-11-28 08:39:56 +11:00
Andrew Murray
710927a311
Added docstring
2022-11-26 19:08:49 +11:00
Andrew Murray
406a8478cd
Use break instead of goto
2022-11-26 17:41:06 +11:00
Andrew Murray
3473eb8e7f
Added Exif hide_offsets()
2022-11-26 15:44:03 +11:00
Andrew Murray
58cbcbf108
Added getxmp() to WebPImagePlugin
2022-11-26 12:14:44 +11:00
Javier Dehesa
4a36d9d761
Avoid using PyErr_SetFromWindowsErr on Cygwin
2022-11-25 22:27:18 +00:00
Javier Dehesa
80d7fa9004
Fix another bad cast syntax
2022-11-25 16:09:01 +00:00
Javier Dehesa
40d9732a40
Fix cast syntax
2022-11-25 15:57:07 +00:00
Javier Dehesa
73b91f58d0
Support arbitrary number of loaded modules on Windows
...
Changed the TKinter module loading function for Windows to support the rare (but possible) case of having more than 1024 modules loaded. This is an adaptation of the same fix that was added to Matplotlib in [PR #22445 ](https://github.com/matplotlib/matplotlib/pull/22445 ).
2022-11-25 15:10:05 +00:00
Alireza Shafaei
c01ecace73
Merge pull request #1 from radarhere/webp-params
...
Simplified code
2022-11-18 23:29:09 -08:00
Alireza Shafaei
690446050a
minor fix in the comments
2022-11-18 23:26:08 -08:00
Andrew Murray
96a4d98abc
Simplified code
2022-11-19 17:07:43 +11:00
Andrew Murray
509dcbf073
Added LightSource tag values
2022-11-19 15:35:06 +11:00
Alireza Shafaei
3587f27780
Added version check for WebP
2022-11-18 10:15:24 -08:00
Alireza Shafaei
1f6df76c42
updated webp with exact parameter.
2022-11-17 13:58:07 -08:00
Hugo van Kemenade
2b456236bb
Merge pull request #6722 from radarhere/font_start
...
Resolves https://github.com/python-pillow/Pillow/issues/3977
2022-11-16 10:25:05 +02:00
Andrew Murray
70c8e342a5
Added "start" argument to docstring
2022-11-16 09:15:56 +11:00
Andrew Murray
70cc8a5741
Fixed writing int as BYTE tag
2022-11-15 09:06:41 +11:00
Hugo van Kemenade
759b0301b9
Merge pull request #6735 from radarhere/mpformatversion
2022-11-13 19:51:20 +02:00
Yay295
55abf18f10
remove comment about Access.c line methods
2022-11-12 17:16:50 -06:00
Yay295
16994ccc9b
remove unused ImagingAccess->line() method def
2022-11-12 17:15:50 -06:00
Yay295
20f17cc6a7
remove unused ImagingAccess->line() method defs
2022-11-12 17:14:37 -06:00
Andrew Murray
af317a696d
Added MP Format Version when saving
2022-11-13 08:00:20 +11:00
Andrew Murray
97a6f651d4
Added Interop tags
2022-11-08 12:01:15 +11:00
Andrew Murray
5471dc2b26
Use fractional coordinates when drawing text
2022-11-08 11:49:39 +11:00
Andrew Murray
03b8ac911d
Merge pull request #6714 from wiredfool/valgrind_imagingtransform
...
Fix compiler error: accessing 64 bytes in a region of size 48
2022-11-06 22:37:31 +11:00
Andrew Murray
f9a2f991db
Replaced IOError with OSError
2022-11-04 11:48:18 +11:00
Eric Soroos
41987cffad
Fix compiler error:
...
src/_imaging.c:1842:17: warning: ‘ImagingTransform’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
1842 | imOut = ImagingTransform(
| ^~~~~~~~~~~~~~~~~
1843 | imOut, imIn, IMAGING_TRANSFORM_AFFINE, 0, 0, xsize, ysize, a, filter, 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/_imaging.c:1842:17: note: referencing argument 8 of type ‘double *’
2022-11-03 22:57:39 +01:00
Andrew Murray
6ddbe4cbf0
Added signed option when saving JPEG2000 images
2022-11-03 18:26:31 +11:00
Andrew Murray
5b4703d615
Added conversion from RGBa to RGB
2022-11-01 08:39:02 +11:00
Hugo van Kemenade
4fc0a4ceb2
9.4.0.dev0 version bump
2022-10-29 17:22:07 +03:00
Hugo van Kemenade
909dc64ed5
9.3.0 version bump
2022-10-29 15:21:20 +03:00
Hugo van Kemenade
1a51ce7b95
Merge pull request #6699 from hugovk/security-libtiff_buffer
2022-10-29 15:06:57 +03:00
Hugo van Kemenade
799a6a0105
Fix linting
2022-10-29 12:06:30 +03:00
Eric Soroos
13f2c5ae14
Prevent DOS with large SAMPLESPERPIXEL in Tiff IFD
...
A large value in the SAMPLESPERPIXEL tag could lead to a memory and
runtime DOS in TiffImagePlugin.py when setting up the context for
image decoding.
2022-10-29 12:06:18 +03:00
Andrew Murray
93e5fd4b40
Initialize libtiff buffer
2022-10-29 12:02:03 +03:00
Hugo van Kemenade
327db9a545
Merge pull request #6329 from nulano/imagetk-leak
...
Inline fname2char to fix memory leak
2022-10-29 10:59:54 +03:00
Hugo van Kemenade
966e98f36a
Merge pull request #6330 from nulano/imagingft-leak
...
Fix memory leaks related to text features
2022-10-29 10:58:36 +03:00
Andrew Murray
a048d163d6
Merge pull request #6693 from cgohlke/patch-3
...
Remove backup implementation of Round for Windows platforms
2022-10-29 11:28:34 +11:00
Hugo van Kemenade
31f66ea963
Merge pull request #6445 from radarhere/set_variation_by_name
2022-10-28 13:21:30 +03:00
Christoph Gohlke
4ab80f663e
Remove backup implementation of Round for Windows platforms
2022-10-27 08:15:36 -07:00
Hugo van Kemenade
3cd8eaeddb
Merge pull request #6690 from cgohlke/patch-1
2022-10-27 14:09:58 +03:00
Christoph Gohlke
d97db54be0
Only use ASCII characters in C source file
2022-10-26 11:17:28 -07:00
Christoph Gohlke
6788e8f957
Fix malloc in _imagingft.c:font_setvaraxes
2022-10-26 11:11:30 -07:00
Hugo van Kemenade
9bbf56b368
Merge pull request #6418 from hmaarrfk/parallel_matrix_convert
2022-10-25 21:11:22 +03:00
Hugo van Kemenade
7a06bc6357
Merge pull request #6533 from nulano/document_imagedraw_attributes
2022-10-25 13:06:17 +03:00
Hugo van Kemenade
5a6293bcaf
Merge pull request #6630 from radarhere/exiftags_enum
2022-10-24 23:50:09 +03:00
Andrew Murray
46b0644c4f
Do not modify previous frame when calculating delta
2022-10-24 22:19:22 +11:00
Andrew Murray
5c9bc6517f
Merge pull request #6674 from npjg/main
...
Added support for reading BMP images with RLE4 compression
2022-10-24 17:11:11 +11:00
Andrew Murray
cf46156345
Moved comment back [ci skip]
2022-10-24 17:07:57 +11:00
Andrew Murray
f7363c1091
Decode JPEG compressed BLP1 data in original mode
2022-10-23 15:54:55 +11:00
Andrew Murray
6c8234bef3
Combined BMP RLE decoders
2022-10-22 19:54:54 +11:00
Nathanael Gentry
cc45886bc3
Revert unintentional change
2022-10-21 20:59:16 -04:00
pre-commit-ci[bot]
f2dfd0bfb3
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-21 23:41:29 +00:00
Nathanael Gentry
70e3e4fb10
BMP: Add 4-bit RLE decoder
2022-10-21 19:45:41 -04:00
Hugo van Kemenade
79b3b000c1
Merge pull request #6661 from radarhere/gps
2022-10-20 13:41:50 +02:00
Hugo van Kemenade
bb2016794f
Merge pull request #6647 from radarhere/rgb2lab
2022-10-19 10:32:03 +02:00
Hugo van Kemenade
87a9d7197e
Merge pull request #6644 from radarhere/convert
2022-10-19 10:22:00 +02:00
Hugo van Kemenade
745dc33525
Merge pull request #6576 from radarhere/gif
2022-10-18 16:16:57 +02:00
Hugo van Kemenade
3d491663ba
Merge pull request #6610 from radarhere/png_save_all
2022-10-18 16:14:53 +02:00
Hugo van Kemenade
1f5be894b9
Merge pull request #6662 from radarhere/pa
2022-10-17 13:12:33 +02:00
Hugo van Kemenade
d138b2d41e
Merge pull request #6627 from radarhere/crc
2022-10-13 15:12:45 +02:00
Andrew Murray
a4b257269e
Image channel is used when converting PA with an RGBA palette
2022-10-13 20:21:39 +11:00
Andrew Murray
eccf9e87cf
Added GPS tags
2022-10-13 19:28:39 +11:00
Andrew Murray
5f8938cb8e
Merge branch 'main' into gif
2022-10-12 22:01:35 +11:00
Hugo van Kemenade
c2efd60e22
Merge pull request #6594 from radarhere/numpy
2022-10-12 12:57:51 +02:00
Hugo van Kemenade
baaf65453a
Merge pull request #6623 from radarhere/imt
2022-10-12 12:52:22 +02:00
Hugo van Kemenade
5852b84162
Merge pull request #6611 from radarhere/imageshow
2022-10-12 12:50:50 +02:00
Hugo van Kemenade
a275541640
Merge pull request #6626 from radarhere/fli
2022-10-12 12:49:54 +02:00
Hugo van Kemenade
cf3132b7de
Merge pull request #6592 from radarhere/gif_rgba
2022-10-12 12:47:38 +02:00
Hugo van Kemenade
eb59cb61d5
Merge pull request #6517 from radarhere/multiline_centered_embedded_color
...
Round box position to integer when pasting embedded color
2022-10-11 16:49:13 +02:00
Hugo van Kemenade
4995d045dc
Merge pull request #6582 from radarhere/webp_exif
...
Removed EXIF prefix when saving WebP
2022-10-11 16:48:28 +02:00
Hugo van Kemenade
5076d34775
Merge pull request #6579 from radarhere/im
...
Pad IM palette to 768 bytes when saving
2022-10-11 16:47:43 +02:00
Andrew Murray
28878c68e1
Merge pull request #6449 from ShadelessFox/main
...
Added DDS BC6 reading
2022-10-11 12:58:24 +11:00
Andrew Murray
2942868270
Merge pull request #6642 from JayWiz/1-support-for-16-bit-integer-tiffs
...
Added support for opening WhiteIsZero 16 bit integer TIFF images
2022-10-11 10:10:18 +11:00
Andrew Murray
78d258f24d
Removed gamma correction
2022-10-10 20:48:18 +11:00
Andrew Murray
10edb29674
Merge pull request #6654 from jsbueno/fix6652/imagepalette_rgba_color
...
Raise an error when allocating translucent color to RGB palette
2022-10-10 19:23:18 +11:00
Hugo van Kemenade
91e820fb46
Merge pull request #6633 from radarhere/raqm
2022-10-10 09:16:10 +02:00
Andrew Murray
0b2cef5b03
Updated error message
2022-10-10 12:02:10 +11:00
Andrew Murray
397167569a
Recommend raqm for non-English text
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-10-10 09:11:41 +11:00
João S. O. Bueno
f9a3178bb3
Fix #6652 : Handle translucent color used in RGB ImagePallete
2022-10-09 11:47:24 -03:00
Andrew Murray
eef4d1ced1
Moved mode check outside of loops
2022-10-09 08:48:07 +11:00
Andrew Murray
fcd3eef594
Added conversion between RGB/RGBA/RGBX and LAB
2022-10-07 22:33:45 +11:00
Andrew Murray
b8cd3e72a6
Do not attempt normalization if image is already normal
2022-10-07 09:48:56 +11:00
Andrew Murray
e6ffbfd8df
If palette is present but not needed, do not use global palette
2022-10-06 08:46:31 +11:00
Andrew Murray
0fd110864a
Changed mode to I;16
2022-10-05 21:15:45 +11:00
Jay-Jay Aslan
802a1430fe
added support for 16 bit integer tiffs
2022-10-05 11:03:51 +02:00
Andrew Murray
fea604f693
Merge pull request #6556 from radarhere/returns
...
Improved documentation of ImageDraw return values
2022-10-03 19:06:58 +11:00
Andrew Murray
74f47d8c1a
Document that basic layout is faster than raqm
2022-10-03 10:03:13 +11:00
Andrew Murray
ba78f5d0da
Document the default layout engine
2022-10-03 09:39:37 +11:00
Andrew Murray
d03f35b5bb
Added enums
2022-10-01 17:24:35 +10:00
Andrew Murray
b34307b9d2
Corrected docstring
2022-09-30 21:57:54 +10:00
Eric Soroos
db1b74198b
Don't reassign crc on close
2022-09-30 21:49:15 +10:00
Andrew Murray
ea3b66d8ef
Allow palette chunk to not be first
2022-09-29 21:29:16 +10:00
Andrew Murray
cb2243713c
Only read a maximum of 100 bytes at a time
2022-09-29 08:22:31 +10:00
Andrew Murray
d402fe0b17
Added IMT tests
2022-09-29 08:22:01 +10:00
Hugo van Kemenade
aa8877ac5b
Merge pull request #6569 from radarhere/tiff_child_images
2022-09-27 16:45:37 +03:00
Andrew Murray
3fd6a1e312
Merge pull request #6596 from PososikTeam/fix-padding
...
Improved palette handling in ImageOps
2022-09-27 07:27:40 +10:00
Hugo van Kemenade
b7353af610
Merge pull request #6567 from radarhere/palette
2022-09-24 13:27:41 +03:00
Hugo van Kemenade
3a30a87139
Merge pull request #6559 from radarhere/photoimage
2022-09-24 13:26:23 +03:00
Andrew Murray
34f61d6d2d
Updated redirected URLs
2022-09-23 22:13:50 +10:00
Andrew Murray
aabb964de1
Show all frames in ImageShow
2022-09-23 20:14:05 +10:00
Andrew Murray
b2b3b62be7
Consider all frames when selecting mode for PNG save_all
2022-09-23 20:06:08 +10:00
Andrew Murray
b3e847a164
Merge branch 'main' into fix-padding
2022-09-21 20:22:27 +10:00
Hugo van Kemenade
f98fde7dad
Merge pull request #6522 from bibinhashley/ImageOps.contain-function-issue-in-finding-new-size
2022-09-21 12:58:09 +03:00
Hugo van Kemenade
920bcecd0e
Merge pull request #6548 from radarhere/gif_palette
2022-09-21 12:46:56 +03:00
Hugo van Kemenade
f73499e475
Merge pull request #6543 from radarhere/remap_palette
2022-09-21 12:45:26 +03:00
Andrew Murray
3c42b270b9
Copy palette in expand() for PA
2022-09-19 21:39:38 +10:00
Andrew Murray
279ddf4ce6
Use getpalette() in ImageOps
2022-09-19 21:34:29 +10:00
Andrew Murray
c0aaf54816
Removed unnecessary palette copy
2022-09-19 12:41:20 +10:00
Sitcebelly
d88200e0d0
fix bug
2022-09-18 22:32:09 +03:00
Sitcebelly
d80aa74da4
Put palette into the new pad image
2022-09-18 21:14:52 +03:00
Andrew Murray
d02f91c6da
Raise a warning if NumPy will not raise an error during conversion
2022-09-17 20:11:55 +10:00
Andrew Murray
6663ed929b
If first frame has transparency for RGB_ALWAYS, use RGBA
2022-09-17 17:58:24 +10:00
Andrew Murray
17b56b9463
Merge branch 'main' into set_variation_by_name
2022-09-17 00:01:05 +10:00
Andrew Murray
166654d985
Merge branch 'main' into multiline_centered_embedded_color
2022-09-16 23:57:27 +10:00
Hugo van Kemenade
50e0c85380
Merge pull request #6500 from radarhere/tga
2022-09-16 16:29:44 +03:00
Andrew Murray
16d04f4a49
Removed EXIF prefix when saving
2022-09-15 21:25:40 +10:00
Andrew Murray
50ba43ac4f
Pad IM palette to 768 bytes when saving
2022-09-14 21:01:58 +10:00
Andrew Murray
8b2d70d17a
Corrected BMP palette size when saving
2022-09-14 19:54:36 +10:00
Andrew Murray
ae6520ccd6
Fixed pasting an L frame onto an RGB(A) GIF
2022-09-14 00:05:23 +10:00
Hugo van Kemenade
9b53e3b581
Merge pull request #6539 from radarhere/thumbnail
...
Do not call load() before draft() in Image.thumbnail
2022-09-11 19:15:01 +03:00
Andrew Murray
beb7b4d0f6
Added reading of TIFF child images
2022-09-10 22:50:54 +10:00
Andrew Murray
2a7e603ae2
Defer parsing of palette into colors
2022-09-09 22:28:30 +10:00
Andrew Murray
bce9df62f1
Rearranged text
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:19:47 +10:00
Andrew Murray
7359af91f0
Rearranged text
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:18:55 +10:00
Andrew Murray
209ec9da47
Use target
2022-09-06 06:43:52 +10:00
Andrew Murray
ee5de25f87
Apply transparency to P images before passing to tkinter.PhotoImage
2022-09-05 11:58:45 +10:00
Andrew Murray
780de80e5c
Added examples for updating code
2022-09-03 22:23:05 +10:00
Andrew Murray
a36b766d36
Simplified enum references
2022-09-03 20:53:22 +10:00
Hugo van Kemenade
7158816bc8
Merge pull request #6552 from radarhere/constants
2022-08-31 18:06:00 +03:00
Hugo van Kemenade
0b5c150805
Merge pull request #6497 from radarhere/convert
2022-08-31 17:09:38 +03:00
mergify[bot]
762c29c711
Merge pull request #6504 from radarhere/pyaccess_pa
...
Allow RGB and RGBA values for PA image putpixel
2022-08-31 13:12:06 +00:00
Andrew Murray
d06cd7073d
Merge pull request #6551 from nulano/interp
...
Removed support for PyPy before Python 3.6
2022-08-31 21:27:58 +10:00
Andrew Murray
2eca2989a2
Merge branch 'main' into pyaccess_pa
2022-08-31 20:56:38 +10:00
Hugo van Kemenade
b953f73548
Merge pull request #6518 from radarhere/pdf_ccittfaxdecode
2022-08-31 13:55:46 +03:00
Hugo van Kemenade
b607e834a9
Merge pull request #6510 from radarhere/buffer
2022-08-31 13:50:35 +03:00
Hugo van Kemenade
6697de1160
Merge pull request #6493 from radarhere/bytes_ascii
2022-08-31 13:46:36 +03:00
Andrew Murray
b3dcf17886
Use constants
2022-08-31 20:09:05 +10:00
Hugo van Kemenade
96441fb3b1
Merge pull request #6499 from radarhere/eps
2022-08-30 17:11:13 +03:00
nulano
54c560f611
Removed support for PyPy before Python 3.6
2022-08-30 14:12:48 +02:00
Andrew Murray
7b0e56bb21
Removed support for Python before interpaddr()
2022-08-30 09:21:24 +10:00
Andrew Murray
841ba4a940
Simplified code
2022-08-30 08:08:01 +10:00
Andrew Murray
e7fab6abf4
Fixed remapping to palette with duplicate entries
2022-08-29 23:20:31 +10:00
Andrew Murray
9fa421923c
Removed requirement for 256 palette entries
2022-08-28 15:58:30 +10:00
Andrew Murray
e613271776
Fixed typo
2022-08-27 18:48:47 +10:00
Andrew Murray
38b53a9fd7
Do not call load() before draft()
2022-08-26 20:33:51 +10:00
Ondrej Baranovič
18bd77bbc0
simplify code, make test more generic
2022-08-25 19:45:33 +10:00
nulano
ced381edaa
Document ImageDraw attributes
2022-08-25 00:48:19 +02:00
Andrew Murray
f9d3ee0f48
Round position in pad()
2022-08-24 22:56:19 +10:00
Bibin Hashley
be9224f285
ImageOps.contain function finding new size issue
2022-08-23 02:57:03 +05:30
Andrew Murray
3b4ea7c602
Do not use CCITTFaxDecode filter if libtiff is not available
2022-08-22 19:57:33 +10:00
Andrew Murray
54b01f55f8
Round box position to integer when pasting embedded color
2022-08-22 12:14:54 +10:00
Andrew Murray
c463ef4fe3
Fallback to not using mmap if buffer is not large enough
2022-08-17 21:13:09 +10:00
Andrew Murray
8a60db322f
Copy palette when converting from P to PA
2022-08-17 17:05:53 +10:00
Andrew Murray
b84816c02f
Added pa2p
2022-08-16 22:45:55 +10:00
Hugo van Kemenade
87ecd01fc0
Merge pull request #6484 from radarhere/imagedraw_font
2022-08-15 08:08:53 +03:00
Andrew Murray
a37593f004
Allow RGB and RGBA values for PA image putpixel
2022-08-14 14:34:42 +10:00
Andrew Murray
5d4fbdfab4
Simplified code
2022-08-13 19:46:46 +10:00
Andrew Murray
99e401123b
Corrected palette size when saving
2022-08-13 19:46:07 +10:00
Andrew Murray
7e1a0ca544
Open 1 bit EPS in mode 1
2022-08-13 18:32:29 +10:00
Andrew Murray
3459120732
Fixed writing bytes as ASCII tag
2022-08-11 20:46:58 +10:00
Andrew Murray
8135bd5cfb
Added documentation
2022-08-11 10:35:44 +10:00
Hugo van Kemenade
92b0f2c919
Merge pull request #6476 from radarhere/exif
2022-08-09 15:08:54 +03:00
Hugo van Kemenade
26b7930bfc
Merge pull request #6485 from radarhere/font
...
Note to Windows users that FreeType will keep the font file open
2022-08-07 19:14:09 +03:00
Hugo van Kemenade
ae14255c34
Merge pull request #6470 from radarhere/pdf_ccittfaxdecode
...
Save 1 mode PDF using CCITTFaxDecode filter
2022-08-07 19:11:37 +03:00
Andrew Murray
c24b6ef4f0
Document workaround
2022-08-06 23:01:36 +10:00
Andrew Murray
42a5a743c1
Note to Windows users that FreeType will keep the font file open
2022-08-06 22:48:10 +10:00
Andrew Murray
04d9761316
Changed "font" to class variable
2022-08-06 17:29:44 +10:00
Andrew Murray
e77a7b6b4f
Added support for RGBA PSD images
2022-08-05 23:29:58 +10:00
Andrew Murray
1197e19982
Document that exif_transpose() does not change orientations of 1
2022-08-04 14:19:17 +10:00
Andrew Murray
1112ad67a3
Document that orientation data is removed by exif_transpose()
2022-08-04 14:18:31 +10:00
Andrew Murray
c3cc621c67
Merge branch 'python-pillow-main'
2022-08-02 15:55:21 +10:00
Andrew Murray
2b14d83549
Added strip_size as TIFF encoder argument
2022-08-01 21:41:17 +10:00
Andrew Murray
f5b27f90f7
Save 1 mode PDF using CCITTFaxDecode filter
2022-08-01 20:38:47 +10:00
ShadelessFox
952237d373
Minimize unnecessary code changes
2022-07-31 19:16:25 +03:00
mergify[bot]
363586be6a
Merge pull request #6463 from bigcat88/xmp-tags-orientation
...
Parse orientation from XMP tag contents
2022-07-30 02:02:50 +00:00
mergify[bot]
87a08e2381
Merge pull request #6457 from REDxEYE/ATI1-2_support
...
Add support for ATI1/2(BC4/BC5) DDS files
2022-07-27 12:30:52 +00:00
Andrew Murray
4276340074
Sorted formats by n
2022-07-27 21:32:48 +10:00
Andrew Murray
f42e255206
Simplified code
2022-07-26 11:58:44 +10:00
Alexander Piskun
6e97da0260
fixing xmp tag orientation generated by exiftool
2022-07-26 00:30:32 +03:00
Hugo van Kemenade
cd261abbcb
Merge pull request #6455 from radarhere/gif_tile
2022-07-25 10:05:27 +03:00
Hugo van Kemenade
dd20412472
Merge pull request #6444 from radarhere/mpo
...
Support saving multiple MPO frames
2022-07-24 11:21:46 +03:00
ShadelessFox
3bec5999e0
Rename remaining occurrences of BC6S -> BC6HS
2022-07-23 15:20:35 +03:00
Andrew Murray
5bd893f760
Rename format to BC6H and BC6HS
2022-07-23 14:16:40 +10:00
REDxEYE
2376399150
Add test and test files for ATI1 pixel format and fix image mode for ATI1
2022-07-23 01:02:06 +03:00
REDxEYE
ad2c6a20fe
Add support for ATI1/2(BC4/BC5) DDS files
...
This commit adds support for loading DDS with ATI1 and ATI2 fourcc pixel format
2022-07-23 00:30:27 +03:00
Andrew Murray
8784ee1410
Moved code into separate function
2022-07-22 07:59:30 +10:00
Andrew Murray
0844fb0ed3
Do not clear tile if not updating the image when seeking
2022-07-21 09:05:14 +10:00
ShadelessFox
4b97f88ef8
Code cleanup
2022-07-19 02:19:21 +03:00
ShadelessFox
18a3c249b6
Fix BC6H_SF decoder
2022-07-18 22:24:40 +03:00
REDxEYE
b7715d1600
Fix BC6H_SF decoding error.
...
Decoding error were caused by additional sign extend call after endpoint
transform, according to khronos documentation, you only suppose to sign
extend endpoints only once, further calls to sign extend mangles
endpoint data.
2022-07-18 22:24:40 +03:00
ShadelessFox
f58c0ea533
Fix BC6 block decoder
2022-07-18 22:24:40 +03:00
Andrew Murray
dea30e4c80
Fixed set_variation_by_name offset
2022-07-18 08:39:23 +10:00
Andrew Murray
2944ff18d6
Support saving multiple MPO frames
2022-07-16 20:02:58 +10:00
Tim Gates
dfa6655bdd
docs: fix simple typo, unpredicatable -> unpredictable
...
There is a small typo in src/PIL/Image.py.
Should read `unpredictable` rather than `unpredicatable`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-16 19:04:42 +10:00
Andrew Murray
9f6a315092
Added ABGR MASK_MODE
2022-07-14 07:25:28 +10:00
Andrew Murray
2b9d48403a
Reordered SUPPORTED to match MASK_MODES
2022-07-14 07:08:25 +10:00
Hugo van Kemenade
ec0b9ede09
Merge pull request #6429 from radarhere/psdraw
2022-07-12 13:01:12 +03:00
Andrew Murray
40a0999303
Raise ValueError if PNG sRGB chunk is truncated
2022-07-11 20:02:41 +10:00
Andrew Murray
80c1ef5dcd
Simplified rectangle command
2022-07-11 19:38:46 +10:00
Andrew Murray
db1d945ce7
Changed second rectangle parameter to distance from bottom
2022-07-11 18:36:27 +10:00
Andrew Murray
ed98c668ee
Fixed PSDraw rectangle
2022-07-11 06:54:23 +10:00
Hugo van Kemenade
b0185e4e48
Merge pull request #6415 from radarhere/doc
2022-07-06 21:01:54 +03:00
Andrew Murray
4f7f5470b1
Fixed typo
2022-07-06 08:30:24 +10:00
Andrew Murray
527eecae80
Fallback to python3
2022-07-05 20:55:56 +00:00
Mark Harfouche
02e90e21f4
Release the GIL when applying matrix conversion to images
2022-07-05 15:13:39 -04:00
Santiago Castro
a0b22d2203
Fix when sys.executable
is empty or null
2022-07-04 09:50:47 -07:00
Andrew Murray
300f6c8a59
Document where to find other codecs
2022-07-04 19:33:21 +10:00
Hugo van Kemenade
26e2c7e030
9.3.0.dev0 version bump
2022-07-01 21:29:53 +03:00
Hugo van Kemenade
dc518ac25e
9.2.0 version bump
2022-07-01 16:16:26 +03:00
Andrew Murray
8a6050ee5b
Replaced __internal__ argument with warning filters
2022-07-01 14:10:29 +02:00
Andrew Murray
729fe6f8b0
Updated indentation
2022-07-01 19:45:36 +10:00
nulano
ad5271d62f
Document replacements for individual deprecated font methods
2022-06-30 15:03:55 +02:00
Andrew Murray
65020e7c7c
Documented deprecation in individual methods
2022-06-30 15:03:12 +02:00
Ondrej Baranovič
838b1f1598
add replacement for getsize_multiline to deprecation warning
2022-06-30 14:22:07 +02:00
pre-commit-ci[bot]
303ec1a95e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-06-30 12:21:43 +00:00
Ondrej Baranovič
f57a9d678c
update TransposedFont.getlength error message
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-30 14:20:56 +02:00
Andrew Murray
0d91d13a6e
Merge branch 'main' into deprecate-getsize
2022-06-30 20:37:37 +10:00
Andrew Murray
d66e730fea
Merge pull request #6376 from nulano/fribidi-no-version
...
Fixed null check for fribidi_version_info in FriBiDi shim
2022-06-30 19:27:28 +10:00
Andrew Murray
c9f1b35e98
Added GIF decompression bomb check
2022-06-30 12:47:35 +10:00
Hugo van Kemenade
714ff4e397
Merge pull request #6386 from dawidcrivelli/handle_pcf_missing_characters
...
Handle PCF fonts files with less than 256 characters
2022-06-27 07:59:50 +03:00
Andrew Murray
93805d5257
Limit expected number of characters to nencoding
2022-06-27 14:05:13 +10:00
Andrew Murray
fc497ffe5e
Merge pull request #6378 from raygard/fix_get_optimize
...
Improved GIF optimize condition
2022-06-27 09:12:20 +10:00
Andrew Murray
847ad8c512
Clarify check that palette is not already at its smallest
2022-06-26 20:58:36 +10:00
Andrew Murray
e5046b1057
Reverted to __array_interface__ with the release of NumPy 1.23
2022-06-24 23:08:36 +10:00
Hugo van Kemenade
e774be01fe
Merge pull request #6391 from radarhere/pcx
...
Pad PCX palette to 768 bytes when saving
2022-06-23 09:50:22 +03:00
Hugo van Kemenade
6dd5b2e8c9
Merge pull request #6377 from btrekkie/fix-round-to-palette
...
Fixed bug with rounding pixels to palette
2022-06-22 12:31:25 +03:00
Andrew Murray
317286d260
Pad palette to 768 bytes
2022-06-22 17:27:49 +10:00
Andrew Murray
db741bf25f
Skip remaining characters after IndexError
2022-06-22 16:55:33 +10:00
Hugo van Kemenade
557e293ece
Merge pull request #6361 from radarhere/wayland
...
Use gnome-screenshot on Linux if available
2022-06-21 18:02:31 +03:00
Dawid Crivelli
f160e698a1
Handle PCF fonts files with missing characters
2022-06-20 16:20:08 +02:00
Andrew Murray
3e8a9b2165
Fixed loading L mode RLE8 images
2022-06-20 21:01:10 +10:00
nulano
93acbcf9e2
add getbbox and getlength to TransposedFont with tests
2022-06-20 02:37:42 +01:00
nulano
1bf87556ef
add textbbox and textlength to ImageDraw2 and update tests
2022-06-19 22:04:57 +01:00
nulano
c854bf8d1c
add getbbox and getlength to basic ImageFont and update related tests
2022-06-19 22:04:56 +01:00
nulano
406fe59242
deprecate font.getsize and related functions
2022-06-19 22:03:34 +01:00
mergify[bot]
8de74b9fab
Merge pull request #6370 from LostBenjamin/patch-1
...
Fix wrong operator bug in PyCMSError exception message
2022-06-19 13:21:43 +00:00
Andrew Murray
709744432a
Optimise palettes with more than 128 colors
2022-06-19 16:47:50 +10:00
pre-commit-ci[bot]
f656711c80
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-06-19 00:20:28 +00:00
Ray Gardner
128ed189e5
Improve test in _get_optimize()
...
Palette can be optimized if number of colors can be reduced by half or more.
2022-06-18 18:07:58 -06:00
William Jacobs
9f9e26522e
Fixed bug with rounding pixels to palette
...
This fixes a bug with rounding pixels to the nearest palette color. Specifically, there is a typo with computing the minimum distance from a palette color to a given cache box. This is causing palette colors to be incorrectly excluded from consideration.
2022-06-18 04:09:41 -04:00
nulano
c2047b8293
fix null check for fribidi_version_info in fribidi shim
2022-06-17 17:13:11 +01:00
Andrew Murray
4d6e5a0d09
Limit tile size to avoid extending outside image
2022-06-16 08:36:43 +10:00
Hugo van Kemenade
959e576dd2
Use f-string
2022-06-15 21:43:18 +03:00
Jingxuan He
b47bcc246f
Fix a potential wrong operator bug
2022-06-15 17:39:37 +02: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
b1ba0909ed
Prefer gnome-screenshot if xdisplay is None
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-06-13 09:56:52 +10:00
Andrew Murray
5051a29a4e
Merge branch 'main' into plainPPM
2022-06-12 16:11:17 +10:00
Andrew Murray
a48d95061d
Use gnome-screenshot on Linux if available
2022-06-12 16:00:31 +10:00
Hugo van Kemenade
8bd7e81b5d
Merge pull request #6352 from radarhere/apply_transparency
...
Added apply_transparency()
2022-06-11 17:58:10 +03:00
Hugo van Kemenade
f7ec22f518
Merge pull request #6197 from radarhere/endian
...
Fixed behaviour change from endian fix
2022-06-10 19:02:54 +03:00
Hugo van Kemenade
3a61c9e95e
Merge pull request #6350 from radarhere/remap_rgba_palette
2022-06-10 18:43:09 +03:00
Andrew Murray
11be163143
Added apply_transparency()
2022-06-06 22:47:58 +10:00
Hugo van Kemenade
418820a1e8
Merge pull request #6341 from radarhere/imagedraw
...
Only import ImageFont in ImageDraw when necessary
2022-06-05 22:25:10 +03:00
Andrew Murray
4c8aff9798
Allow remapping P images with RGBA palettes
2022-06-06 00:12:48 +10:00
Hugo van Kemenade
38931c1e47
Merge pull request #6278 from radarhere/polygon
...
Fixed drawing translucent 1px high polygons
2022-06-04 09:34:37 +03:00
Hugo van Kemenade
55d3c07e1d
Merge pull request #6232 from radarhere/colormap
2022-06-01 23:12:13 +03:00
Hugo van Kemenade
37c642338b
Merge pull request #6337 from RedShy/p2pa_images_conversion
...
Fix "P"->"PA" image conversion
2022-06-01 22:17:55 +03:00
Hugo van Kemenade
b261e17907
Merge pull request #6335 from radarhere/exif
2022-06-01 16:36:03 +03:00
Andrew Murray
e96177451e
Only import ImageFont when necessary
2022-05-30 19:36:36 +10:00
Andrew Murray
40a918d274
Set readcount to TIFF_VARIABLE for a variable number of values
2022-05-28 20:14:05 +10:00
Andrew Murray
71d6a7b14f
Merge pull request #6303 from radarhere/disconnected
...
Only try to connect discontiguous corners at the end of edges
2022-05-28 16:40:00 +10:00
Davide Consalvo
84da70988f
Merge branch 'python-pillow:main' into p2pa_images_conversion
2022-05-27 12:37:43 +02:00
Davide Consalvo
6a071f81d7
fixed p2pa conversion
2022-05-27 12:24:19 +02:00
Hugo van Kemenade
27f5c4d8fb
Merge pull request #6176 from radarhere/gif_transparency
...
Improve transparency handling when saving GIF
2022-05-27 08:31:37 +02:00
Hugo van Kemenade
0476914ee4
Merge pull request #6219 from radarhere/gif_eof
...
Do not update GIF frame position until local image is found
2022-05-27 08:29:38 +02:00
Andrew Murray
b1885779a9
Once exif data is parsed, do not reload unless it changes
2022-05-27 07:54:54 +10:00
nulano
dacd5d6eb9
add decref calls to imagingft to fix #6321
2022-05-24 16:36:30 +01:00
nulano
09da6fa73b
inline fname2char to fix #6319
2022-05-24 16:15:01 +01:00
Andrew Murray
2457eafabd
Only read the number of loops from the first frame
2022-05-24 12:53:19 +10:00
Andrew Murray
5cf02f816f
Moved Netscape extension after global color table when saving
2022-05-24 12:53:03 +10:00
Andrew Murray
62d0f0e38d
Once comment is loaded, keep it for subsequent frames
2022-05-22 15:30:16 +10:00
Andrew Murray
db76eaa12c
Merge branch 'main' into comment_correct_placement
2022-05-22 14:56:57 +10:00
Andrew Murray
e9cb2156ec
Merge pull request #6294 from raygard/comments_separate_multiple
...
Separate multiple GIF comment blocks in a frame with newlines
2022-05-22 14:53:03 +10:00
Andrew Murray
62d5817e29
Changed delimiter to \n
2022-05-22 14:11:11 +10:00
Andrew Murray
99f4623a8d
Remove transparency if it cannot be remapped
2022-05-21 17:39:37 +10:00
Andrew Murray
46a80d144a
Update transparency when remapping the palette
2022-05-21 16:37:47 +10:00
Andrew Murray
2072a52bb5
Merge pull request #6292 from raygard/comment_use_gif89a
...
Always use GIF89a for comments
2022-05-21 10:24:14 +10:00
Hugo van Kemenade
33f00c9ca8
Merge pull request #6231 from radarhere/bmp_compression
...
Ignore compression value from BMP info dictionary when saving as TIFF
2022-05-20 16:18:15 +03:00
Hugo van Kemenade
fbb74a6050
Merge pull request #6234 from radarhere/font_variant
...
If font is file-like object, do not re-read from object to get variant
2022-05-19 23:30:44 +03:00
Hugo van Kemenade
2c58c3ee11
Merge pull request #6213 from radarhere/fp
2022-05-19 18:52:55 +03:00
Andrew Murray
80782bba9b
Merge pull request #6254 from benrg/affine-transform
...
Support more affine expression forms in im.point()
2022-05-19 21:06:04 +10:00
Andrew Murray
98329354e0
Simplified version check
2022-05-19 20:59:16 +10:00
Hugo van Kemenade
ef8cec6185
Merge pull request #6256 from radarhere/furthestV
...
Ensure that furthest v is set in quantize2
2022-05-17 20:04:50 +03:00
Andrew Murray
f0353c5996
When reading past the end of a scan line, reduce bytes left
2022-05-17 11:53:24 +03:00
Andrew Murray
62c7ee0f00
Only try to connect discontiguous corners at the end of edges
2022-05-16 22:31:49 +10:00
Yulv-git
a0fa540b0b
Fix some typos.
2022-05-14 12:46:46 +08:00
Ray Gardner
22d9095e5c
Correct placement of GIF comment
...
Place GIF comment after Global Color table. Should go after "NETSCAPE" looping extension after pull #6211 .
2022-05-13 17:09:37 -06:00
Ray Gardner
44c6467400
Multiple GIF comments in a frame are separated
...
If more than one comment is in a GIF frame, separate them with \r\n in the info dict.
2022-05-13 16:36:20 -06:00
Ray Gardner
b3d29e946a
Always use GIF89a for long comments
...
Fix bug that allows GIFs with long comments to be written as GIF87a.
2022-05-13 11:33:33 -06:00
Andrew Murray
ef8fd7f8b9
Populate Python palette in fromarray()
2022-05-09 18:50:54 +10:00
Hugo van Kemenade
6b05a28482
Merge pull request #6253 from radarhere/png_chunk_length
...
Raise ValueError if PNG chunks are truncated
2022-05-07 00:29:38 +03:00
Hugo van Kemenade
f84684931d
Merge pull request #6265 from radarhere/gif_duration
...
Use durations from each frame by default when saving GIFs
2022-05-06 18:44:01 +03:00
Andrew Murray
c824ab048f
Fixed drawing translucent 1px high polygons
2022-05-06 22:35:26 +10:00
Hugo van Kemenade
779fb4975b
Merge pull request #6270 from radarhere/samples_per_pixel
...
Adjust BITSPERSAMPLE to match SAMPLESPERPIXEL
2022-05-05 14:22:19 +03:00
Andrew Murray
4dc1a55f65
Adjust BITSPERSAMPLE to match SAMPLESPERPIXEL
2022-05-04 22:11:10 +10:00
Andrew Murray
886fcbe3d6
Do not open images with zero or negative height
2022-05-04 21:25:40 +10:00
Ben Rudiak-Gould
88f46f3c99
Add a comment
2022-05-03 13:42:04 -07:00
Andrew Murray
46802d5def
Removed unused import and restored existing checks ( #1 )
...
* Removed unused import
* Restored existing checks
* Restored coerce_e, _E and data property
* Deprecated coerce_e
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2022-05-03 13:05:39 -07:00
Ben Rudiak-Gould
4e12ccc63e
Support more affine expression forms in Image.point
...
In modes I and F, Image.point only supported affine expressions of the
forms (lambda x:) x * a, x + a, and x * a + b. Expressions like 1 - x
had to be written x * -1 + 1.
This rewrite, though still limited to affine transformations, supports
far more expression forms, including 1 - x, (2 * x + 1) / 3, etc.
2022-05-03 13:05:39 -07:00
Andrew Murray
7e084c7ede
Use durations from each frame by default when saving
2022-05-03 20:07:47 +10:00
Hugo van Kemenade
87c2373265
Merge pull request #6242 from radarhere/ppm_maxval
2022-05-01 21:21:52 +03:00
Andrew Murray
44494a1171
Set furthestV to first v in case compute_distances does not assign it
2022-05-01 23:32:47 +10:00
Andrew Murray
b299d7cfc2
Simplified code by using unsigned int instead of union
2022-05-01 23:32:47 +10:00
Andrew Murray
51bdc99b96
Raise ValueError if PNG chunks are truncated
2022-05-01 13:45:58 +10:00
Andrew Murray
81b473f9d2
Raise ValueError for invalid maxval
2022-04-30 10:37:50 +10:00
Andrew Murray
a50c3957df
Updated URL
2022-04-27 22:28:10 +10:00
axt-one
9fb0087ec2
modified screencapture option in ImageGrab.grab()
2022-04-26 18:04:08 +09:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
...
Cleanup: various
2022-04-26 18:51:44 +10:00
Hugo van Kemenade
42a81c4173
Merge pull request #6239 from radarhere/ppm_token
...
Decode bytes before passing to f-string
2022-04-26 09:14:20 +03:00
Hugo van Kemenade
64880ab8d5
Merge pull request #88 from radarhere/cleanup
2022-04-25 22:06:52 +03:00
Hugo van Kemenade
79e8eba3f8
Docs: spacing
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-25 18:13:50 +03:00
Andrew Murray
5d4258e72b
Simplified index slicing
2022-04-25 22:52:29 +10:00
Andrew Murray
9490509784
Merge pull request #6237 from hugovk/deprecate-qt5
...
Deprecate support for Qt 5 (PyQt5 and PySide2)
2022-04-25 10:03:35 +10:00
Sumanth
f77aabf281
Update Image.py docstrings.
...
Update Image.py file with a typo in effect_mandelbrot method.
The Typo was in docstrings of the effect_mandelbrot method in Image module of PIL.
2022-04-24 18:42:37 +05:30
Andrew Murray
5867e0bbac
Decode bytes before passing to f-string
2022-04-24 15:42:45 +10:00
Hugo van Kemenade
f854d7f7c9
Deprecate support for Qt 5 (PyQt5 and PySide2). Use Qt 6 (PyQt6 or PySide6) instead.
2022-04-22 15:56:11 +03:00
Andrew Murray
a40c7a6bea
If font is file-like object, do not re-read from object to get variant
2022-04-22 07:31:20 +10:00
Andrew Murray
1e3fdb3055
Pad COLORMAP to 768 items
2022-04-21 11:29:17 +10:00
Andrew Murray
2c5e5049db
Ignore compression value from BMP info dictionary
2022-04-21 07:58:12 +10:00
Alex Tedeschi
4279c74289
Increase wait time of temporary file deletion
...
Increase wait time to 4 seconds from 2 seconds for the deletion of the temporary file made from .show(). The Windows default image viewer at times can take longer than 2 seconds to open and display an image causing the image to never display for the user.
2022-04-18 16:23:50 -04:00
Hugo van Kemenade
bf46c6a648
Fix docstring
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-18 07:42:05 +03:00
Andrew Murray
a33dc56560
Merge pull request #6220 from nulano/deprecate-fill
...
Deprecate FreeTypeFont.getmask2 fill parameter
2022-04-18 08:05:10 +10:00
Ondrej Baranovič
995be34ddb
flip so the conditional is positive
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-17 19:27:14 +02:00
Andrew Murray
c87c2cf5b3
Added removal date for fill parameter
2022-04-17 10:03:50 +02:00
Andrew Murray
2a29b2dba1
Document that fill parameter is optional
2022-04-17 10:03:50 +02:00
Hugo van Kemenade
2dd848ca4f
Include deprecation removal date
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-17 08:06:28 +03:00
Andrew Murray
e62449f94c
Added DeferredError to _fp
2022-04-17 12:14:53 +10:00
Andrew Murray
f18688e84e
Removed unused variable
2022-04-17 12:13:58 +10:00
Andrew Murray
4e075adcc5
Merged _close_fp into close and __exit__
2022-04-17 12:13:58 +10:00
Andrew Murray
2ae52552f7
Renamed __fp to _fp
2022-04-17 12:13:58 +10:00
nulano
b4b8249c9d
None is also not a valid value
2022-04-16 17:46:43 +02:00
nulano
a766b5b0d5
deprecate fill in imageFont
2022-04-16 17:07:32 +02:00
Hugo van Kemenade
967c875e6b
Merge pull request #86 from radarhere/cleanup-names
...
Cleanup: adjust names
2022-04-16 17:13:10 +03:00
Andrew Murray
e4b39d9cc7
Variable in function should be snake_case
2022-04-16 22:15:48 +10:00
Andrew Murray
280b4e9e1a
Updated variable name in comment
2022-04-16 22:15:21 +10:00
Andrew Murray
35fbf22250
Merge branch 'main' into cleanup-names
2022-04-16 19:49:40 +10:00
Andrew Murray
535c45717f
Merge pull request #6184 from hugovk/deprecations-helper
...
Add deprecations helper
2022-04-16 18:58:46 +10:00
Andrew Murray
c8118438ae
Do not update frame position until local image is found
2022-04-16 17:07:39 +10:00
Hugo van Kemenade
136d1a89df
Fix deprecation warning
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-15 12:08:15 +03:00
Andrew Murray
72a59d298a
Variable in function should be snake_case
2022-04-15 19:00:23 +10:00
Andrew Murray
950d0ad1d3
Fixed behaviour change from #5901 endian fix
2022-04-12 23:12:54 +10:00
Hugo van Kemenade
fe4c859fc1
[Private] argument name should be snake_case
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
7fa92c67b1
[Private] class names should be CamelCase
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d241e38120
[Private] function names should be snake_case
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d3c9a6504e
Variable in function should be snake_case
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
965df6df6f
Add missing paramters to docstrings
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
1997c814ab
Move useful comment into docstring
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
855c1a12da
Use self for first method parameter
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
830da5c41e
Rewrite dict creation as dict literal for better performance
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
9d87b26a67
Don't redeclare loop variable
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
b863da6deb
Don't redeclare (unused) loop variable
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
ee85e387ba
Remove redundant parentheses
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
6a648c9ce7
Add comma to make a tuple
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
a9707e0a6f
Remove redundant regex escapes
2022-04-10 23:39:54 +03:00
Hugo van Kemenade
c9acb9b387
Update docstring
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-10 19:27:57 +03:00
Hugo van Kemenade
13994d4b36
More f-strings
2022-04-10 17:56:42 +03:00
Hugo van Kemenade
74ccda3aff
Simplify chained comparison
2022-04-10 17:50:17 +03:00
Hugo van Kemenade
935bdfa516
Use triple-quoted docstrings
2022-04-10 17:47:32 +03:00
Hugo van Kemenade
63f64de8b5
Merge pull request #6188 from radarhere/point
2022-04-08 20:05:30 +03:00
Andrew Murray
e824558076
If removal version has arrived, raise an error
2022-04-08 21:22:31 +10:00
Andrew Murray
0b5cdba431
Load before getting size in resize()
2022-04-08 19:11:27 +10:00
Andrew Murray
42f67d184a
Round lut values where necessary
2022-04-07 08:58:57 +10:00
Hugo van Kemenade
4996f84fb3
Merge pull request #6182 from radarhere/fribidi
2022-04-06 16:59:58 +03:00
Hugo van Kemenade
4cb8e4b3fa
Add deprecations helper
2022-04-06 13:19:52 +03:00
Andrew Murray
910a29fb92
Load image before performing size calculations in thumbnail()
2022-04-06 11:19:39 +10:00
Andrew Murray
b2081a60eb
Search for libfribidi.dylib in /usr/local/lib
2022-04-05 09:28:41 +10:00
Andrew Murray
ba5f2d75b5
Merge pull request #6167 from gmarkall/unpack-bgra16
...
Add support for unpacking 16-bit BGRA
2022-04-04 07:49:45 +10:00
Hugo van Kemenade
188211a913
Merge pull request #6178 from radarhere/imagetk
...
Deprecated PhotoImage.paste() box parameter
2022-04-03 10:06:37 +03:00
Andrew Murray
a724be66be
Deprecated PhotoImage.paste() box parameter
2022-04-02 23:44:28 +11:00
Andrew Murray
216e3d79a9
Removed documentation for deprecated size parameter
2022-04-02 23:33:19 +11:00
Andrew Murray
29c122fe5d
Updated BGRA comments
2022-04-02 22:00:49 +11:00
Andrew Murray
6b2da2f123
Consider transparency from each frame when saving
2022-04-02 21:04:22 +11:00
Hugo van Kemenade
e811ff4671
9.2.0.dev0 version bump
2022-04-01 17:53:13 +03:00
Hugo van Kemenade
1e0bc4acbb
9.1.0 version bump
2022-04-01 10:48:00 +03:00
scaramallion
07be0d26ba
Re-add explicit default MCT value
2022-03-31 22:13:17 +03:00
scaramallion
bab4effbce
Fix s390x build failure
2022-03-31 22:13:17 +03:00
scaramallion
4e7f041795
Rename parameter and add more tests
2022-03-31 22:13:17 +03:00
scaramallion
f8a74cbed1
Fix priority when selecting j2k kind
2022-03-31 22:13:17 +03:00
scaramallion
de26f78eb1
Add 'mct' and 'use_jp2' options for J2K saving
2022-03-31 22:13:17 +03:00
Graham Markall
e500dcfb97
Add support for unpacking 16-bit BGRA
2022-03-31 10:42:54 +01:00
Ondrej Baranovič
237f6a2662
don't call dlerror in fribidi shim
2022-03-31 02:13:05 +02:00
Hugo van Kemenade
e60ca89721
Merge pull request #6150 from radarhere/gif
2022-03-30 23:23:59 +03:00
Hugo van Kemenade
4bc6483564
Merge pull request #6034 from radarhere/imageops
2022-03-30 16:16:57 +03:00
Andrew Murray
e22a4395d3
Renamed setting
2022-03-29 21:26:29 +11:00
Andrew Murray
33022eef16
Added versionadded
2022-03-28 22:02:26 +11:00
Andrew Murray
ae8de77721
Raise ValueError when trying to save empty image
2022-03-28 21:18:53 +11:00
Hugo van Kemenade
1bc0e1bb9d
Merge pull request #5973 from radarhere/planar_configuration
2022-03-27 18:52:44 +03:00
Hugo van Kemenade
f7169f9c93
Merge pull request #5980 from radarhere/polygon
2022-03-27 18:51:10 +03:00
Hugo van Kemenade
5a35e87e65
Merge pull request #5958 from radarhere/memory
2022-03-27 18:49:07 +03:00
Hugo van Kemenade
57a5066d14
Merge pull request #6032 from radarhere/tk
2022-03-27 18:46:45 +03:00
Hugo van Kemenade
35e1932748
Merge pull request #5970 from radarhere/warnings
2022-03-27 18:43:38 +03:00
Hugo van Kemenade
fa6e18a771
Merge pull request #6152 from radarhere/screencapture
...
Use screencapture arguments to crop on macOS
2022-03-27 11:27:16 +03:00
Hugo van Kemenade
96a9776931
Merge pull request #6151 from radarhere/pdf
...
Do not mark L mode JPEG as 1 bit in PDF
2022-03-27 11:23:57 +03:00
Hugo van Kemenade
5ff4a137c7
Merge pull request #6147 from radarhere/webp
2022-03-26 19:51:32 +02:00
Hugo van Kemenade
aeba11db1b
Merge pull request #6148 from radarhere/gif_size
2022-03-26 19:48:08 +02:00
Hugo van Kemenade
8107098657
Merge pull request #6132 from radarhere/fillorder
2022-03-26 19:47:14 +02:00
Hugo van Kemenade
9134f07615
Merge pull request #6134 from radarhere/created_cleanup
...
If an error occurs after creating a file, remove the file
2022-03-24 08:08:36 +02:00
Hugo van Kemenade
3ce6501228
Merge pull request #6136 from radarhere/imageshow
...
Fixed calling DisplayViewer or XVViewer without a title
2022-03-24 07:35:59 +02:00
Hugo van Kemenade
e5ce1c8c57
Merge pull request #6128 from radarhere/gif_rgba
2022-03-23 18:36:03 +02:00
Hugo van Kemenade
c3d0dcda7a
Merge pull request #6122 from radarhere/ico
2022-03-23 17:07:00 +02:00
Hugo van Kemenade
3cce863ec8
Merge pull request #6124 from radarhere/exif
2022-03-23 17:01:22 +02:00
Hugo van Kemenade
a921fcbf75
Merge pull request #6102 from radarhere/bmp_rle8
2022-03-23 17:00:31 +02:00
Andrew Murray
a4bb0ec660
Merge pull request #6006 from lukegb/tk-in-binary
...
Support Python distributions where _tkinter is compiled in
2022-03-23 12:40:27 +11:00
Andrew Murray
c5efe60c37
Reverted converting L with transparency to LA after first frame
2022-03-22 22:07:37 +11:00
Andrew Murray
dd2b91c5b8
Use screencapture arguments to crop on macOS
2022-03-22 21:58:32 +11:00
Andrew Murray
bde3086592
Do not mark L mode JPEG as 1 bit
2022-03-22 21:41:11 +11:00
Andrew Murray
ce8c682748
Added setting to convert to RGB only at a different palette
2022-03-22 20:28:49 +11:00
Andrew Murray
66bb2bd5e8
Added setting to convert first GIF frame to RGB
2022-03-22 20:20:38 +11:00
Andrew Murray
7928e944cb
Keep subsequent L frames without transparency as L
2022-03-22 20:20:38 +11:00
Andrew Murray
b0d0d2b9cc
Fixed saving L mode GIF with background as WebP
2022-03-22 20:17:28 +11:00
Hugo van Kemenade
a6a843e548
Merge pull request #6140 from radarhere/webp_duration
...
Added WebP default duration of zero when saving
2022-03-22 09:23:10 +02:00
Andrew Murray
d806227199
Do not expand GIF during n_frames
2022-03-21 23:19:26 +11:00
Andrew Murray
ebdb47e693
Support reading I;16R TIFF images
2022-03-20 13:34:50 +11:00
Andrew Murray
be9ee98631
Removed period before colon
2022-03-19 17:48:31 +11:00
Hugo van Kemenade
7857a1dff0
Merge pull request #6119 from radarhere/ppm_maxval
2022-03-18 18:14:40 +02:00
Andrew Murray
2981569b29
Added default duration of zero
2022-03-17 23:49:23 +11: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
6f128c4c39
Removed unused variable
2022-03-15 22:15:24 +11:00
Andrew Murray
f3b7ee2d3e
Do not pass None to subprocess
2022-03-15 08:31:17 +11:00
Andrew Murray
71c30ed266
If an error occurs after creating a file, remove the file
2022-03-14 23:33:45 +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
76871795f7
Resolved UNDONE by removing code
2022-03-12 15:54:08 +11:00
Andrew Murray
59780abd79
Save multiple images at different bit depths if provided
2022-03-12 15:49:36 +11:00
Andrew Murray
268be11be6
If primary image is already destination size, do not duplicate
2022-03-12 15:49:36 +11:00
Andrew Murray
5ce67cd896
Use _binary instead of struct
2022-03-12 15:49:36 +11:00
Andrew Murray
a8586fe1ff
Do not save duplicates when duplicate sizes are supplied
2022-03-12 15:49:36 +11:00
Andrew Murray
4e16a9a942
Retain RGBA transparency when saving multiple frames
2022-03-12 15:14:36 +11:00
Andrew Murray
07210e9425
Handle EXIF data truncated to just the header
2022-03-12 08:23:40 +11:00
Hugo van Kemenade
515957b2ac
Merge pull request #6097 from radarhere/bigtiff
2022-03-11 23:05:41 +02:00
Andrew Murray
ca6724bb9d
Merge branch 'main' into gif
2022-03-11 08:44:42 +11:00
Hugo van Kemenade
5c931de27f
Merge pull request #6117 from radarhere/return
2022-03-10 22:27:03 +02:00
Hugo van Kemenade
06396094c0
Merge pull request #6116 from radarhere/load_prepare
2022-03-10 22:26:00 +02:00
Hugo van Kemenade
652542c770
Merge pull request #6112 from radarhere/i_i16_conversion
...
Clip I;16 to be unsigned, not signed
2022-03-10 19:56:45 +02:00
Hugo van Kemenade
29960c6610
Merge pull request #6108 from radarhere/none
2022-03-10 17:36:13 +02:00
Hugo van Kemenade
d0a33addc5
Merge pull request #6086 from radarhere/l_gif
2022-03-10 17:35:00 +02:00
Andrew Murray
ad07b04678
Maximum maxval is 65535
2022-03-10 09:55:47 +11:00
Andrew Murray
039b7ecd56
Finish reading data at eof
2022-03-09 22:36:34 +11:00
Andrew Murray
9db527a473
Finish once enough data has been read
2022-03-09 22:36:33 +11:00
Andrew Murray
11f1ba3540
Skip additional data if past end of row
2022-03-09 22:36:32 +11:00
Andrew Murray
0ace3fcd26
Added BMP RLE8 decoder
2022-03-09 22:35:48 +11:00
Andrew Murray
4283a604c0
Added support for arbitrary maxval
2022-03-09 22:29:45 +11:00
Andrew Murray
e87432b745
First return value is unused
2022-03-08 19:51:24 +11:00
Andrew Murray
54a4a38e42
Return -1 when finished decoding
2022-03-08 19:48:58 +11:00
Andrew Murray
0d6f3ad6cc
Removed load_prepare nearly identical to ImageFile load_prepare
2022-03-08 19:01:57 +11:00
Andrew Murray
397a940995
Merge pull request #6094 from radarhere/decoder
...
Improved codec documentation
2022-03-07 08:01:31 +11:00
Hugo van Kemenade
c16737d589
Merge pull request #6096 from radarhere/cleanup
2022-03-06 20:12:13 +02: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
Hugo van Kemenade
180c89f755
Merge pull request #6092 from radarhere/accept
2022-03-05 23:10:08 +02:00
Andrew Murray
633abcbe7e
Updated error message
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-03-06 07:27:11 +11:00
Hugo van Kemenade
c32f908629
Merge pull request #6106 from radarhere/imagestat
...
Document that histogram() uses 256 bins per channel
2022-03-05 08:27:25 +02:00
Andrew Murray
c8b69a78f3
Clip I;16 to be unsigned, not signed
2022-03-05 13:42:39 +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
65edcc4f77
Merge branch 'main' into PPMheaders
2022-03-04 12:30:41 +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
Andrew Murray
cb4e26783f
Retain variable case for backwards compatibility
2022-03-04 12:27:14 +11:00
Andrew Murray
e2e87d73c3
Reverted SyntaxError change to match other plugins
2022-03-04 12:26:55 +11:00
Andrew Murray
c27519960f
Check if self.im is not None
2022-03-03 22:10:19 +11:00
Andrew Murray
de968dd920
Document that histogram() uses 256 bins per channel
2022-03-02 21:21:25 +11:00
Andrew Murray
7d3274518d
Allow LA to be used as a mask in paste()
2022-03-01 21:05:42 +11:00
Andrew Murray
e2b007f0c2
Use transparency info key when converting to LA
2022-03-01 20:25:25 +11:00
Andrew Murray
5c6212052c
Convert subsequent frames of L mode GIF to LA if transparency is present
2022-03-01 20:11:35 +11:00
Andrew Murray
573cf278f1
Reset size when seeking away from "Large Thumbnail" MPO frame
2022-03-01 19:10:10 +11:00
Andrew Murray
2b9cc3ccc5
Documented writing your own encoder in C
2022-03-01 16:34:21 +11:00
Andrew Murray
95e3194497
Improved documentation for _pulls_fd and _pushes_fd
2022-03-01 13:15:12 +11:00
Andrew Murray
fc7319318e
Added BigTIFF reading
2022-03-01 09:23:12 +11:00
Andrew Murray
bb9338e34d
Removed duplicate code
2022-02-28 14:13:04 +11:00
Andrew Murray
4d868abd8a
Moved non-codec code outside of try block
2022-02-28 14:13:04 +11:00
Andrew Murray
a606fd85a3
Run encoder cleanup method after errors as well
2022-02-28 14:12:56 +11:00
Andrew Murray
f2987d65c0
Linked to file codec documentation
2022-02-28 08:36:26 +11:00
Hugo van Kemenade
1d3b373160
Merge pull request #6069 from radarhere/pyencoder
2022-02-27 18:34:09 +02:00
Andrew Murray
56324c300d
Simplify code by using _accept
2022-02-27 14:48:36 +11:00
Andrew Murray
e2288356ca
Use _accept check in _open
2022-02-27 14:48:36 +11:00
Andrew Murray
885e305fe9
Make code clearer by matching _accept condition
2022-02-27 14:48:36 +11:00
Andrew Murray
83b9e66133
Moved flags check into _accept
2022-02-27 14:48:36 +11:00
Andrew Murray
efb9d503a7
Raise SyntaxError if data is not as expected
2022-02-27 14:48:36 +11:00
Andrew Murray
fbaaf3c19b
Do not read data until necessary
2022-02-27 14:48:36 +11:00
Andrew Murray
e36774617c
Added BLP1 saving
2022-02-25 23:58:13 +11:00
Andrew Murray
1859bc3462
Added reading non-JPEG BLP1 as RGBA
2022-02-25 17:50:21 +11:00
Andrew Murray
3ec928251c
Fixed reading uncompressed BLP2 with alpha
2022-02-25 16:54:53 +11:00
Andrew Murray
169025df6c
Added BLP saving
2022-02-25 16:53:53 +11:00
Andrew Murray
747029bea9
Simplified code
2022-02-25 16:07:32 +11:00
Andrew Murray
a0e1fde1ed
Added PyEncoder
2022-02-25 16:07:01 +11:00
Andrew Murray
0d729941a8
Handle packets that cross scan lines
2022-02-25 09:41:16 +11:00
Andrew Murray
17d342bc4b
Simplified code as both values are 7 bit
2022-02-25 09:41:16 +11:00
Hugo van Kemenade
96516ce5f1
Merge pull request #6078 from radarhere/imageshow
2022-02-23 14:56:18 +02:00
Andrew Murray
3c1e7a7f5a
Corrected docstring [ci skip]
2022-02-22 10:32:02 +11:00
Andrew Murray
35cdcdc65d
Added ImageShow.register examples
2022-02-21 20:32:21 +11:00
Andrew Murray
f8546768d6
Do not update images during n_frames or is_animated seeking
2022-02-21 18:34:05 +11:00
Andrew Murray
590c616cfd
If next byte ends the GIF, stay on the current frame
2022-02-21 17:35:50 +11:00
Andrew Murray
73cf28cc94
If GIF has already seeked past first frame, it is animated
2022-02-21 15:57:13 +11:00
mergify[bot]
c58d2817bc
Merge pull request #6056 from radarhere/fits
...
Added FITS reading
2022-02-20 21:49:01 +00:00
Andrew Murray
7aa49741c6
Merge branch 'main' into getpalette
2022-02-20 23:52:20 +11:00
Andrew Murray
da451e5bea
Record the version the rawmode argument was added
2022-02-19 22:55:23 +11:00
Hugo van Kemenade
b78e601b63
Merge pull request #6071 from radarhere/handler
...
Fixed BUFR, GRIB and HDF5 stub saving
2022-02-19 11:25:42 +02:00
Hugo van Kemenade
de06aba8f1
Merge pull request #6068 from radarhere/quantize
...
Changed quantize default dither to FLOYDSTEINBERG
2022-02-19 11:24:17 +02:00
Hugo van Kemenade
bfa6da63a4
Merge pull request #6045 from radarhere/imageshow
...
Do not automatically remove temporary ImageShow files on Unix
2022-02-19 11:06:10 +02:00
Hugo van Kemenade
3d33987d7c
Merge pull request #4685 from Meithal/patch-3
...
Correctly read JPEG compressed BLP images
2022-02-19 11:03:36 +02:00
Hugo van Kemenade
e0afe932a1
Merge pull request #6057 from radarhere/mode_conv
...
Merged _MODE_CONV typ into ImageMode as typestr
2022-02-19 10:13:36 +02:00
Andrew Murray
7dca0135dd
Merge branch 'main' into fits
2022-02-19 14:41:45 +11:00
Andrew Murray
2368723230
Deprecated FitsStubImagePlugin
2022-02-19 14:41:12 +11:00
Andrew Murray
3f5fad3a27
Fixed BUFR, GRIB and HDF5 stub saving
2022-02-19 14:29:03 +11:00
Andrew Murray
341802c2dc
Removed unused argument
2022-02-19 10:50:07 +11:00
Andrew Murray
7538864839
Changed quantize default dither to FLOYDSTEINBERG
2022-02-19 10:49:46 +11:00
Hugo van Kemenade
1ec7be9a87
Merge pull request #6060 from radarhere/palette
...
Consider palette size when converting and in getpalette()
2022-02-18 23:31:56 +02:00
Hugo van Kemenade
07741c9315
Merge pull request #5954 from radarhere/enum
2022-02-18 15:53:41 +02:00
Andrew Murray
985e4fbe40
Simplified code
2022-02-17 22:22:34 +11:00
Hugo van Kemenade
0aca22e863
Merge pull request #6052 from radarhere/p2pa
2022-02-17 09:39:39 +02:00