Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Apr 21, 2023

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
50 of 51 checks passed
@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
2 participants