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

Add callback for GIF rendering completion #10

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

Conversation

selalipop
Copy link

Currently createPartyImage returns before the image has fully rendered,
this can cause invalid image output when the outputStream is immediately
read, especially for larger input images, such as animated GIFs

These changes add a callback which is fired when the gif finishes rendering,
as defined by the end event

@selalipop
Copy link
Author

selalipop commented Nov 25, 2018

Is it just me or is the indentation not right in the GitHub preview?

Locally I don't see that indentation in Sublime Merge or VSCode...

(fixed somehow 🎉 )

Currently createPartyImage returns before the image has fully rendered,
this can cause invalid image output when the outputStream is immediately
read, especially for larger input images, such as animated GIFs

These changes add a callback which is fired when the gif finishes rendering,
as defined by the `end` event
@scotchfield
Copy link
Owner

Do you have a reproducible case where this occurs? I'm not entirely sure what problem this is fixing. Happy to consider the change! Sorry for not looking at this PR sooner. :(

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.

3 participants