fifonik / ElegooNeptuneThumbnailPrusaMod

PrusaSlicer/OrcaSlicer Post-Processing script that adds thumbnail into gcode files for Elegoo Neptune printers
GNU Affero General Public License v3.0
35 stars 4 forks source link

Yet another PrusaSlicer/OrcaSlicer thumbnail script for Elegoo Neptune

License: AGPL v3

This package converts the thumbnail that PrusaSlicer/OrcaSlicer bakes into the g-code file into the format that is read by the Neptune printers.

Modified image example:

Photos of Neptune 4 screen (left -- from PrusaSlicer, right -- from OrcaSlicer):

Example of modified image in Klipper UI (light theme):

Why another mod?

I was not happy with previous implementations so tried to make it better. But ended up re-writing it :-)

Notable changes:

Installation

How to configure PrusaSlicer:

  1. Printer Settings / General / G-code thumbnails -- put something like 300x300;
  2. Printer Settings / General / Format of G-code thumbnails select PNG or JPG:
  3. Print Settings / Output options / Post-processing scripts - specify path to executable: "C:\Path\Where\You\Put\thumbnail.exe";:

How to configure OrcaSlicer:

PrusaSlicer/OrcaSlicer should now run the thumbnail.exe when you export your g-code. In case of issues - check thumbnail.log.

If you do not specify any options, the first thumbnail from g-code file that is bigger than 100x100 will be used: decoded, resized, encoded into new format and injected back into g-code file.

If PrusaSlicer/OrcaSlicer is configured to add more than one thumbnail into g-code file, you can specify what thumbnail the script should use with option: --image_size WIDTHxHEIGHT

Running from the Python script

If you do not want to run the supplied executable (as myself), you can always run the Python script directly:

Building your own executable from the Python script

Compatibility

Works with these printers:

Use the --old_printer argument for these printers:

Tested with PrusaSlicer 2.6.1/2.7.0, OrcaSlicer 1.8.0/1.8.1/1.9.0/1.9.1 on Neptune 4.

Supported command line parameters

To add script's command line option in PrusaSlicer/OrcaSlicer, make sure you wrap them in double quotes: "C:\ElegooNeptuneThumbnailPrusaMod\thumbnail.exe" "--image_size" "300x300";

Author

fifonik

ko-fi

Contribution

This repository is based on:

Therefore it is released under the AGPL v3 license.