bashgal

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

bashgal Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Shapor Naghibzadeh
  • Publisher web site:
  • http://shapor.com/bashgal/

bashgal Tags


bashgal Description

bashgal is simple bash shell script that generates HTML thumbnail galleries using 'convert' and 'jhead'. 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 imagesThis 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 yourplain html/jpeg files.Usage:bashgal Without specifying a path, bashgal works in the current directory. Just load the /index.html in a browser see the output. should contain a bunch of jpeg files. It does not work recursively (yet).Historybashgal 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; doneEven 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


bashgal Related Software