# gallery.sh Bash Script to generate static web galleries. No server-side programs (i.e. PHP, MySQL) required. ## Overview `gallery.sh` is simple bash shell script which generates static html thumbnail (image, photo) galleries using the `convert` and `jhead` command-line utilities. It requires no special server-side script to run to view image galleries because everything is pre-rendered. It offers several features: * Responsive layout * Thumbnails which fill the browser efficiently * Download the original image file * Nice and simple Bootstrap CSS layout * Locally previewable galleries by accessing images locally (e.g. `file:///home/nils/pics/gallery/index.html`) * JPEG header EXIF data extraction * Auto-rotation of vertical images This combination of features makes a better user experience than pretty much all the big online photo hosts. All you need is a place to host your plain html and jpeg files. This can also be Amazon S3. ## Installation Download Bash script `gallery.sh`: ```shell curl -O "https://raw.githubusercontent.com/Cyclenerd/gallery_shell/master/gallery.sh" ``` ## Requirements * [ImageMagick](http://www.imagemagick.org/) for the `convert` utility. * [JHead](http://www.sentex.net/~mwandel/jhead/) for EXIF data extraction On a debian-based system (Ubuntu), just run: ```shell sudo apt install imagemagick jhead ``` Under macOS you can install it with... [MacPort](https://www.macports.org/): ```shell sudo port install imagemagick jhead ``` [Homebrew](https://brew.sh/): ```shell brew install imagemagick jhead ``` ## Usage ```text gallery.sh [-t