Bug 458458 - Add support for thumbnails embedded in gcode files
Summary: Add support for thumbnails embedded in gcode files
Status: CONFIRMED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: 22.04.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-29 08:19 UTC by Mark Fraser
Modified: 2022-09-01 21:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Fraser 2022-08-29 08:19:01 UTC
SUMMARY
It is possible to configure Prusa Slicer to add thumbnails to gcode files it produces. These are embedded PNGs and look like

; thumbnail begin 16x16 736
; iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB7UlEQVR4AbVTXYraYBQNin+IMIIg4k
; tBQYugUckYa/6M+ZuY0STTvvSlndbOMHZoZwd960MLdQldQpcwS8gSXEKWcJr7McqMIEMf+sHlC3z3
; nHvuvScc979OoVDgRVHc9nq9+3Q6ffJP4Hq9/m0ymUCSJKiqCkVR4nK57D8LzGazL7rdbkTAw5hOp2
; g2m5ujaiqVyvvxeAxZlqkiq6xpGosHFex7OBxGxWKRfwJuNBq/qQolUSXDMGDbNhzHYWFZFmaz2Z4s
; ibhWq90x8GAw2O7Auq4zoOd58H0fYRgiCAIsl0vM53NGRAVIJd39fv+eM1QJb3UBK/sUa3eElafg2t
; exDk18Dwb4cTHETWDgajHFB1fGyhFxeyYwjK7KYAS/zl8eiTZ+eq2j7476ChzJf2ee4tIW8Wku4Wap
; 4Tac4esbC1eBifWFiS+vTXwOdFyfK/h4NsGlJTIMzYobjUYx9X84A+qb+qdYLBZwXRemae5nQPMgr3
; C011ar9WdHstsCJdAGiJCAuy1QEXpPBgie5/HYB3eJD/ZqHta1D6pKZHQTOFl9lMlknvohl8vxnU4n
; oqTHLiRCUpOYiIGr1ermqJ1TqdRJYpJN0l9MYJJPBARMyOPEhc//E3SSRE0QhG273Y7y+bxWKpV8Ij
; /M+wsc4yUVooftWwAAAABJRU5ErkJggg==
; thumbnail end

You can also have larger thumbnails such as:
; thumbnail begin 220x124 7576
; thumbnail end
Comment 1 gudvinr+kde 2022-09-01 21:48:24 UTC
Thumbnails generation supported not only in PS but also in CURA and I believe in S3D too.

Also PS can generate QOI thumbnails:
https://github.com/prusa3d/PrusaSlicer/commit/87cff55856ae14096cd57f8e2542f1f1caef7167

There is a plugin for OctoPrint that shows thumbnails which can be helpful to see difference between implementations:
https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails