image-base64-wasm
Convert jpeg, png, gif, ico to base64, and vise versa
Compatibility
The library is compatible with wasm
To build into wasm, uncomment the target line in .cargo/config
[build]
# target = "wasm32-unknown-unknown"
Code Example
- Read from a file
extern crate image_base64_wasm;
- From
Vec<u8>
(useful for url response body)
extern crate image_base64_wasm;
Installation
Add the dependency to your Cargo.toml
under [dependencies]
:
= "0.5.0"
License
MIT