Image processing API. Resize & compress images from URL parameters only.
Find a file
2022-02-13 23:31:39 +05:30
docs refactored 2022-02-11 19:06:06 +05:30
.gitignore initial commit 2022-02-11 18:27:40 +05:30
index.html initial commit 2022-02-11 18:27:40 +05:30
index.js no images error handling fixed 2022-02-13 23:31:39 +05:30
package-lock.json initial commit 2022-02-11 18:27:40 +05:30
package.json initial commit 2022-02-11 18:27:40 +05:30
README.md IG link added 2022-02-11 20:48:57 +05:30

Image processing API

Resize & compress image from URL. You can use this API to create different sizes of images.

$ npm install

Starting App

$ node index.js

After starting navigate to http://localhost:5000

Query Parameter

?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

Screenshots

Original (1.5 MB)    |   Compressed (75 KB)

Original (3 MB)    |   Compressed (12 KB)


Follow Instagram

Thank You! ❣️