Replace with [sharp](https://github.com/lovell/sharp) which in most cases requires no external deps and performs better on resizing various types of images to JPG.
Replace with sharp which in most cases requires no external deps and performs better on resizing various types of images to JPG.