1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
|
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH igal2 1 "May 2012" "Version 2.1" "Version 2.1"
.SH NAME
igal2 \- online Image GALlery generator
.SH SYNOPSIS
.B igal2
.I [-option1 -option2 ...]
.SH DESCRIPTION
.B igal2
is a quick and easy program for placing your images online with just
one command-line invocation. It generates a pretty good-looking set of W3-compliant
static HTML slides even with its default settings. To try it out just run
.B igal2
in a directory with
.IR jpg ", " gif " or " png
files and 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
.IR ".indextemplate.html" , " .slidetemplate.html " and " igal2.css"
files that
.B igal2
creates in your image directory.
.B igal2
also checks for the existence of a
.I "$HOME/.igal2"
directory where users can store their own templates, overriding
the site-wide
.IR "/usr/share/igal2" .
.BR 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
.B ImageMagick
package first if available, otherwise it falls back onto
.BR cjpeg "/" djpeg "/" pnmscale " for processing"
.IR jpg " files. The command "
.BR convert " of the " ImageMagick " package is required to process"
.IR gif " and " png
files and the
.BR identify " command enables " igal2
to include IMG HEIGHT and WIDTH tags in the HTML it generates.
If you would like to show the EXIF headers of the images
(option -e) Image::ExifTools is needed.
.SH OPTIONS
.TP
.B -a
Write image dimensions and sizes under each thumbnail on the index page.
This only works if the ImageMagick command
.BR identify " is present."
.TP
.B --ad
Like
.B -a
but write only the image dimensions.
.TP
.B --as
Like
.B -a
but write only the image sizes.
.TP
.BI --bigy " <n>"
Like
.B -y
but operates on the image slides, not the thumbnails. Scales image
slides to some medium height (e.g.
.IR 400 "),"
adjusting their width accordingly. Useful if your digital camera
spits out large images, like 1600x1200. The originals aren't affected,
but scaled copies of your images are stored with the
.I ".slide"
prefix 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
.B -f
between two consecutive runs when you've changed the value of
.BR "--bigy" .
.TP
.BI -c
First generate and then publish image slide captions. The first invocation of
.B igal2 -c
generates a
.I .captions
file that you may edit. The format of this file is very simple.
You should only have to enter your captions after the
.I ----
separator. You may rearrange the image order at this point and
also leave out some pictures by simply placing a pound
.RI ( # )
sign at the beginning of their respective lines. A second invocation of
.B igal2 -c
will read your
.I .captions
file, include your captions in the slides and rearrange them if necessary.
.TP
.BI -C
.RI Like " -c"
but preserve file names as captions when generating the
.I .captions
file (strips file name suffix).
.TP
.BI --con " options"
Command line options to pass on to
.BR convert " or " cjpeg
internally (see their man pages). This affects all thumbnails
and, if
.BI --bigy
is given, the medium-size slides too. You can set the
.I -quality
or go crazy with
.IR -negate ", " -noise ", etc."
(the last two only work with
.BR convert " if " ImageMagick " is installed."
.TP
.BI -d " <dir>"
Operate on image files in directory
.IR <dir> ,
which is also where the HTML and thumbnail files will be generated.
The default is the current directory.
.TP
.BI -e
Extract all EXIF tags from the images and display them on the image slides.
This option needs Image::ExifTool to be installed.
.TP
.BI -f
Force thumbnail regeneration. Also forces medium-slide regeneration if
.BI --bigy
is given. Otherwise
.B igal2
will not regenerate these files if they already exist, and you may
end up with stale copies. Definitely use
.BI -f
between two runs where you've changed the value of
.BR --bigy " or " --con "."
.TP
.BI -h
Display brief help, same as
.BR "--help" .
.TP
.BI --help
Display brief help, same as
.BR "-h" .
.TP
.BI -i " <file>"
Name of the main thumbnail index file. The default is
.IR index.html ,
as desirable for most web servers.
.TP
.BI -k
Use the image captions for the HTML slide titles.
The default behavior is to use the image names.
.TP
.BI -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 '.unmarked' extension. You may wish to delete those
afterwards. If this option is specified on two consecutive runs, igal2 will
detect the .unmarked versions and not run it through the watermarking
process again. Transparent GIF files work well for this option.
.TP
.BI -n
Use the image file names for the HTML slide files. Otherwise
the default behavior is to simply name your slides
.IR 1.html ", " 2.html ", "
and so on.
.TP
.BI -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.
.TP
.BI -p " <n>"
The cellpadding value of the thumbnail index tables.
The default is 3.
.TP
.BI -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 the
.IR igal2.css " file."
.TP
.B -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.
.TP
.BI -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
is 21 for the default
.I .tile.png
image used, but you should set it otherwise if you replace that
file with your own design.
.TP
.BI -u
Write image captions under each thumbnail on the index page.
If you have a
.I .captions
file (see options -c or -C) then the captions are read from there,
else the file names are used (but the file extension is stripped).
.TP
.BI --pagination " <n>"
Maximum number of images on one page.
If the given number of images is reached a new page
is started. Pagination number n should be a multiple
of parameter -w (default 5).
Default 0 - means no pagination at all.
.TP
.BI -w " <n>"
Set the thumbnail rows to be
.I <n>
images wide in the main index file. Default is 5.
.TP
.BI -x
Omit the image count from the captions.
.TP
.BI -y " <n>"
Scale all thumbnails to the same height of
.IR <n> " pixels."
The default is 75 pixels.
.TP
.BI --xy " <n>"
Scale thumbnails to
.I <n>
pixels along their longest dimension. This value is passed to
.B pnmscale
and only works properly for
.I jpg
images.
.TP
.BI --www
Make all
.B igal2
files world-readable.
.TP
.BI --dest " <dir>"
Per default igal2 places all igal2 helper 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.
.TP
.BI --AddSubdir
If igal2 finds subdirectories below your image directory it will add
links to this directories in the index.html file. 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.
.SH FILES
.I /usr/share/igal2/indextemplate2.html
.RS
The default index template file.
.RE
.I /usr/share/igal2/slidetemplate2.html
.RS
The default file used to generate slides.
.RE
.I /usr/share/igal2/igal2.css
.RS
The default style sheet template.
.RE
.I /usr/share/igal2/tile.png
.RS
The tiled image used for the "film reel" effect.
.RE
.I /usr/share/igal2/directoryline2.html
.RS
The default file used to generate directory links in index.html. If
this file is changed, the index.html has to be regenerated by running
igal2 again.
.RE
All five files are copied to your image directory as dotfiles the
first time you run
.BR igal2 .
Modify the local copies (but keep their names) if you need to further
alter the appearance of your slide show (also see
.BR "-t" ")."
.B igal2
also checks for the existence of a
.I "$HOME/.igal2"
directory where users can store their own templates, overriding
the site-wide
.IR "/usr/share/igal2" .
.SH EXAMPLES
Run
.B igal2
in a directory with
.IR jpg " or " gif
images to see what it does. Then
play with the options described above and use
.B -h
if you need a quick listing. Also see
.I http://igal.trexler.at/
for online examples.
.SH BUGS
There are always some. If you find any let me know.
I don't have much time to keep tweaking
.B igal2
but if any major bugs pop up I probably ought to fix them.
.SH AUTHOR
Eric Pop <epop@stanford.edu>, Wolfgang Trexler <wt-igal@trexler.at>
.SH "SEE ALSO"
.BR cjpeg ", " djpeg ", " pnmscale ", " identify ", " convert ". "
If they didn't come standard with your Linux distribution
you can find them at
.I rpmfind.net
(inside libjpeg and libgr-progs) and at
.IR "imagemagick.org" ,
respectively. Also try
.I www.ijg.org
and
.IR "netpbm.sourceforge.net" .
|