https://github.com/kruceo/gato
picture-focused archiving server, includes features such as endpoint image editing and caching
https://github.com/kruceo/gato
cdn editing-image javascript photography photos server
Last synced: 10 months ago
JSON representation
picture-focused archiving server, includes features such as endpoint image editing and caching
- Host: GitHub
- URL: https://github.com/kruceo/gato
- Owner: Kruceo
- License: apache-2.0
- Created: 2023-05-25T19:05:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T11:45:17.000Z (over 2 years ago)
- Last Synced: 2025-08-04T07:40:05.506Z (11 months ago)
- Topics: cdn, editing-image, javascript, photography, photos, server
- Language: JavaScript
- Homepage:
- Size: 45.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gato
## How to install
### Clone the repository.
```bash
git clone https://github.com/Kruceo/Gato.git gato
```
### Install dependencies.
```bash
cd gato
```
```bash
npm i
```
## Run the application.
```bash
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.