The script will mirror the pokemon images so that they will be looking to the right. And it will crop the image in order to remove all the whitespace around the pokemon.
11 lines
273 B
Bash
Executable File
11 lines
273 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for image in ./scrapped-data/*.png
|
|
do
|
|
# Mirror the image in the horizontal direction so
|
|
# that the pokemon will be looking to the right.
|
|
convert -flop "$image" "$image"
|
|
# Trim the useless empty space around the pokemon.
|
|
convert -trim "$image" "$image"
|
|
done
|