Commit Graph

3254 Commits

Author SHA1 Message Date
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