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(web): use native image decoder #3074

Merged
merged 2 commits into from
Nov 29, 2023
Merged

fix(web): use native image decoder #3074

merged 2 commits into from
Nov 29, 2023

Conversation

uhthomas
Copy link
Member

@uhthomas uhthomas commented Jul 2, 2023

The decode function should be more reliable than event listeners and doesn't need additional logic for destruction. The semantics of decode are also different to the 'load' event listener. 'decode' will wait until the image has been fully decoded and can be rendered, unlike 'load' which will trigger before the image has actually been decoded.

Fixes: #3073

@vercel
Copy link

vercel bot commented Jul 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
immich ⬜️ Ignored (Inspect) Jul 2, 2023 3:40pm

@uhthomas
Copy link
Member Author

uhthomas commented Jul 2, 2023

This is probably still a nice thing to have, as the code is simpler and less likely to be prone to failures, but unfortunately does not resolve the linked issue.

image

@uhthomas uhthomas force-pushed the 3073 branch 5 times, most recently from 177b6dc to 485b326 Compare July 2, 2023 15:05
@alextran1502 alextran1502 enabled auto-merge (squash) November 29, 2023 15:06
@alextran1502 alextran1502 merged commit 6969002 into main Nov 29, 2023
22 of 23 checks passed
@alextran1502 alextran1502 deleted the 3073 branch November 29, 2023 15:09
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.

thumbnails don't load sometimes
4 participants