pub fn process(
bytes: &[u8],
mime_type: &str,
auto_resize: bool,
limits: Option<&ImageResize>,
) -> Result<Processed, &'static str>Expand description
pi’s processImage: an image that is not PNG, JPEG, GIF or WebP becomes
PNG when the image crate, with Photon’s formats, recognizes it from its
bytes (BMP, TIFF, ICO, PNM, HDR, DDS or farbfeld), and with auto_resize
the image is fitted to limits, pi’s defaults where unset: 2000×2000 and
4.5 MB of base64. The error is pi’s omission note.