chore: update

This commit is contained in:
huzibaca 2024-11-30 10:38:15 +08:00
parent c3114b876f
commit d33d90a36e

View File

@ -103,7 +103,7 @@ pub fn open_file(_: tauri::AppHandle, path: PathBuf) -> Result<()> {
Ok(())
}
// 添加新的函数来处理字节数据
#[cfg(target_os = "macos")]
pub fn is_monochrome_image_from_bytes(data: &[u8]) -> anyhow::Result<bool> {
let img = image::load_from_memory(data)?;
let rgb_img = img.to_rgb8();