Created
October 31, 2016 06:11
-
-
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
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
# 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