Function process_image_from_memory

Source
pub fn process_image_from_memory(input_data: &[u8]) -> Result<Vec<u8>, JsValue>
Expand description

Processes an image from memory, extracts color data, and returns the resulting image bytes.

§Arguments

  • input_data - A slice of bytes representing the input image data.

§Returns

A Result containing a Vec<u8> of the resulting image bytes if successful. If an error occurs, returns a JsValue with an error message.