Add a config option for setting the webp quality

This commit is contained in:
Oliver 2026-02-03 23:14:29 -07:00
parent 73601c579c
commit 4a31ed76cd
2 changed files with 2 additions and 0 deletions

View file

@ -1,3 +1,4 @@
export const config = CONFIG.ImageTagger = foundry.utils.deepSeal({
WEBP_QUALITY: 0.5,
WEBP_IGNORE: [`image/gif`],
});

View file

@ -60,6 +60,7 @@ export async function convertToWebp(file) {
resolve(webp);
},
`image/webp`,
config.WEBP_QUALITY,
);
});
};