SlideShow Generator Script


[Examples | Program | ToDo]

mkSlideShow.pl: a little tool for generating a html-page for slideshow-applet and a html-page with thumbnails. 
If you have a lot of pitures resizing every picture to a thumbnail preview size (and producing landscape orientation from portrait with black border) is quite a lot of work. This tool may help you :-)

You can choose different thumnail size and even shrink the large pictures to reduce the webtraffic. You get two html-pages - one with a running java applet of the slideshow and another with all thumbnails together for an overview or just for non java-browsers. 
This script works on Linux but should be portable to other systems as well if you manage to install PerlMagick working with your ImageMagick.
 
> mkSlideShow.pl
 mkSlideShow.pl - 2000/07/31 - v1.2.0 - Andreas Hetey 
scan Image directory and generate 2 html-files
 o slidesh.html  with java-slideshow-applet
 o pics.html     html-image-file with pictures
downsize large pictures to (600 x 800) and thumbnails to (300 x 400)
rotate pictures before by hand !!
----------------------------------------------------
usage  : mkSlideShow.pl [options]
options:
    -f: option File (containing all other options mkSlideShow.pl -F for example)
    -a: size of Applet        [300x400]
    -m: read Max pics (testing)
    -I: no Image manipulation (reading, writing) - just create new html-pages
    -i: Image dir
    -s: Slide dir             [slides/]
    -t: Thumb dir             [thumb/]
    -p: Picture size          [600x800] 
    -o: Output file slideshow [slidesh.html]
    -O: Output file pictures  [pics.html]
    -v: verbose (show picts)

    -T: html Title            [SlideShow]
    -U: image URL             [http://rodin:3080/slideshow/slides/]
    -H: Homepage text         [FHI Theory Department]
    -L: homepage Link         [http://www.fhi-berlin.mpg.de/th/th.html]
    -E: author Email          [hetey@fhi-berlin.mpg.de]
    -l: Language (de,en)      [en]

example:
    mkSlideShow.pl -i bilder/ -a "200x300" -m 4 -v      (view every picture)
    mkSlideShow.pl -f ../../Imgs/sofe.opt -m 2          (read options from file)
    mkSlideShow.pl -i "imgs/" -H "Xmas Party 99" -L "http://rodin:3080/slideshow/xmas/"
    mkSlideShow.pl -i "imgs/" -I                        (just make html-pages)

you may want to save all the options into one option-file and then call the script like this
 
> mkSlideShow.pl -f ../../Imgs/sofe-03.opt
# example contents of a option file:

[dir_imgs]           /home/hetey/slideshow/Imgs/SoFe-03_Abend/
[dir_slide]          slides/
[dir_thumb]          thumb/
[file_pics]          pics.html
[file_slides]        slidesh.html
[homepage_text]      FHI
[homepage_url]       http://www.fhi-berlin.mpg.de/th/th.html
[html_title]         FHI SommerFest 2000 - Evening
[image_url]          http://www.fhi-berlin.mpg.de/th/Photoalbum/slideshow/SoFe2000c/slides/
[language]           en
[pic_long_side]      3000
[pic_short_side]     2000
[thumb_long_side]    400
[thumb_short_side]   300
[note]               pictures taken by Andreas Hetey and Matthias Scheffler<p>

Output Examples  [Top]

see Photoalbum of FHI Theory department under Slideshows ...
 

Program  [Top]

Download

rpm-packages work on Linux

Install

more Information



Andreas Hetey - hetey@fhi-berlin.mpg.de - v0.1 - 2000/12/07