| Edgy
Penguins - "Linux for Non-Geeks" - Apps & Projects - jigl |
|
jigl: In Chapter 9 of Linux for
Non-Geeks, you worked with a Python script called pyWings. Now you'll
have the chance to work with a very cool and useful script written in
another programming language, Perl. The script, which I first saw
mentioned in the Linux Journal, is called jigl (Jason's Image Gallery).
The script creates an html photo gallery (an example of which you can
see directly below) from any folder in which you keep .jpg, .gif, or
.png images. Oh, and in case you are worried about such things, jigl is
easy to install and, despite despite being command driven, very, very,
very easy to use.
![]() Installing jigl:
Using Jigl: Although there is
no graphical interface for Jigl, it is surprisingly easy to use. Just
open a new Terminal window and cd over to the folder where you keep
your images. For example, if you keep your photos in the photos folder
I asked you to create in Chapter 5, then you would type cd
photos/ followed by a tap on the ENTER key. After that, all you
have to do is type in jigl.pl
and press ENTER. The magic will then begin.
The progress of this “magic” will be shown in the Terminal window (see following image). First, jigl will examine what options you've selected (more on that later), and then it will inspect the contents of the target folder (photos/xmas2003b/ in the example) to see if all is hunky dory. Once jigl has decided that it can deal with what you've thrown at it, it begins its work. First it gathers all the information that your digital camera stores with each photo it takes (Exif files). Then it creates thumbnail images for each of the images in the target folder and a folder in which to place them (thumbs). These are used for the gallery index page. Next, jigl goes on to create slides of each image (these are the images that will be actually be shown in the individual image pages) and a folder (slides) in which to place these as well.
Finally, jigl creates the html
pages: one slide page for each image, one info page for each image, and
one index page (gallery) for the whole shebang. These are placed in a
folder, called web, that jigl
creates specially for this purpose.
|
| Navigate |
Go on to Page 2 |
Apps & Projects Main |
| Linux for Non-Geeks Main | Edgy Penguins Main | Download Project as PDF* |