mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Use same thumbnail formats for Sketch as Method
CURA-12185
This commit is contained in:
parent
af5babaa14
commit
531f286445
1 changed files with 1 additions and 3 deletions
|
@ -112,15 +112,13 @@ class MakerbotWriter(MeshWriter):
|
||||||
match file_format:
|
match file_format:
|
||||||
case "application/x-makerbot-sketch":
|
case "application/x-makerbot-sketch":
|
||||||
filename, filedata = "print.gcode", gcode_text_io.getvalue()
|
filename, filedata = "print.gcode", gcode_text_io.getvalue()
|
||||||
self._PNG_FORMATS = self._PNG_FORMAT
|
|
||||||
case "application/x-makerbot":
|
case "application/x-makerbot":
|
||||||
filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue())
|
filename, filedata = "print.jsontoolpath", du.gcode_2_miracle_jtp(gcode_text_io.getvalue())
|
||||||
self._PNG_FORMATS = self._PNG_FORMAT + self._PNG_FORMAT_METHOD
|
|
||||||
case _:
|
case _:
|
||||||
raise Exception("Unsupported Mime type")
|
raise Exception("Unsupported Mime type")
|
||||||
|
|
||||||
png_files = []
|
png_files = []
|
||||||
for png_format in self._PNG_FORMATS:
|
for png_format in (self._PNG_FORMAT + self._PNG_FORMAT_METHOD):
|
||||||
width, height, prefix = png_format["width"], png_format["height"], png_format["prefix"]
|
width, height, prefix = png_format["width"], png_format["height"], png_format["prefix"]
|
||||||
thumbnail_buffer = self._createThumbnail(width, height)
|
thumbnail_buffer = self._createThumbnail(width, height)
|
||||||
if thumbnail_buffer is None:
|
if thumbnail_buffer is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue