fix: pass existing image extension reference to PPTX MIME lookup

This commit is contained in:
Mex authored and GitHub committed 2026-11-14 20:57:43 +01:00
1 parent 168427e476
commit 6c0bef6318
1 file changed
+1 -1
+1 -1
View File
@@ -368,7 +368,7 @@ xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" type=\"blank\"
pkg.rels(&path, s_rels);
}
for (name, im) in &global_media {
pkg.binary(&format!("ppt/media/{name}"), image_mime(&im.ext), im.bytes.to_vec());
pkg.binary(&format!("ppt/media/{name}"), image_mime(im.ext), im.bytes.to_vec());
}
pkg.finish().unwrap_or_default()
}