Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

How to generate a gcode preview

Miguel Risco-Castillo edited this page Dec 21, 2021 · 31 revisions

This firmware allows to show a preview of g-codes that have a thumbnail automatically embedded using a script in the slicer. Warning! if you send the g-code file to the µSD using Octoprint, the thumbnail and any other information additional to pure g-code could be stripped.

CHEP video review of the g-code preview feature: https://youtu.be/Q-OA9_t9bGc

CHEP video review of the g-code preview

For be able to generate g-code with thumbnail it is necessary to install Python 3 and a script/plugin in your slicer

First download the correct script/plugin:

Use right-click and select "save link as..."

Install the script/plugin

For Prusa/Super Slicer

Save the downloaded script in a known location

Prusa 2

Write the location of your Python installation and script on the slicer Print settings / Output options:

Prusa 3

Requires expert mode to be enabled in the upper right corner of the program to see the setting. In printer settings / General write 230x180 for the G-code thumbnails. The firmware only recognizes thumbnails with a size of 230x180 pixel

Prusa 1

For Cura

Go to the Help menu on Cura and select Show Configuration Folder in Windows you will get an explorer opened in the path inside of your user profile folder: C:\Users\NameOfUser\AppData\Roaming\cura\..., Close Cura and save the downloaded script in the scripts folder:

Cura 1

Open Cura, go to menu Extensions > Post Processing > Modify G-Code and press Add a script, then select the script from the post processing plugin popup

Cura 2

The firmware only recognizes thumbnails with a size of 230x180 pixel, Pay attention to the name of the selected script Create JPEG Thumbnail

Cura 3

Octoprint

If you want to see the generated thumbnail in Octoprint, you must to install the plugin Slicer Thumbnails

Slicer Thumbnails

Clone this wiki locally