You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include the 2D image in 3MF exports and use it as the preview #227
The 3MF export doesn't include the image the model was built from. When the 2D edits exist only in the open page, a crash or reload loses them. Today an out-of-memory crash during a 3MF export took out an edited image that had never been downloaded, and the calibration data was the only thing left. Slicers and file browsers also show no preview of a Kromacut 3MF.
Proposal:
Embed the 2D image. Write the full-resolution processed image (after edits and quantization, as used for the build) into every 3MF export as a lossless PNG, for example under Metadata/kromacut/. A later import feature could restore it from there.
Use it as the 3MF thumbnail. Add a downscaled copy as the package thumbnail (/Metadata/thumbnail.png, linked from _rels/.rels with the OPC thumbnail relationship). Also add the plate preview images that Orca-family slicers look for (Metadata/plate_1.png), so Snapmaker Orca, Orca, Bambu Studio and Windows Explorer show the artwork instead of a blank model.
Check that Snapmaker Orca, OrcaSlicer, Bambu Studio and PrusaSlicer still open the file, and that saving it from the slicer doesn't break anything.
Out of scope here, but related: an image that only lives in memory can still be lost before an export. Keeping the working image in IndexedDB is a separate change.
Activity