pub fn optimize_image(
input_path: &Path,
args: &Cli,
input_dir: &Path,
) -> Result<u64>Expand description
Optimizes an image file using the appropriate format-specific optimizer
ยงErrors
Returns an error if file I/O operations fail, image processing fails, or unsupported format