Skip to content

Commit

Permalink
話者ごとにicon.pngを作る (#69)
Browse files Browse the repository at this point in the history
* 話者ごとにicon.pngを作る

* magick

* 追加変更
  • Loading branch information
Hiroshiba authored May 19, 2024
1 parent a113b6a commit b59b147
Show file tree
Hide file tree
Showing 102 changed files with 4 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
6 changes: 4 additions & 2 deletions 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 を作成する
for i in ./character_info/*/icons/*.png; do
# .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}"
convert -resize 256x256 "${i/%/_large}" "$i"
magick convert -resize 256x256 "${i/%/_large}" "$i"
file "${i%/*}"/*
done
echo "--->done!"

0 comments on commit b59b147

Please sign in to comment.