Function meme_rs::write_meme [−][src]
pub fn write_meme(input_file: &PathBuf, output_file: &PathBuf, text: &str)
Expand description
Writes a meme from a base image to an output file Text may be split with a ‘|’ character
use std::path::PathBuf; use meme_rs::write_meme; write_meme(&PathBuf::from("./img/aliens.jpg"), &PathBuf::from("/tmp/output.jpg"), "YOLO | FOOBAR");