A simple image compression and resizing tool using the Sharp JavaScript library to perform operations such as compression, resizing, and on-the-fly processing of images.
example url:
http://localhost:3000/?url=https://raw.githubusercontent.com/riqalter/minima-wall/master/images/Electronic_Sample_96-calm-night.png&w=200&h=200&q=40
?url=
- url of image&w=
- width of image&h=
- height of image&q=
- quality of image (0-100)
-
make
.env
-
with content :
USER=anything
PASS=securepassword
you can deploy this project to: