Create script to make the cow files
The script uses 'img2xterm' to generate cow files from each pokemon image.
This commit is contained in:
13
make_cows.sh
Executable file
13
make_cows.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user