Skip to content
/ Gato Public

picture-focused archiving server, includes features such as endpoint image editing and caching

License

Notifications You must be signed in to change notification settings

Kruceo/Gato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://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.

About

picture-focused archiving server, includes features such as endpoint image editing and caching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published