Skip to content

Thumbnails must always exist: layered auto-generation for every G-code path #722

Closed

Description

@alex-mextner

What

Add independent layers so a G-code always carries 48x48, 96x96 and 300x300 PNG thumbnails however it was produced: (a) slicing wrappers ask the slicer for them in its settings; (b) every slicing entry point (3d slice, the Orca wrapper behind 3d prep, 3d retarget with --gcode, the U1 calibration plate) draws missing sizes from the toolpaths after slicing, plus missing plate PNGs in a 3MF; (c) 3d printer upload and start add missing thumbnails in place instead of failing; (d) 3d print-preflight names the exact fix command and gains --fix; (e) tests including a guard that fails when a module running a slicer does not call the layer, and a fake Moonraker upload test.

Why (motivation)

3d print-preflight FAILs G-code without 48x48 and 300x300 thumbnails; the Orca CLI exports none, and on the SIMBOL print the fix was a manual gcode-thumbnails add. The owner wants it impossible to end up without a thumbnail.

User impact

Every headless slice and every upload shows a preview on the printer screen without the user remembering a command; no preflight FAIL for this reason.

Cost of inaction

Each headless slice keeps producing G-code that preflight refuses until someone runs the manual command; a forgotten step prints with a blank screen.

Acceptance criteria

Screenshots

(none)

Deploy

Deployed: no

Links

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions