igal2(1)
β¨ NAME β¨
igal2 β the online Image GALlery generator π (yes bestie, it's igal2(1), the one and only, and I'm about to make you obsessed with it)
πΈ SYNOPSIS πΈ
igal2 [-option1 -option2 ...]
π¦ DESCRIPTION π¦
okay so igal2 is literally the quickest, easiest way to put your images online with, like, one command-line invocation. one. periodt. π
It generates a genuinely pretty-good-looking set of W3-compliant static HTML slides even with its default settings. no cap. So to try it out, just run igal2 in a directory with jpg, gif or png files and go check the output in a web browser. β¨
You can adjust the appearance of the image gallery with the many options listed below, or β if you know a bit of HTML β by modifying the .indextemplate.html, .slidetemplate.html and igal2.css files that igal2 creates in your image directory. π
igal2 also checks for the existence of a $HOME/.igal2 directory where users can store their own templates, overriding the site-wide /usr/share/igal2.
igal2 needs Perl to run and it also relies on a few other programs that come standard with most Linux distributions. It relies on the ImageMagick package first if available, otherwise it falls back onto cjpeg/djpeg/pnmscale for processing jpg files. The command convert of the ImageMagick package is required to process gif and png files, and the identify command enables igal2 to include IMG HEIGHT and WIDTH tags in the HTML it generates. And if you would like to show the EXIF headers of the images (option -e) then Image::ExifTools is needed. π«Ά
π OPTIONS π
-aβ Write image dimensions and sizes under each thumbnail on the index page. This only works if the ImageMagick commandidentifyis present. π--adβ Like-abut write only the image dimensions.--asβ Like-abut write only the image sizes.--bigy <n>β Like-ybut operates on the image slides, not the thumbnails. Scales image slides to some medium height (e.g.400), adjusting their width accordingly. Useful if your digital camera spits out large images, like1600x1200. The originals aren't affected, but scaled copies of your images are stored with the.slideprefix and thumbnails link to these copies. Clicking on the scaled copies in the HTML slides lets users see the full unscaled images. You must use-fbetween two consecutive runs when you've changed the value of--bigy. β οΈ-cβ First generate and then publish image slide captions. The first invocation ofigal2 -cgenerates a.captionsfile that you may edit. The format of this file is very simple. You should only have to enter your captions after the----separator. You may rearrange the image order at this point and also leave out some pictures by simply placing a pound (#) sign at the beginning of their respective lines. A second invocation ofigal2 -cwill read your.captionsfile, include your captions in the slides and rearrange them if necessary. π-Cβ Like-cbut preserve file names as captions when generating the.captionsfile (strips file name suffix).--con optionsβ Command line options to pass on toconvertorcjpeginternally (see their man pages). This affects all thumbnails and, if--bigyis given, the medium-size slides too. You can set the-qualityor go crazy with-negate,-noise, etc. (the last two only work withconvertif ImageMagick is installed. π₯-d <dir>β Operate on image files in directory<dir>, which is also where the HTML and thumbnail files will be generated. The default is the current directory.-eβ Extract all EXIF tags from the images and display them on the image slides. This option needsImage::ExifToolto be installed.-fβ Force thumbnail regeneration. Also forces medium-slide regeneration if--bigyis given. Otherwiseigal2will not regenerate these files if they already exist, and you may end up with stale copies. Definitely use-fbetween two runs where you've changed the value of--bigyor--con. π-hβ Display brief help, same as--help.--helpβ Display brief help, same as-h.-i <file>β Name of the main thumbnail index file. The default isindex.html, as desirable for most web servers.-kβ Use the image captions for the HTML slide titles. The default behavior is to use the image names.-m <watermarkfile>β Add a watermark to each file. The parameter specified is another image file which will be overlayed in the top left of the image with some transparency applied. This option requires ImageMagick. The original images will be left in place with a.unmarkedextension. You may wish to delete those afterwards. If this option is specified on two consecutive runs,igal2will detect the.unmarkedversions and not run it through the watermarking process again. Transparent GIF files work well for this option. π-nβ Use the image file names for the HTML slide files. Otherwise the default behavior is to simply name your slides1.html,2.html, and so on.-o <URL>β Use this option if you are hosting the index files in a different location (e.g. a different server) from the back end images/slides. This option adds the specified prefix into the URLs of the slides. If you use this option, remember that until you move the files into the resulting location, the gallery won't work properly. π«-p <n>β The cellpadding value of the thumbnail index tables. The default is3.-rβ Omit the film reel effect altogether. For a simpler look you can also set the thumbnail background to be the same as the main index page background with the tile background-color option in theigal2.cssfile.-sβ For the simplest setup, omit all HTML slides. Clicking the thumbnails on the main page will just take users to the plain image files.-t <n>β Height (in pixels) of the tiled image used to simulate the top and bottom "film reel" effect on the thumbnail index page. This is21for the default.tile.pngimage used, but you should set it otherwise if you replace that file with your own design.-uβ Write image captions under each thumbnail on the index page. If you have a.captionsfile (see options-cor-C) then the captions are read from there, else the file names are used (but the file extension is stripped).--pagination <n>β Maximum number of images on one page. If the given number of images is reached a new page is started. Pagination numbernshould be a multiple of parameter-w(default5). Default0- means no pagination at all.-w <n>β Set the thumbnail rows to be<n>images wide in the main index file. Default is5.-xβ Omit the image count from the captions.-y <n>β Scale all thumbnails to the same height of<n>pixels. The default is75pixels.--xy <n>β Scale thumbnails to<n>pixels along their longest dimension. This value is passed topnmscaleand only works properly forjpgimages.--wwwβ Make alligal2files world-readable.--dest <dir>β Per defaultigal2places alligal2helper files (thumbnails, slidefiles, CSS, etc) in the directory where the image files reside. With this option these files can be placed in a subdirectory of the image directory.--AddSubdirβ Ifigal2finds subdirectories below your image directory it will add links to this directories in theindex.htmlfile. This is useful if you've a tree of image directories.
Example:
!
+ Vacation_Vienna (Image Directory)
!
+ .igal2-stuff (igal2 helper files)
+ Videos
+ Documents_of_interest
igal2 -d Vacation_Vienna --dest .igal2-stuff --AddSubdir
will put all helper files in .igal2-stuff, and generate links to the subdirectories "Videos" and "Documents_of_interest" in the index.html file.
Note: igal2 will not work recursively, it just adds HREF links to the found directories. π
--igaldirβ Use custom templates from this directory ($HOME/.igal2)
π FILES π
/usr/share/igal2/indextemplate2.htmlβ The default index template file./usr/share/igal2/slidetemplate2.htmlβ The default file used to generate slides./usr/share/igal2/igal2/igal2.cssβ The default style sheet template./usr/share/igal2/igal2/tile.pngβ The tiled image used for the "film reel" effect./usr/share/igal2/directoryline2.htmlβ The default file used to generate directory links inindex.html. If this file is changed, theindex.htmlhas to be regenerated by runningigal2again.
All five files are copied to your image directory as dotfiles the first time you run igal2. Modify the local copies (but keep their names) if you need to further alter the appearance of your slide show (also see -t). igal2 also checks for the existence of a $HOME/.igal2 directory where users can store their own templates, overriding the site-wide /usr/share/igal2/igal2. π
π EXAMPLES π
Run igal2 in a directory with jpg or gif images to see what it does. Then play with the options described above and use -h if you need a quick listing. Also see http://igal.trexler.at/ for online examples. β¨
π BUGS π
There are always some. If you find any let me know. I don't have much time to keep tweaking igal2 but if any major bugs pop up I probably ought to fix them. π
π AUTHORS π
- Eric Pop
<epop@stanford.edu> - Wolfgang Trexler
<wt-igal@trexler.at> - Johnny A. Solbu
<johnny@solbu.net>
π₯ SEE ALSO π₯
cjpeg, djpeg, pnmscale, identify, convert. If they didn't come standard with your Linux distribution you can find them at rpmfind.net (inside libjpeg and libgr-progs) and at imagemagick.org, respectively. Also try www.ijg.org and netbm.sourceforge.net.
and that's the whole page bestie π«Ά this was Version 3.2, dated June 2024, from the igal2(1) manual β go make a gallery, you're gonna slay π
β¨π
π¦ where this page comes from
- ubuntu resolute: igal2 3.2-1
- ubuntu stonking: igal2 3.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms