Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
Created September 3, 2018 01:31
Show Gist options
  • Save mscoutermarsh/1daa99ff2b8b64f4bd54fa47a8f73280 to your computer and use it in GitHub Desktop.
Save mscoutermarsh/1daa99ff2b8b64f4bd54fa47a8f73280 to your computer and use it in GitHub Desktop.
curl - convert html/css to an image
# Retrieve your user id and api key from the Dashboard https://htmlcsstoimage.com/dashboard
curl -X POST https://hcti.io/v1/image -u 'UserID:APIKey'
-d "html=<div class='ping'>Pong ✅</div>"
-d "css=.ping { padding: 20px; font-family: 'sans-serif'; }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment