Open Bonemind opened 2 years ago
Are you on the latest version? It should be able to run without xvfb-run
now. Note that it may be printing the error message but successfully generating an image anyways.
Ah, you're right. It does generate the image successfully, exit code also seems to make sense. So the error seems to be mostly cosmetic. Thanks!
No problem. I will try to suppress the error message in the future.
For server can try fast and compact https://github.com/aslze/minirender
At this moment using minirender to create thumbnails for telegram bot.
./minirender -o -- -w 500 model.stl | convert - thumb.png
Currently, if you run
stl-thumb
on a fully headless server, so no X11/Wayland installed, only accessible through ssh, I get the following error:The app can be run by using
xvfb-run
:Which generates a thumbnail correctly. This is on Arch linux. Figured it might be of interest to anyone passing by trying to run this on a server for example.
Also, amazing tool, there are surprisingly few ways to quickly generate a png from an stl.