Added tolerance option to uncaption, fixed nogif return type
This commit is contained in:
parent
a82ae115f8
commit
ec6fb7de37
4 changed files with 19 additions and 3 deletions
|
@ -155,6 +155,9 @@ class ImageConnection {
|
|||
case "image/webp":
|
||||
type = "webp";
|
||||
break;
|
||||
default:
|
||||
type = contentType;
|
||||
break;
|
||||
}
|
||||
return { buffer: Buffer.from(await req.arrayBuffer()), type };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue