Skip to content

Commit

Permalink
ここは戻さなくても良い
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Jul 31, 2024
1 parent 4be4aff commit 2837489
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ elif ! [ -d ./character_info ]; then
fi

# .png_large がなかったら、.png を .png_large にリネームしたあと 256x256 の .png を作成する
# .png が 256x256 だった場合は何もしない
for i in ./character_info/*/icons/*.png; do
if [ -f "${i/%/_large}" ]; then continue; fi
if [ "$(magick identify -format "%w %h" "$i")" = "256 256" ]; then continue; fi
echo "---"
mv "$i" "${i/%/_large}"
convert -resize 256x256 "${i/%/_large}" "$i"
magick convert -resize 256x256 "${i/%/_large}" "$i"
file "${i%/*}"/*
done
echo "--->done!"

0 comments on commit 2837489

Please sign in to comment.