npm i
npm start
or from docker image solehudin5699/img-resizer
docker run -it --name img-resizer -p 5000:5000 -d solehudin5699/img-resizer
-
Resize from uploaded image, visit :
Local --> http://localhost:5000/
My website: https://img-resizer.escloud.my.id/
-
Resize from image url :
-
Notes:
-
IMAGE-URL: image url that will we resize/format
-
width: width that will we return (optional, max 5000)
-
height: height that will we return (optional, max 5000)
-
quality: quality image that will we return (optional, max 100)
-
format: format image (optional, use jpeg or jpg, png, or webp)
-
If IMAGE-URL have query, add "&" at the end IMAGE-URL, then followed query width, height, or other that you want. Example:
IMAGE-URL=https://avatars.githubusercontent.com/u/65361695?v=4
If not, use "?" followed query you want, example
-