add: include ImageFormat
This commit is contained in:
parent
7607c8079d
commit
0dcc94b7cf
4 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
pub mod encode;
|
||||
pub mod extract;
|
||||
|
||||
pub use image::ImageFormat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue