mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@ -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/')) {
|
||||
|
Reference in New Issue
Block a user