The Ansel API is a file viewer microservice that melds together the rendering power of Puppeteer with the versitility of the filepreview package.
curl -X POST -H "Content-Type: application/json" -d '{"url": "http://example.com"}' http://127.0.0.1:1901/api/url-preview -o example.jpg
curl -F "data=@/path/to/file" http://127.0.0.1:1901/api/file-preview -o example.jpg