0.0.1 • Published 5 years ago

nerdgram v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

nerdgram

INCOMPLETE PROTOTYPE

(documentation may or may not reflect working functionality)

nerdgram is a library for creating self hosted image galleries (currently pre-ALPHA / WIP prototype)

It is planned to include a number of helpful image manipulation functions that can be used pragmatically (within your own application) as well as stand-alone terminal commands that can be used to quickly build / customize / deploy a gallery.

The goal is to get an Instagram-like gallery up really fast (ie- git clone, npm install, cd to a folder of photos, run npm start and the thing is live)

Installation / usage

npm install -g nerdgram
cd my-photos
nerdgram serve
> nerdgram gallery now live at:
> http://localhost:8500/my-photos
Alternate installation (no global required)
git clone http://github.com/drschwabe/nerdgram
npm install
npm run serve

In the case of a non-global install, instead of prefixing commands with 'nerdgram' use npm run as shown above.

API

nerdgram thumb Creates a thumbnail of each image in the current directory (each thumb is suffixed with _thumb dot extension ie myphoto_thumb.jpg). Thumbnail output defaults to best resolution possible staying under 400 KB at JPG 80 quality.

Pass in params to customize the thumbnail output. Or specify a single param integare to indicate maximum allowable size in KB; larger the size the higher resolution this command will try to achieve for your image.