add: include ImageFormat

This commit is contained in:
trisua 2025-08-24 12:06:54 -04:00
parent 7607c8079d
commit 0dcc94b7cf
4 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,7 @@ use std::{fs::File, io::BufWriter};
pub fn save_image_buffer(
path: &str,
bytes: Vec<u8>,
format: image::ImageFormat,
format: crate::ImageFormat,
) -> std::io::Result<()> {
let pre_img_buffer = match image::load_from_memory(&bytes) {
Ok(i) => i,

View file

@ -1,2 +1,4 @@
pub mod encode;
pub mod extract;
pub use image::ImageFormat;