Skip to content

Instantly share code, notes, and snippets.

@cburyta
Created November 12, 2012 16:20
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 cburyta/4060266 to your computer and use it in GitHub Desktop.
Save cburyta/4060266 to your computer and use it in GitHub Desktop.
Create numbered demo images
#!/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