Create a script to change the pokemon images the way I want it
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.
This commit is contained in:
10
fix_images.sh
Executable file
10
fix_images.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user