Last active
April 24, 2017 11:38
-
-
Save jordanrobinson/7991777486c478e31491f0a37ef26528 to your computer and use it in GitHub Desktop.
Placeholder image generation
This file contains hidden or 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 | |
| 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 |
This file contains hidden or 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
| 121212 efefef black | |
| efefef 121212 white |
This file contains hidden or 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
| 800 450 | |
| 1220 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment