Switch limitInputPixels to use the options field of the sharp constructor

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2023-01-12 15:25:50 -08:00
parent 0346b29d91
commit 6d536a75f9

View File

@ -202,10 +202,9 @@ const processImageAsset = async (asset) => {
filename = asset.filename;
let src = picturesPath + path + filename,
image = sharp(src);
image = sharp(src, { limitInputPixels: false });
const metadata = await image
.limitInputPixels(false)
.metadata()
.catch(error => console.error(error) );