Skip to content
Snippets Groups Projects
Commit 6b0db9b8 authored by syuilo's avatar syuilo
Browse files

✌️

parent bb8fd5b9
No related branches found
No related tags found
No related merge requests found
src/file/assets/not-an-image.png

4.6 KiB

......@@ -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> {
if (!/^image\/.*$/.test(type)) {
data = fs.readFileSync(`${__dirname}/assets/dummy.png`);
data = fs.readFileSync(`${__dirname}/assets/not-an-image.png`);
}
let g = gm(data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment