Function exists_image

Source
pub fn exists_image(folder: &Path, kind: Kind, where_: (usize, usize)) -> bool
Expand description

Whether this image already exists at the name write_image would use.

Checks JPEG and PNG because the extension follows the downloaded bytes. Numbered images retain the (index, count) returned by positions, so a repeated pass can resume a partial booklet without downloading its saved pages again.