Skip to content

Instantly share code, notes, and snippets.

@pmarkun
Created January 31, 2019 20:14
Show Gist options
  • Select an option

  • Save pmarkun/d1128ed94712c718ccd7802366760f12 to your computer and use it in GitHub Desktop.

Select an option

Save pmarkun/d1128ed94712c718ccd7802366760f12 to your computer and use it in GitHub Desktop.
#!/bin/bash
API=API_KEY
for i in *.jpg; do
CMD="curl -H 'X-API-Key: ${API}' -F 'image_file=@$(pwd)/${i}' -f https://api.remove.bg/v1.0/removebg -o 'nobg_${i}.png'"
$CMD
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment