mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-17 00:04:18 +00:00
fix: pass existing image extension reference to PPTX MIME lookup
This commit is contained in:
1 file changed
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user