bashgal 1.0

bashgal is simple bash shell script that generates HTML thumbnail galleries using 'convert' and 'jhead'.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.3/5 13
DEVELOPED BY:
Shapor Naghibzadeh
HOMEPAGE:
shapor.com
CATEGORY:
ROOT \ System \ Shells
bashgal is simple bash shell script that generates HTML thumbnail 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.

Here are some key features of "bashgal":

fixed-height thumbnails which fill the browser efficiently
multiple image sizes which can be switched between by the user at any time
css spriting of thumbnails to produce fewer server round trips and overall smaller data tranfer (see http://shapor.com/bashgal)
locally previewable galleries by accessing images locally (e.g. file:///home/shapor/pics/blah/index.html)
preloading of previous and next images using JavaScript. (This is *not* required and the gallery functions just fine without JavaScript).
JPEG header EXIF data extraction
auto-rotation of veritcal 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/jpeg files.

Usage:

bashgal [path]

Without specifying a path, bashgal works in the current directory. Just load the [path]/index.html in a browser see the output. [path] should contain a bunch of jpeg files. It does not work recursively (yet).

History

bashgal started as an alias in my .bashrc because I got sick of typing a command which looked a lot like this every time I would upload a new set of photos to my server:

$ for i in *.jpg; do convert -scale x100 $i t-$i; echo "" >>index.html; done

Even this simple one-liner gives you a gallery which is better than the majority of the on-line photo hosts. One of my pet-peeves is a tiny window surrounded by white in my huge browser window, requiring me to scroll.

Requirements:

GraphicsMagick
jhead

Last updated on July 13th, 2008

#thumbnail galleries #gallery generator #generate HTML gallery #HTML #thumbnail #image #gallery

Add your review!

SUBMIT