Skip to content
Converter for SL1 to Photon files. Used to slice 3D-Models with Slic3r PE and print on Anycubic Photon
Python Batchfile
Branch: master
Clone or download
Latest commit c071b1c Jun 14, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
gui increased size of layer height spinbox May 4, 2019
.gitignore init Apr 19, 2019
LICENSE Initial commit Apr 19, 2019 Update Jun 14, 2019
SL1_to_Photon.bat init Apr 19, 2019 fix for unsorted inserts on linux; version bump May 12, 2019
requirements.txt added further build instructions and requirements.txt Apr 21, 2019 fix for unsorted inserts on linux; version bump May 12, 2019

SL1toPhoton is a tool for converting PrusaSlicer's (previously Slic3r PE) SL1 files to Photon files for the Anycubic Photon 3D-Printer. It is largely based on pyphotonfile, maintained by the same developer. The Photon S is currently not supported (see TODO). Anti-Aliasing with the new Firmware released in May 2019 is also not yet supported.

Friendly Reminder

Use at your own risk. Please verify that what you are doing will not break your printer. This project also relies currently on beta software, so please be aware of future breaking changes.

PrusaSlicer Setup

It is recommended to use PrusaSlicer 2.0.0-rc (previously Slic3rPE-1.42.0-beta2) or up, as this version added an option to disable anti-aliasing. Earlier versions will work, but the resulting Photon file will omit some pixels.


  • Add a new SL1 Printer
  • Go to: Printer Settings -> General -> Corrections -> Printer gamma correction and set this to 0. This will disable anti-aliasing. This is currently recommended, since the Photon does not have support for this.

I would also recommend to increase the support thickness as the Photon does not have a tilting mechanism, which will increase pealing forces. I tried to copy the default settings from the AnyCubic Photon Slicer and came up with these values, which work ok:

  • Print Settings -> Supports -> Support head front diameter -> 0.8
  • Print Settings -> Supports -> Support pillar diameter -> 1.2

Further testing need to be done. I will add further recommendations, once they pop up. Please leave your test results and I will try to update this page with more informations.



Just get the latest release from the releases page and enjoy.


Obviously clone or download the source first and change into the new folder.

git clone
cd SL1toPhoton

(Optional) I would recommend to create a new venv with and activate it:

python3 -m venv venv
source venv/bin/activate  # linux
venv\Scripts\activate     # win

For the full project:

pip install -r requirements.txt

If you don't want the GUI version with the PySide2 dependencys, just install

pip install pyphotonfile

If you want to build your own binarys:

pip install pyinstaller

# win
pyinstaller --add-binary venv\Lib\site-packages\pyphotonfile\newfile.photon;pyphotonfile --onefile --clean
pyinstaller --add-binary venv\Lib\site-packages\pyphotonfile\newfile.photon;pyphotonfile --onefile --noconsole --clean

# mac (currently not working)
pyinstaller --add-binary venv/lib/python3.7/site-packages/pyphotonfile/newfile.photon:pyphotonfile --onefile --clean
pyinstaller --add-binary venv/lib/python3.7/site-packages/pyphotonfile/newfile.photon:pyphotonfile --onefile --noconsole --clean

I am by no means fluent in pyinstaller, so if there is a way to remove the ugly binary import, please let me know.

Example Usage

The project currently hosts to seperate scripts: which is the CLI version and the GUI version with the catchy name The GUI is self-explanatory and the cli version looks like this:

python --help
usage: [-h] [-f] [-v] [-o OUTPUT] sl1_file

Convert an SL1 file to a Photon file.

positional arguments:
  sl1_file              SL1 file to convert.

optional arguments:
  -h, --help            show this help message and exit
  -f, --force           overwrite existing files.
  -v, --verbose
  -o OUTPUT, --output OUTPUT
                        photon file output path.


PrusaSlicer allows the export of STL's with supports as of PrusaSlicer 2.0.0-rc. You can export the prepared model and slice for the Photon with a Slicer which supports the Photon directly. This is a useful approach if you only care for the support generation.


  • I would like to add support for the newer AnyCubic Photon S. I don't plan to buy that printer, so I am in need of external help. If you do have information about the file format, let me know.
  • Remove binary dependency by creating a blank Photon file from scratch
You can’t perform that action at this time.