Image-conversion is the library I've used the most, since you can target file-size || quality:
https://github.com/WangYuLue/image-conversion
// 8 Lines not including sarcastic comments obviously.
Image-conversion is the library I've used the most, since you can target file-size || quality:
https://github.com/WangYuLue/image-conversion