image-base64-rs

crates travis

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 image_base64;

fn main() { let base64 = "base64 String"; let image = imagebase64::frombase64(base64);

let imagepath = "local image file path" let base64 = imagebase64::tobase64(imagepath); } ```

Installation

Add the dependency to your Cargo.toml:

toml [dependencies] image-base64 = "0.1"

License

MIT