mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
✌️
This commit is contained in:
parent
5696f19a60
commit
2446dbc333
3
src/file/assets/not-an-image.png
Normal file
3
src/file/assets/not-an-image.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bc2bc9656bc98009e2e7b58959a4ce2a0ecbd3ec00519118e8b2a0eca0356d9c
|
||||
size 4711
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user