Skip to content

Call init() if mimetype is not found with preinit()#1

Merged
rrcgat merged 2 commits intorrcgat:fix-imagegrab-with-wl-pastefrom
radarhere:init
Apr 21, 2023
Merged

Call init() if mimetype is not found with preinit()#1
rrcgat merged 2 commits intorrcgat:fix-imagegrab-with-wl-pastefrom
radarhere:init

Conversation

@radarhere
Copy link

Suggestions for python-pillow#7094

  • I went through test.yml and removed any of new settings I could while still having wl-paste work.
  • I updated ImageGrab.py to use Image.init() if Image.preinit() isn't sufficient. To explain a bit further, preinit() imports five of the formats - BMP, GIF, JPEG, PPM and PNG, and then init() imports the rest if that wasn't enough. This is what is done in open().

@rrcgat
Copy link
Owner

rrcgat commented Apr 21, 2023

LGTM, thank you!

@rrcgat rrcgat merged commit 5a0c431 into rrcgat:fix-imagegrab-with-wl-paste Apr 21, 2023
@radarhere radarhere deleted the init branch April 21, 2023 00:53
radarhere pushed a commit that referenced this pull request May 22, 2023
Only assert image is similar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants