简体   繁体   中英

NodeJS - Jimp - process a .png image to reduce it's weight (quality)

I need to find the better way to process on a .png file to simply reduce it's quality. In fact, I don't want to resize or apply filters on the image, just reduce the weight of the file (from 6mb to 1mb if possible).

If anyone knows the trick to do it, I'd be very grateful

Run pngquant serverside. Just make sure you're doing all the regular validation and parameterisation to prevent injection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM