Skip to content

scotmatson/ansel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansel

The Ansel API is a file viewer microservice that melds together the rendering power of Puppeteer with the versitility of the filepreview package.

Usage

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