zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.56k stars 205 forks source link

Resizing Large Image Destroys It #128

Closed grapevine2383 closed 5 years ago

grapevine2383 commented 7 years ago

Resizing a large image (like the one below) destroys it and saves as a black image. No error is produced just a black image.

images.setLimit(5000,50000); var image=images(IMAGE_ATTACHED); image.resize(512); image.save('resized.jpeg',{quality:50});

s