mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix opening kitty file
Contributes to issue CURA-4872.
This commit is contained in:
parent
20b903855f
commit
e3e8e8b170
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ class UFPWriter(MeshWriter):
|
|||
#TODO: Generate the thumbnail image. Below is just a placeholder.
|
||||
archive.addContentType(extension = "png", mime_type = "image/png")
|
||||
thumbnail = archive.getStream("/Metadata/thumbnail.png")
|
||||
thumbnail.write(os.path.join(os.path.basename(__file__), "kitten.png"))
|
||||
thumbnail.write(open(os.path.join(os.path.dirname(__file__), "kitten.png"), "rb").read())
|
||||
thumbnail.close()
|
||||
archive.addRelation(virtual_path = "/Metadata/thumbnail.png", file_type = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail")
|
Loading…
Add table
Add a link
Reference in a new issue