From ac1d5f8867f4a91b0fe29a9e64556c3e1ab02d86 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Fri, 10 Jan 2014 15:45:11 -0300 Subject: Add sample image download helper script. --- src/util/lorempixel-downloader.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 src/util/lorempixel-downloader.sh 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 -- cgit v1.2.3