An open API service indexing awesome lists of open source software.

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

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/
```