pub fn selfie_from_memory(buffer: &[u8])
                          -> Result<DynamicImage, PromptoError> {
  let image = load_from_memory(buffer)?;
  let mut image = to_rgba(image);

  let _r = add_selfie_to_image(&mut image)?;
  Ok(image)
}
/// Add Prompto to the image byte buffer.
Add Prompto to the image byte buffer.
Add Prompto to the image byte buffer .
pub fn selfie_from_memory(buffer: &[u8])
                          -> Result<DynamicImage, PromptoError> {
  let image = load_from_memory(buffer)?;
  let mut image = to_rgba(image);
  let _r = add_selfie_to_image(&mut image)?;
  Ok(image)
}
pub fn selfie_from_memory ( buffer : & [ u8 ] ) -> Result < DynamicImage , PromptoError > { let image = load_from_memory ( buffer ) ? ; let mut image = to_rgba ( image ) ; let _r = add_selfie_to_image ( & mut image ) ? ; Ok ( image ) }
Add Prompto to the image byte buffer.
Add Prompto to the image byte buffer .
buffer
&[u8]
buffer
&[u8]