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

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila KhodjaefandCursor committed 2026-07-27 12:23:25 +03:00
1 parent 6656f91f25
commit 89e39d408a
8 files changed
+92 -13

No files matched your search

+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;
}