Add a config option for setting the webp quality
This commit is contained in:
parent
73601c579c
commit
4a31ed76cd
2 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
export const config = CONFIG.ImageTagger = foundry.utils.deepSeal({
|
||||
WEBP_QUALITY: 0.5,
|
||||
WEBP_IGNORE: [`image/gif`],
|
||||
});
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ export async function convertToWebp(file) {
|
|||
resolve(webp);
|
||||
},
|
||||
`image/webp`,
|
||||
config.WEBP_QUALITY,
|
||||
);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue