Socket
Book a DemoInstallSign in
Socket

github.com/Luzifer/gallery

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Luzifer/gallery

Source
Go
Version
v0.1.0
Version published
Created
Source

Go Report Card

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:
    $ 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/...)

FAQs

Package last updated on 28 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts