Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/songgao/gallery

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/songgao/gallery

  • v0.0.0-20130908211842-4424453e7def
  • Source
  • Go
  • Socket score

Version published
Created
Source

What does it do?

gallery exposes a local gallery as a web gallery. It uses lightbox2(http://lokeshdhakar.com/projects/lightbox2/) to present images.

All images (*.jpg, *.jpeg, *.png, *.gif) in the folder are scaned recursively and indexed. Images are indexed by SHA-1 of [absolute path of the image file] and [modification time of the image file]. gallery watches the image folder and re-indexes when the modification time of the folder changes

There are three sizes for each image: Thumbnail (width = 240px), Large (width = 1024), and Original. Thumbnail and Large are cached in groupcache(https://github.com/golang/groupcache) while Original is always loaded from hard drive. 32 MB and 128 MB are allocated for Thumbnails and Larges respectively.

What does it look like?

screenshots

Installation

go get -u github.com/songgao/gallery

Usage

Usage of gallery:
  -image="": path to the folder that has images (supported formats: .jpg, .png, .gif)
  -laddr="localhost:7428": http listening address
gallery -image=/path/to/image/folder -laddr=localhost:7428

FAQs

Package last updated on 08 Sep 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc