Standardize public images on WebP and add conversion tooling
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s

This commit is contained in:
Shinuwa 2026-10-23 12:12:02 +02:00
parent 75592d7d7a
commit ca39b76282
883 changed files with 503 additions and 90 deletions

View file

@ -15,7 +15,7 @@ export function aniimoLabel(translations, key) {
}
export function aniimoAsset(key) {
return `/static/img/aniimo/${key}.png`;
return `/static/img/aniimo/${key}.webp`;
}
function normalizeName(value) {

View file

@ -2,7 +2,7 @@
const MHWILDS_IMG_PATH = "/static/img/mhwilds";
export function assetPath(name) {
return encodeURI(`${MHWILDS_IMG_PATH}/${String(name || "").replace(/_/g, " ")}.png`);
return encodeURI(`${MHWILDS_IMG_PATH}/${String(name || "").replace(/_/g, " ")}.webp`);
}
export function normalizeText(value) {