git clone https://github.com/Kruceo/Gato.git gato
cd gato
npm i
node index.mjs
Put your image files inside "public" folder.
Assuming that you uploaded a "image.png" file to public folder.
Check "http://localhost:8080/image.png"
You will receive the image like any other server.
But you can use search params like:
- resize
- blur
- rotate
- tint
- Tint - /image.png?tint=255,0,0
- Resize - /image.png?resize=200,1000
- Blur - /image.png?blur=10
- Rotate - /image.png?rotate=45
- Resize + Blur - /image.png?resize=100,100&blur=10
- Rotate + Blur + Tint - /image.png?rotate=120&blur=10&tint=0,120,255
All edited images will be hard cached. The server will not re-edit an image with search params that were edited in the past.