File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ num-traits = { version = "0.2.0" }
4242
4343# Optional dependencies
4444color_quant = { version = " 1.1" , optional = true }
45- dav1d = { version = " 0.10.3 " , optional = true }
45+ dav1d = { version = " 0.11.0 " , optional = true }
4646exr = { version = " 1.74.0" , default-features = false , optional = true }
4747gif = { version = " 0.14.0" , optional = true }
4848image-webp = { version = " 0.2.0" , optional = true }
4949mp4parse = { version = " 0.17.0" , optional = true }
5050png = { version = " 0.18.0" , optional = true }
5151qoi = { version = " 0.4" , optional = true }
52- ravif = { version = " 0.12 " , default-features = false , optional = true }
52+ ravif = { version = " 0.13 " , default-features = false , optional = true }
5353rayon = { version = " 1.7.0" , optional = true }
5454rgb = { version = " 0.8.48" , default-features = false , optional = true }
5555tiff = { version = " 0.11.2" , optional = true }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use rgb::AsPixels;
2626/// Writes one image into the chosen output.
2727pub struct AvifEncoder < W > {
2828 inner : W ,
29- encoder : Encoder ,
29+ encoder : Encoder < ' static > ,
3030}
3131
3232/// An enumeration over supported AVIF color spaces
@@ -130,6 +130,12 @@ impl<W: Write> ImageEncoder for AvifEncoder<W> {
130130 self . inner . write_all ( & data. avif_file ) ?;
131131 Ok ( ( ) )
132132 }
133+
134+ fn set_exif_metadata ( & mut self , exif : Vec < u8 > ) -> Result < ( ) , UnsupportedError > {
135+ let encoder = core:: mem:: replace ( & mut self . encoder , Encoder :: new ( ) ) ;
136+ self . encoder = encoder. with_exif ( exif) ;
137+ Ok ( ( ) )
138+ }
133139}
134140
135141impl < W : Write > AvifEncoder < W > {
You can’t perform that action at this time.
0 commit comments