summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-01-10 15:45:11 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-01-13 16:18:11 -0300
commitac1d5f8867f4a91b0fe29a9e64556c3e1ab02d86 (patch)
tree2bd695d04e366e5fafc9e2167bf316a62ae344ec
parentc2193e770b9401fe49e7b703ac83a17491b083b5 (diff)
Add sample image download helper script.
-rwxr-xr-xsrc/util/lorempixel-downloader.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/util/lorempixel-downloader.sh b/src/util/lorempixel-downloader.sh
new file mode 100755
index 0000000..84b1a9a
--- /dev/null
+++ b/src/util/lorempixel-downloader.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# small script that allows you to download some random images from lorempixel
+
+download_images(){
+ # args:
+ # $1: initial number
+ # $2: final number
+ # $3: image width
+ # $4: image height
+ for n in $(seq -w $1 $2); do wget http://lorempixel.com/$3/$4/ -O $n.jpg; done
+}
+
+# download a set of images from 01..30
+
+# 5 images 640x480
+download_images 01 05 640 480
+
+# 5 images 1280x720
+download_images 05 10 1280 720
+
+# 5 images 1920x1080
+download_images 10 15 1920 1080