Update Jimp and add WASM plugins (#3784)

* Update jimp, use WASM format plugins

* Fix Jimp import path in thumbnails endpoint

* Fix size variable

* Add fetch patch to handle file URLs

* Fix JPEG thumbnailing

* Enhance fetch patch to validate file paths and support specific extensions

* Add default msBmp format

* Update jsconfig

* Update JPEG color space in thumbnail generation to YCbCr

* Install jimp plugins explicitly

* Refactor fetch patch utility functions
This commit is contained in:
Cohee
2025-04-01 21:55:21 +03:00
committed by GitHub
parent 70fe5b6e01
commit 058fef1146
10 changed files with 1063 additions and 326 deletions

View File

@ -1437,6 +1437,8 @@ export async function ensureImageFormatSupported(file) {
'image/tiff',
'image/gif',
'image/apng',
'image/webp',
'image/avif',
];
if (supportedTypes.includes(file.type) || !file.type.startsWith('image/')) {