From c7e55c599f3bb233bb99e6325591dde55e8ef3a6 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 6 Feb 2023 14:50:12 +0000 Subject: [PATCH] =?UTF-8?q?=E3=81=A1=E3=82=87=E3=81=A3=E3=81=A8=E3=83=87?= =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 96d8c49..bce17e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -115,6 +115,8 @@ async function proxyHandler(request: FastifyRequest<{ Params: { url: string; }; // Create temp file const file = await downloadAndDetectTypeFromUrl(url); + console.log(fs.statSync(file.path)); + try { const isConvertibleImage = isMimeImage(file.mime, 'sharp-convertible-image'); const isAnimationConvertibleImage = isMimeImage(file.mime, 'sharp-animation-convertible-image');