#Assets loading question

4 messages ยท Page 1 of 1 (latest)

mild helm
#

Hey everyone ๐Ÿ‘‹
oke, so
context: I have custom AssetIO to load images from url + some processing after in load_path() (resize, crop etc)

how do i tell bevy what type vec<u8> is if there is no extension at the end of the path/url?

right now i'm abusing extension logic with url params (like https://some-image-storage.com/img/123?.png), but would be great to be able to just pass mime type or extension manually

rough garnet
#

So, to clarify, you know what type the file is, the question is how to inform bevy of that type?

You may want to add this to the suggested requirements in Cart's project in #assets-dev , as this area is under active rework for non-file-sourced content handling.

mild helm
#

well, for now yes, i'm guaranteed to receive .png, but there will be more extensions later

#

and there will be no exts in the urls, only mime from content-type