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)) {
|
||||
resultBuffer = await Jimp.read(buffer).then((image) => {
|
||||
contentType = image.getMIME();
|
||||
return image
|
||||
return (
|
||||
image
|
||||
.scaleToFit(width, height)
|
||||
// @ts-expect-error Jimp is defined at this point
|
||||
.getBufferAsync(Jimp.AUTO);
|
||||
.getBufferAsync(Jimp.AUTO)
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user