pub fn write_thumbnail( img: DynamicImage, max: u32, dest: &Path, ) -> Result<(), ThumbError>
Resizes img to the limit max and writes the encoded thumbnail to dest.
img
max
dest