pub fn process_image_file(
input_path: &str,
output_path: &str,
) -> Result<(), String>Expand description
Processes an image file, extracts color data, and saves the resulting image.
§Arguments
input_path- The path to the input image file.output_path- The path where the resulting image will be saved.
§Returns
A Result indicating success or failure. If successful, returns Ok(()).
If an error occurs, returns Err with an error message.