Resize & compress image from URL. You can use this API to create different sizes of images.
$ npm install
$ node index.js
After starting navigate to http://localhost:5000
?q={quality <=100 (Default: 60)}
?s={image size}
?w={width}
?h={height}
?fit={contain, cover, fill, outside, inside}
?bg={Background color for cropped area}
http://localhost:5000/public/{filename}?q=90&s=200&fit=inside
Original (1.5 MB) | Compressed (75 KB)
Original (3 MB) | Compressed (12 KB)