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

Using the user agents capabilities for loading images on web #4465

Open
valaphee opened this issue May 5, 2024 · 0 comments
Open

Using the user agents capabilities for loading images on web #4465

valaphee opened this issue May 5, 2024 · 0 comments
Labels
web Related to running Egui on the web

Comments

@valaphee
Copy link

valaphee commented May 5, 2024

Is your feature request related to a problem? Please describe.
There is no need for a full-on image parsing library on wasm builds, as the user agent integrates plenty of image parser. It's also possible to directly initialize images from such sources. Either through HTMLImageElement or ImageData.

This would improve the loading times, by removing the image parser running in wasm, and the delivery time of the wasm file itself, as the image crate itself is quite heavy.

Describe the solution you'd like

Switching over to using HTMLImageElement.

Describe alternatives you've considered

Additional context
Depends on gfx-rs/wgpu#5668

@valaphee valaphee changed the title Using the user agents capabilities for loading images Using the user agents capabilities for loading images on web May 5, 2024
@emilk emilk added the web Related to running Egui on the web label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Related to running Egui on the web
Projects
None yet
Development

No branches or pull requests

2 participants