Convert image uploads into webp files unless it's a gif (closes #11)
This commit is contained in:
parent
4a2c40397f
commit
73601c579c
4 changed files with 54 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue