https://github.com/weaming/photobox
Photos storage service.
https://github.com/weaming/photobox
photo-gallary photo-storage
Last synced: about 1 year ago
JSON representation
Photos storage service.
- Host: GitHub
- URL: https://github.com/weaming/photobox
- Owner: weaming
- Created: 2018-05-01T22:47:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T11:41:53.000Z (about 6 years ago)
- Last Synced: 2025-04-08T21:41:32.839Z (about 1 year ago)
- Topics: photo-gallary, photo-storage
- Language: Go
- Homepage: https://photobox.drink.cafe
- Size: 1.62 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Photo Box

## Features
- API
- `/upload`
- `/thumbnail`
- Save origin image
- local disk
- AWS S3
- Generate thumbnail image with size you desire
- JSON response format
- Custom `index.html` homepage
- Redis cached upload result based on photo hash
## API
```
/upload
/thumbnail
Common query parameters:
width int "max thumbnail width"
height int "max thumbnail width"
quality int "thumbnail quality"
```
## [Setup S3 storage](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials)
* export `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_DEFAULT_REGION`
* export `PHOTOBOX_BUCKET`, default `photobox-develop`