image-base64-wasm

crates

Convert image 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

``` 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); } ```

Installation

Add the dependency to your Cargo.toml:

toml [dependencies] image-base64-wasm = "0.4.0"

License

MIT