Convert image to base64, and vise versa
The library is compatible with wasm
To build into wasm, uncomment the target line in .cargo/config
``` [build]
```
``` extern crate imagebase64wasm;
fn main() { let base64 = "base64 String"; let image = imagebase64wasm::from_base64(base64);
let imagepath = "local image file path" let base64 = imagebase64wasm::tobase64(image_path); } ```
Add the dependency to your Cargo.toml
:
toml
[dependencies]
image-base64-wasm = "0.1"
MIT