0.3.2 • Published 5 years ago

picture-show v0.3.2

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Picture Show

A command line tool for generating a photo gallery from a folder of images.

Demo Gallery

Installation

npm install -g picture-show

Usage

Pass Picture Show a folder of images and tell it where to export the gallery to. Picture Show will resize the images to a set width (default is 1400px) and copy them into a new folder, named with a random string, along with the gallery HTML/CSS/JS. The original images will not be modified.

The image resizing library does not support HEIC so if exporting from Apple Photos make sure to export JPGs.

The script checks the Exif data for creation date (using DateTimeOriginal) and sorts by date.

$ picture-show [source images dir] [export dir]

Example: $ picture-show ~/Desktop/photoFolder ~/Desktop

Options

--show-date : add this flag to display the photo creation date in the gallery

-w [width in px] : sets the width of the photos. default is 1400

Example with options: $ picture-show ~/Desktop/photoFolder ~/Desktop -w 2000 --show-date

Credits

blueimp Gallery for the front end. Sharp for image resizing. jpeg-exif for reading exif data. minimist for parsing command line arguments. fs-extra for file manipulation.

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago