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