An experimental, python based post-processing script, to try and compensate for a (personally) much missed feature in PrusaSlicer.
The script reads the original thumbnail and the filament color the G-Code was sliced with. It then modifies the original thumbnail and replaces the orange'ish default color by the filament color. After that it rewrites the thumbnail data and appends it at the very end of the file.
For the script to properly work, you need to have Python 3.9 and Pillow 9.2.0 installed.
Download the script to your preferred location and add its path to PrusaSlicers post-processing input.
Example (Windows):
python3 C:\User\Desktop\PrusaSlicerThumbnailPostProcessor\pstnpp.py;
In case you want to remove the thumbnail background, append -nb
:
python3 C:\User\Desktop\PrusaSlicerThumbnailPostProcessor\pstnpp.py -nb;
- Image quality might vary depending on colors
- Only a single thumbnail resolution is supported, do not use multiple different resolutions
- Issues might occur when using custom bed shape models or textures with other colors than gray