Skip to content
Image converter to .photon files used by the Anycubic's 3D UV Photon enabling it to produce UV PCB masks.
Swift Shell
Branch: master
Clone or download
Latest commit 57d8dd7 Jun 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/pcb2photon fixed last patch Jun 22, 2018
aux Updated Project file info to add new files May 23, 2018
.gitignore Added swift as language to travis Jun 21, 2018
.travis.yml Added external swiftenv script dependency Jun 22, 2018
Package.swift Merge commit 'd5ca149100fccdb3899ef91e459b8678367a842d' May 21, 2018
activityDiagram.pltuml Updated activity diagram and progress indicator May 18, 2018
result.png Re added README into the Project structure May 23, 2018
test.png Updated Project file info to add new files May 23, 2018
test2.png Updated Project file info to add new files May 23, 2018

Build Status

PCB to Photon


This is a tool to convert PCB images (still to be determined full scope) into the .photon file format. This is the file format used by the Anycubic's 3D UV Photon DLP 3D printer. The goal is to leverage the printer UV capabilites into PCB UV masking.


Photon files are currently monochromatic files with a 1440x2560 image size.


pcb2photon - Image to photon UV PCB mask converter


pcb2photon [-h] [-t threshold-value] [-a alignment-options] [-s image-scaling] [-p thickness] [-e exposure-time] filename [filename2 [...]] [-o output_filename [output_filename2 [...]]]


Command parameters:

filename is a supported image filename

  • -t [threshold-value] Threshold that defines the value cap for non-monocromatic images.
  • -a [alignment-options] Image alignment options within the .photon image size.
    • c Centering on screen;
    • ul Upper left corner;
    • ll Lower left corner;
    • ur Upper right corner;
    • lr Lower right corner;
    • cl Center left side;
    • cr Center right side;
    • cu Center upper side;
    • cl Center lower side.
  • -s [image-scaling] Defines the image stretching options.
    • o original scale;
    • v vertical fit;
    • h horizontal fit;
    • f stretch to fit;
    • n [value] scale by a factor of value .
  • -p [thickness] PCB thickness value in mm (needed to lift the print bed)
  • -e [exposure-time] Exposure time in seconds
  • -o [output_filename [output_filename2 [...]] Specify output file names, if no name are provided the input file name will be used.
  • -h Displays this information

Activity Diagram

Result of one of the included test images

Screen shot

You can’t perform that action at this time.