diff --git a/src/app/gesture.rs b/src/app/gesture.rs index 7ac1cc6..595c4d7 100644 --- a/src/app/gesture.rs +++ b/src/app/gesture.rs @@ -1,6 +1,6 @@ use crate::*; -use ::zip::{write::FileOptions, CompressionMethod, ZipArchive, ZipWriter}; +use ::zip::{write::SimpleFileOptions, CompressionMethod, ZipArchive, ZipWriter}; use eyre::OptionExt; use guessture::{find_matching_template_with_defaults, Path2D, Template}; use std::{ @@ -86,7 +86,7 @@ impl Gesture { pub fn save(&self) -> eyre::Result<()> { let mut file = File::create(self.zip_path.as_str())?; let mut zip = ZipWriter::new(&mut file); - let options = FileOptions::default() + let options = SimpleFileOptions::default() .compression_method(CompressionMethod::Deflated) .compression_level(Some(9)); diff --git a/src/frame.rs b/src/frame.rs index 1104f7b..a09e7af 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -179,8 +179,8 @@ impl Frame { ImageType::Jpeg => FrameFmt::Jpeg, ImageType::Png => FrameFmt::Png, - ImageType::Avif => FrameFmt::Avif, - ImageType::Heif => FrameFmt::Heic, + ImageType::Heif(imagesize::Compression::Avif) => FrameFmt::Avif, + ImageType::Heif(imagesize::Compression::Hevc) => FrameFmt::Heic, // TODO: // ImageType::Heif { Hevc }=> FrameFmt::Heic, // ImageType::Heif { Av1 }=> FrameFmt::Avif,