Skip to content

Instantly share code, notes, and snippets.

@jordanrobinson
Last active April 24, 2017 11:38
Show Gist options
  • Select an option

  • Save jordanrobinson/7991777486c478e31491f0a37ef26528 to your computer and use it in GitHub Desktop.

Select an option

Save jordanrobinson/7991777486c478e31491f0a37ef26528 to your computer and use it in GitHub Desktop.
Placeholder image generation
#!/bin/bash
while read S ; do
while read C ; do
echo $C $S
colourarray=($C)
sizearray=($S)
wget -O placeholder-${sizearray[0]}-${sizearray[1]}-${colourarray[2]}.png http://placehold.it/${sizearray[0]}x${sizearray[1]}/${colourarray[0]}/${colourarray[1]}
done <colours.txt
done <sizes.txt
121212 efefef black
efefef 121212 white
800 450
1220 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment