Image Resizer
This Repository will demo how to re-size the single image into multiple sizes.
Installation
npm install
Run Server
node app.js
Resizer API
Request
BaseUrl = localhost:1000/api/auto_image_resizer
Method : POST Form data
file (type file) = abc.jpg
sizes = 127x128,500x300,1000x900 (resize image into diffrent sizes)
Response
{
"success": true,
"message": "Image resize with mode 1 successfully done."
}
This will create folder name uploads and place original image into orginal folder and sub resize folders
Note : Test the api thorugh postman before using in project.