pub fn resize_to_bytes<P>( file: P, width: Dimension, height: Dimension, format: Option<Format>, ) -> Result<Vec<u8>>where P: AsRef<Path>,