ちょっとデバッグ

This commit is contained in:
tamaina 2023-02-06 14:50:12 +00:00
parent 8c06b05d05
commit c7e55c599f

View File

@ -115,6 +115,8 @@ async function proxyHandler(request: FastifyRequest<{ Params: { url: string; };
// Create temp file // Create temp file
const file = await downloadAndDetectTypeFromUrl(url); const file = await downloadAndDetectTypeFromUrl(url);
console.log(fs.statSync(file.path));
try { try {
const isConvertibleImage = isMimeImage(file.mime, 'sharp-convertible-image'); const isConvertibleImage = isMimeImage(file.mime, 'sharp-convertible-image');
const isAnimationConvertibleImage = isMimeImage(file.mime, 'sharp-animation-convertible-image'); const isAnimationConvertibleImage = isMimeImage(file.mime, 'sharp-animation-convertible-image');