-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added progress callback when save_all is used #7435
Open
radarhere
wants to merge
20
commits into
python-pillow:main
Choose a base branch
from
radarhere:progress
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
6850465
Added progress callback when save_all is used
radarhere 3465a59
Pass back index of image in sequence, instead of filename
radarhere b5f3228
Restored filename in progress callback
radarhere fe7c9d3
Moved progress code into common private method
radarhere fae0653
Merge branch 'main' into progress
radarhere 19c2721
Merge branch 'main' into progress
radarhere 4a0a011
Merge branch 'main' into progress
radarhere 69680db
Merge branch 'main' into progress
radarhere 344c300
Merge branch 'main' into progress
radarhere 3c80ec0
Merge branch 'main' into progress
radarhere b7a5b59
Updated tests for os.path.realpath
radarhere 14560e1
Merge branch 'main' into progress
radarhere d52b3a2
Merge branch 'main' into progress
radarhere 682a9ae
Merge branch 'main' into progress
radarhere 2f27173
Merge branch 'main' into progress
radarhere 26e2a9f
Merge branch 'main' into progress
radarhere 8b4b7ce
Merge branch 'main' into progress
radarhere ebbdc6e
Merge branch 'main' into progress
radarhere fc5c096
Merge branch 'main' into progress
radarhere 62786fd
Merge branch 'main' into progress
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with "save all"? This method just passes data into another function (supplied externally).
If anything,
_report_progress
would make much more sense here. (Or even just_progress
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It indicates that the method is used in relation to
im.save(out, save_all=True)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…Ah. Alright, it does make sense in that context.
Though it would still make more sense to name it something like
_frame_progress
, I'd say; it's more generic and there's not really anything in the method itself that makes it necessarily about saving only.