Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
Created October 31, 2016 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BuonOmo/89450b8d3958f74cfebd5098788f57a6 to your computer and use it in GitHub Desktop.
Save BuonOmo/89450b8d3958f74cfebd5098788f57a6 to your computer and use it in GitHub Desktop.
Take a bunch of images from unsplash.it/ and copy it in files
# List of image ratio, every image should be <width>-<height>
list=(100-100 50-100 100-50 60-200 800-600)
# Options for unsplash, & separated (random, blur..)
opts="random&blur"
for i in $list;do ~/Images/unsplash
l=($(echo $i | tr '-' ' '))
curl --output $i.jpg "https://unsplash.it/$l[1]/$l[2]?$opts"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment