chore: save progress before layout changes
@@ -39,14 +39,16 @@ for category in items locations npcs interactables characters placeholder static
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ "$category" == "items" || "$category" == "placeholder" || "$category" == "static_npcs" ]]; then
|
||||
if [[ "$category" == "items" || "$category" == "placeholder" || "$category" == "static_npcs" || "$category" == "npcs" ]]; then
|
||||
# Special processing for items: remove white background and resize
|
||||
echo " ➜ Converting item: $filename"
|
||||
tmp="/tmp/${base}_clean.png"
|
||||
if [[ "$category" == "static_npcs" ]]; then
|
||||
convert "$img" -fuzz 10% -transparent white -resize "$PORTRAIT_SIZE" "$tmp"
|
||||
else
|
||||
elif [[ "$category" == "items" || "$category" == "placeholder" ]]; then
|
||||
convert "$img" -fuzz 10% -transparent white -resize "$ITEM_SIZE" "$tmp"
|
||||
else
|
||||
convert "$img" -fuzz 10% -transparent white "$tmp"
|
||||
fi
|
||||
cwebp "$tmp" -q 85 -o "$out_file" >/dev/null
|
||||
rm "$tmp"
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 647 KiB |
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 742 KiB |
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 735 KiB |
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 686 KiB |
|
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 733 KiB |
BIN
images-source/static_npcs/mechanic_mike.png
Normal file
|
After Width: | Height: | Size: 920 KiB |