You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse the data, and determine if it's a uri, raw bytes, etc.
Load the results of that into a proper image
Step 1 is totally internal to the crate and doesn't have any dependencies. Makes sense that this is behind the "import" feature.
However, step 2 has external dependencies, and in some environments (e.g. the web), loading the data would be done some other way.
Can I request that anything which depends on image_crate be put behind some other feature flag, perhaps "import-image-data" ? (the import_image_data function itself, from import, could be put behind this as well)
The text was updated successfully, but these errors were encountered:
Hmm, it's not just the image crate - base64 is also not required on the web (since the browser can decode data URIs) and should not be included I think.
dakom
changed the title
Separate image vs. import
Separate image+base64 vs. import
Aug 5, 2019
There are two steps to loading images:
Step 1 is totally internal to the crate and doesn't have any dependencies. Makes sense that this is behind the "import" feature.
However, step 2 has external dependencies, and in some environments (e.g. the web), loading the data would be done some other way.
Can I request that anything which depends on
image_crate
be put behind some other feature flag, perhaps "import-image-data" ? (the import_image_data function itself, from import, could be put behind this as well)The text was updated successfully, but these errors were encountered: