This commit is contained in:
syuilo 2017-11-07 21:23:09 +09:00
parent bb8fd5b90f
commit 6b0db9b877
2 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -54,7 +54,7 @@ async function raw(data: Buffer, type: string, download: boolean, res: express.R
async function thumbnail(data: Buffer, type: string, resize: number, res: express.Response): Promise<any> { async function thumbnail(data: Buffer, type: string, resize: number, res: express.Response): Promise<any> {
if (!/^image\/.*$/.test(type)) { if (!/^image\/.*$/.test(type)) {
data = fs.readFileSync(`${__dirname}/assets/dummy.png`); data = fs.readFileSync(`${__dirname}/assets/not-an-image.png`);
} }
let g = gm(data); let g = gm(data);