Hadrien Delphin
Hadrien Delphin

Reputation: 620

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

Upvotes: 1

Views: 2029

Answers (1)

Joundill
Joundill

Reputation: 7533

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

Upvotes: 1

Related Questions