Fix harmonize:images thumb rebuild and allow oversized museum scans.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-07-27 12:23:25 +03:00
co-authored by Cursor
parent 6656f91f25
commit 89e39d408a
8 changed files with 92 additions and 13 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ async function unlinkOldThumbRel(thumbRel, imageRel) {
}
async function aspectRatio(filePath) {
const meta = await sharp(filePath).metadata();
const meta = await sharp(filePath, { limitInputPixels: false }).metadata();
if (!meta.width || !meta.height) return null;
return meta.width / meta.height;
}