Skip to content

Commit

Permalink
追加変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed May 18, 2024
1 parent 483f0a1 commit ae9e39b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2 changes: 2 additions & 0 deletions scripts/resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ elif ! [ -d ./character_info ]; then
fi

# .png_large がなかったら、.png を .png_large にリネームしたあと 256x256 の .png を作成する
# .png が 256x256 だった場合は何もしない
for i in ./character_info/*/icon.png ./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}"
magick convert -resize 256x256 "${i/%/_large}" "$i"
Expand Down

0 comments on commit ae9e39b

Please sign in to comment.