Asthowen / image-base64-rs

Converting an image to base64 and vice versa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image-base64-rs

Made with Rust Use git

Converting an image to base64 and vice versa.

This repository is based on image-base64-rs.

Code Example

fn main() {
  let base64 = "base64 String";
  let image = image_base64::from_base64(base64);
  
  let image_path = "local image file path"
  let base64 = image_base64::to_base64(image_path); 
}

Installation

Add the dependency to your Cargo.toml:

[dependencies]
image-base64 = "0.1"

License

image-base64-rs | MIT

About

Converting an image to base64 and vice versa.

License:MIT License


Languages

Language:Rust 100.0%