Make quote
This library provides a single function that can generate a quote image from user input. It is still under development, further document and crates.io dependencies will be released someday.
Usage
use ;
// First of all, load an font into memory
let font = read.unwrap;
// Create a image producer
let bold_font = read.unwrap;
let light_font = include_bytes!;
let builder = builder
.font
.output_size // optional
.font_scale // optional
.build;
// Create image configuration
let config = builder
.username
.avatar_path
.quote
.build;
// Then generate the image and get the image buffer
let buffer = producer.make_image.unwrap;
// You can do anything you like to the buffer, save it or just send it through the net.
write.unwrap;
This will provide the below example output:
