Skip to content

Instantly share code, notes, and snippets.

@sorrell
Created May 20, 2020 01:49
Show Gist options
  • Save sorrell/ea62dbde7968fd7959fa8cfddeb3a5b6 to your computer and use it in GitHub Desktop.
Save sorrell/ea62dbde7968fd7959fa8cfddeb3a5b6 to your computer and use it in GitHub Desktop.
Run this on cmd line to add color to a BW file
curl $(curl \
-F 'image=@/home/user/myfile.jpg' \
-H 'api-key:<your-api-key>' \
https://api.deepai.org/api/colorizer | jq --raw-output '.output_url') > output-`date +%Y%M%d%H%m%S`.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment