Convert image uploads into webp files unless it's a gif (closes #11)

This commit is contained in:
Oliver 2026-02-03 18:20:43 -07:00
parent 4a2c40397f
commit 73601c579c
4 changed files with 54 additions and 8 deletions

View file

@ -5,11 +5,9 @@ import { ArtistBrowser } from "./apps/ArtistBrowser.mjs";
import { ImageApp } from "./apps/ImageApp.mjs";
// Utils
import { getFileSize, hashFile, lastModifiedAt } from "./utils/fs.mjs";
import { convertToWebp, getFileSize, hashFile, lastModifiedAt } from "./utils/fs.mjs";
const { deepFreeze } = foundry.utils;
export const api = deepFreeze({
export const api = foundry.utils.deepFreeze({
Apps: {
ArtBrowser,
ArtistBrowser,
@ -18,6 +16,7 @@ export const api = deepFreeze({
},
utils: {
fs: {
convertToWebp,
hashFile,
lastModifiedAt,
getFileSize,