pub fn image_to_bytes(img: PhotonImage) -> Vec<u8> ⓘ
Save the image to a vector of bytes
use photon_rs::native::{open_image,image_to_bytes}; let img = open_image("img.jpg").expect("File should open"); // Save the image at a vec<u8> let byt = image_to_bytes(img);