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

Fix screenshot function to save user specified <imageFilename> on macOS #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

addisonlee
Copy link

@addisonlee addisonlee commented Oct 9, 2024

Summary

On macOS, the screenshot function was only saving the user specified <imageFileName> for Pillow versions < 6.2.1.

It now saves user specified files for Pillow versions >= 6.2.1 as well.

Testing notes

I did not add any tests since test_pyscreeze.py already contained a failing test_screenshot test.

It contained 2 failing assertions. The 1st one (checking the saved file) now passes with this fix. The 2nd one (comparing size to resolution) still fails but it's a separate issue not related to this change.

…acOS

`screenshot` was only saving files for Pillow versions < 6.2.1.
It now saves files for Pillow versions >= 6.2.1 as well.

No new tests were added since there was already a (failing) test for this.
@addisonlee addisonlee changed the title Fix screenshot function to save user specified <imageFilename> on m… Fix screenshot function to save user specified <imageFilename> on macOS Oct 9, 2024
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.

1 participant