Created
January 31, 2019 22:06
-
-
Save barraponto/8e5a92506de3e03bea0141410b1844b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash - | |
set -o nounset # Treat unset variables as an error | |
for filename in *.jpg; do | |
curl -H "X-API-Key: ${API}" -F "image_file=@./${filename}" -f https://api.remove.bg/v1.0/removebg -o "nobg_${filename}.png"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment