johanhelsing / bevy_web_asset

Bevy asset loader that transparently supports loading over http(s)
Apache License 2.0
71 stars 17 forks source link

WASM Issues for Images #11

Closed CodingJinxx closed 1 year ago

CodingJinxx commented 1 year ago

When trying to load an Image in a WASM game following error is output to the console

WARN C:\Users\Jay\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_asset-0.9.1\src\asset_server.rs:454 encountered an error while loading an asset: Error reading image file https://i.pinimg.com/originals/b5/41/b3/b541b339d5fee0af74e95d3fe7bbf038.png: failed to load an image: Format error decoding Png: Unexpected end of data before image end., this is an error in `bevy_render`.
CodingJinxx commented 1 year ago

Tested it on latest, does work. Not in my code idk. Sorry about the issue

johanhelsing commented 1 year ago

No worries. Maybe you're missing the png feature of bevy?