Fix harmonize:images thumb rebuild and allow oversized museum scans.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
6656f91f25
commit
89e39d408a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user