Commit Graph

3011 Commits

Author SHA1 Message Date
Andrew Murray
c45019fe0c Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12 2023-05-29 12:28:03 +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
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
nulano
bb18abc603
prefer screenshots using XCB over gnome-screenshot 2023-05-08 22:57:12 +01: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
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
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
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
rrcgat
099d696dc7
Fix ImageGrab with wl-paste 2023-04-15 19:28:54 +08: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
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