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:
parent
0346b29d91
commit
6d536a75f9
@ -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) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user