You have to add a Post Processing Script to add "G-code thumbnails" in Cura. To add these scripts, click on
Extensions > Post Processing > Modify Gcode. Then click on
Add a script, chose
Create Thumbnailand fill in the size
32x32. Add again the same script with the size
Important is, that the size is square! If you don't use a square resolution, Cura will squeeze the thumbnail.
Install the OctoPrint-Connection plugin in Cura’s Marketplace. In Cura go to
Settings > Printer > Manage Printersand find the Button
Connect OctoPrint. Add your printer and type anything in the
In Cura, there is a straightforward solution to add custom G-codes. Pedro Lamas has developed an excellent script that you can use as post-processing to add everything necessary.