pub fn selfie_from_file(filename: &str) -> Result<DynamicImage, PromptoError> {
  let source = image::open(&Path::new(filename))?
      .to_rgba();
  let mut source = DynamicImage::ImageRgba8(source);
  let _r = add_selfie_to_image(&mut source)?;
  Ok(source)
}
/// Load an image file into memory and add a Prompto selfie.
Load an image file into memory and add a Prompto selfie.
Load an image file into memory and add a Prompto selfie .
pub fn selfie_from_file(filename: &str) -> Result<DynamicImage, PromptoError> {
  let source = image::open(&Path::new(filename))?
      .to_rgba();
  let mut source = DynamicImage::ImageRgba8(source);
  let _r = add_selfie_to_image(&mut source)?;
  Ok(source)
}
pub fn selfie_from_file ( filename : & str ) -> Result < DynamicImage , PromptoError > { let source = image :: open ( & Path :: new ( filename ) ) ? . to_rgba ( ) ; let mut source = DynamicImage :: ImageRgba8 ( source ) ; let _r = add_selfie_to_image ( & mut source ) ? ; Ok ( source ) }
Load an image file into memory and add a Prompto selfie.
Load an image file into memory and add a Prompto selfie .
filename
&str
filename
&str