Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.09 KB

README.md

File metadata and controls

68 lines (46 loc) · 1.09 KB

Gato

How to install

Clone the repository.

git clone https://github.com/Kruceo/Gato.git gato

Install dependencies.

cd gato
npm i

Run the application.

node index.mjs

How to use.

Image uploading.

Put your image files inside "public" folder.


Using search params.

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

Examples

  • Tint - /image.png?tint=255,0,0
  • Resize - /image.png?resize=200,1000
  • Blur - /image.png?blur=10
  • Rotate - /image.png?rotate=45

You can do a mix:

  • Resize + Blur - /image.png?resize=100,100&blur=10
  • Rotate + Blur + Tint - /image.png?rotate=120&blur=10&tint=0,120,255

** If want a test: **

Blurred image

Info

All edited images will be hard cached. The server will not re-edit an image with search params that were edited in the past.