Created
November 12, 2012 16:20
-
-
Save cburyta/4060266 to your computer and use it in GitHub Desktop.
Create numbered demo images
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
#!/bin/bash | |
# goal: use imagemagik to create a series of numbered images for | |
# use with bulk uploads testing. creates images in the | |
# folder defined in $DEST | |
# | |
# usage: ./createDemoImages.sh | |
# the folder to save them to | |
DEST='images' | |
# create directory | |
mkdir -p $DEST | |
for INDEX in {1..100} | |
do | |
NUMBER=`printf %03d $INDEX` | |
FILE="$NUMBER.png" | |
convert -fill blue \ | |
-background lightblue \ | |
-size 250x360 -pointsize 60 label:$NUMBER \ | |
$DEST/$FILE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment