Papa’s Best STL-to-PNG converter |
stltopng creates PNG images from STL files. It is built on the fastest STL viewer available, so it can generate hundreds of snapshots per minute when used from the command line.
Feel free to donate if you like my program!
for Windows 7 and later
for use with your own projects
Drag and drop any STL file on stltopng.exe. This will generate a picture named stl.png in the same folder.
To generate a picture of a file in ~1000×1000 pixels from the command line:
stltopng /res 1000 /png "X:\path\to\image.png" "Y:\path\to\design.stl"
A Batch script to generate thumbnails in the size 256×256 pixels for all STL files in the current directory:
FOR /r %%i IN (*.stl) DO ( stltopng /res 256 /png "%%i.png" "%%i" )
For automation, mostly. Use it whenever you need to save pictures of STL files. For example:
Supported operating systems are Windows 7 and later.
stltopng makes use of my STL Thumbnail generator, but stores the image in a file instead of passing it to Windows.
It runs from anywhere and needs no admin rights.
Usage: stltopng [options] <stl path>
/png <out path> – path of PNG to write; defaults to stl.png./res <pixels> – approximate sidelength of the PNG; defaults to 1024.Returns zero if successful.
Status messages are printed to stdout; errors are printed to stderr.
You can adjust the colors and the viewing angle via my STL thumbnail settings in the registry. I realize that’s cumbersome and it would be so much easier to pass these via command line, but an updated version is already in the works!
Encountered a problem? Have a suggestion? Let me know: info@papas-best.com