https://github.com/uiur/thumbtaro
A thumbnail server in Rust
https://github.com/uiur/thumbtaro
Last synced: 3 months ago
JSON representation
A thumbnail server in Rust
- Host: GitHub
- URL: https://github.com/uiur/thumbtaro
- Owner: uiur
- Created: 2022-01-27T11:38:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T11:49:46.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T17:15:42.894Z (5 months ago)
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# thumbtaro
A thumbnail server written in Rust. It supports Google Cloud Storage as storage backend.## API
Suppose food/banana.png exists under configured bucket.
### GET /orig/:path
Example: `/orig/food/banana.png`This endpoint returns an original image.
### GET /thumb/{width}x{height}/:path
Example: `/thumb/400x400/food/banana.png`This endpoint returns a thumbnail with specified width and height generated from an original image.
## Configuration
env:
```
# required
GOOGLE_APPLICATION_CREDENTIALS=~/google_credentials.json
THUMBTARO_BUCKET=bucket# optional
THUMBTARO_KEY_PREFIX=uploads/
```