pub fn process_image_file(
input_path: &Path,
output_path: &Path,
config: &ImageProcessorConfig,
) -> Result<(), Box<dyn Error>>Expand description
Processes a single image file, specified by input_path, and saves the processed image to a new file, specified by output_path.
Final image sizes can be configured via ImageProcessorConfig.
For processing a directory use process_directory.
For processing a DynamicImage from the image crate, use directly preprocess_image.