Image compressor
image_compressor is a library that compresses images with multiple threads.
See image crate for check the extention that supported.
Examples
folder_compress_with_sender example.
The function compress all images in given origin folder with multithread at the same time,
and wait until everything is done. With mpsc::Sender (argument tx in this example),
the process running in this function will dispatch a message indicating whether image compression is complete.
use PathBuf;
use mpsc;
use folder_compress_with_sender;
let origin = from;
let dest = from;
let thread_count = 4;
let = channel;
match folder_compress_with_sender
folder_compress example.
The function compress all images in given origin folder with multithread at the same time, and wait until everything is done. This function does not send any messages.
use PathBuf;
use mpsc;
use folder_compress;
let origin = from;
let dest = from;
let thread_count = 4;
match folder_compress