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 image_base64;
fn main() { let base64 = "base64 String"; let image = imagebase64::frombase64(base64);
let imagepath = "local image file path" let base64 = imagebase64::tobase64(imagepath); } ```
Add the dependency to your Cargo.toml
:
toml
[dependencies]
image-base64 = "0.1"
MIT