Updates
Rolling release / release (push) Successful in 8m31s

This commit is contained in:
2026-09-13 22:24:14 -04:00
parent 1ca4224377
commit a097adf4eb
62 changed files with 2707 additions and 957 deletions
+3 -1
View File
@@ -26,6 +26,8 @@ export class FrameNormalizer {
});
});
const info = await stat(output);
return { ...metadata, path: output, bytes: info.size, maxLongEdge: this.maxLongEdge, mime: 'image/webp' };
const ext = path.extname(output).toLowerCase();
const mime = metadata.mime || (ext === '.png' ? 'image/png' : ext === '.jpg' || ext === '.jpeg' ? 'image/jpeg' : 'image/webp');
return { ...metadata, path: output, bytes: info.size, maxLongEdge: this.maxLongEdge, mime };
}
}