-
Notifications
You must be signed in to change notification settings - Fork 272
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
Improve support for animated image importing #1801
Improve support for animated image importing #1801
Conversation
Probably not done initially because it adds a lot of member functions and properties that are not used by the double progress dialog. However it handles canceling much better than we do manually, including canceling with keyboard shortcuts or by closing the dialog.
The progress dialog now updates as it imports the gif, and can be aborted during the import. Some refactoring was done to move some logic around.
The error checking has also been modified to hopefully be more robust as it no longer depends on reader.size() being invalid, which might not occur during certain types of image corruption, and may occur without corruption for certain types of image formats.
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.
Overall i like the changes, there's just one thing I bumped into that should be fixed.
The title for the import dialog is now saying "animated image" when it should be sequence and vise versa.
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.
LGTM 👍
This PR contains a few loosely related changes to image importing. Specifically: