fix: restore working carousel send/render path (#297)

fix: restore working carousel send/render path (#297)
This commit is contained in:
Renato Alcara
2026-03-18 20:30:18 -03:00
committed by GitHub
parent 21462c26d5
commit d04a3e1af8
4 changed files with 1171 additions and 316 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ export const extractImageThumb = async (bufferOrFilePath: Readable | Buffer | st
height: dimensions.height
}
}
} else if ('jimp' in lib && (typeof lib.jimp?.Jimp === 'object' || typeof lib.jimp?.Jimp === 'function')) {
} else if ('jimp' in lib && typeof lib.jimp?.Jimp === 'function') {
const jimp = await (lib.jimp.Jimp as any).read(bufferOrFilePath)
const dimensions = {
width: jimp.width,