Prettier stuff -.-
This commit is contained in:
parent
93bb891d79
commit
af6e15b9e5
@ -148,10 +148,12 @@ export async function ImageProxy(req: Request, res: Response) {
|
|||||||
} else if (Jimp && jimpSupported.has(contentType)) {
|
} else if (Jimp && jimpSupported.has(contentType)) {
|
||||||
resultBuffer = await Jimp.read(buffer).then((image) => {
|
resultBuffer = await Jimp.read(buffer).then((image) => {
|
||||||
contentType = image.getMIME();
|
contentType = image.getMIME();
|
||||||
return image
|
return (
|
||||||
.scaleToFit(width, height)
|
image
|
||||||
// @ts-expect-error Jimp is defined at this point
|
.scaleToFit(width, height)
|
||||||
.getBufferAsync(Jimp.AUTO);
|
// @ts-expect-error Jimp is defined at this point
|
||||||
|
.getBufferAsync(Jimp.AUTO)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user