Files
pokemonsay/make_cows.sh
Lucas Possatti e02144e100 Create script to make the cow files
The script uses 'img2xterm' to generate cow files from each pokemon
image.
2015-06-10 23:50:39 -03:00

14 lines
282 B
Bash
Executable File

#!/bin/sh
#
# Transform image files pixel per pixel into cow files.
#
for fullfilename in ./scrapped-data/*.png
do
filename=$(basename "$fullfilename")
extension="${filename##*.}"
filename="${filename%.*}"
img2xterm --cow "$fullfilename" "cows/$filename.cow"
done