A Snapmaker 2.0 LightBurn Post-Processor to add thumbnails for the Snapmaker terminal.
This application can be used as Gcode post-processing script which adds in-place thumbnail data compatible to the Snapmaker terminal to the given file by modifying the G-Code comment sections.
- Store
sm2lbpp
somewhere on your system. - Run
sm2lbpp file.nc
.
Or, on Windows:
- Put
´scripts/register-sm2lbpp.bat
next tosm2lbpp.exe
and run it with administrator rights. - Right click on the
file.nc
and selectAdd Snapmaker Thumbnail
.
The following dependencies are given:
- C99
- nanosvg
- libpng
- zlib
Edit Makefile to match your target system configuration.
Hint: You may want to link with -mwindows
for Windows targets to suppress the console window to be shown.
Building the program:
make
Name | Meaning |
---|---|
*.mk | Target specific Makefile setup. |
mingw-unicode.h | Unicode enabled main() for MinGW targets. |
parser.* | Text parsers and parser helpers. |
target.h | Target specific functions and macros. |
tchar.* | Functions to simplify ASCII/Unicode support. |
sm2lbpp.* | Main application files. |
version.* | Program version information. |
See unlicense file for this code.
See also
nanosvg,
libpng and
zlib licenses for third party code.