chore: save progress before layout changes

This commit is contained in:
Joan
2026-02-10 10:48:53 +01:00
parent 70dc35b4b2
commit bba5d1d9dd
48 changed files with 1535 additions and 690 deletions

View File

@@ -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"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 647 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 742 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 735 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 686 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 733 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 KiB