mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix thumbnail creation
CURA-9120
This commit is contained in:
parent
204eeaf272
commit
50954552d2
4 changed files with 7 additions and 7 deletions
|
@ -83,7 +83,7 @@ class UFPWriter(MeshWriter):
|
|||
thumbnail = archive.getStream("/Metadata/thumbnail.png")
|
||||
|
||||
thumbnail_buffer = QBuffer()
|
||||
thumbnail_buffer.open(QBuffer.ReadWrite)
|
||||
thumbnail_buffer.open(QBuffer.OpenModeFlag.ReadWrite)
|
||||
snapshot.save(thumbnail_buffer, "PNG")
|
||||
|
||||
thumbnail.write(thumbnail_buffer.data())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue