https://github.com/luzifer/gallery
Pure HTML/Javascript gallery viewer with an uploader written in Go
https://github.com/luzifer/gallery
gallery golang s3 serverless
Last synced: about 1 year ago
JSON representation
Pure HTML/Javascript gallery viewer with an uploader written in Go
- Host: GitHub
- URL: https://github.com/luzifer/gallery
- Owner: Luzifer
- License: apache-2.0
- Created: 2018-04-28T16:53:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T20:17:37.000Z (almost 8 years ago)
- Last Synced: 2025-02-10T15:40:42.432Z (about 1 year ago)
- Topics: gallery, golang, s3, serverless
- Language: Go
- Homepage:
- Size: 1.26 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/Luzifer/gallery)



# Luzifer / gallery
`gallery` is a pure HTML/Javascript gallery viewer with an uploader written in Go. It is intended to run inside S3/CloudFront or other static web hosting scenarios: The uploader resizes the original image to fit given image constraints and also creates a thumbnail image. Afterwards an `albums.json` file is written and uploaded with the frontend files and the images.
## Setup
- Create a S3 bucket
- Grant global read permission using a bucket policy
- Put the images for your album into a folder
- Upload them:
```console
$ gallery --storage s3://io-luzifer-photos --update-frontend --album-id=2012020601 --album-title 'Frozen river' ./frozen-river
28 / 28 [==============================] 100.00% 36s
```
### Storage engines
- S3 (`s3://bucket-name`)
Upload everything into the root of the bucket
- File (`file://path`)
Upload everything into the given folder (`file:///tmp/gallery` would "upload" to `/tmp/gallery/...`)