DIOW: Digital Images On the Web A PERL Script Creating For You HTML Pages of Your Digital Images
What is DIOW ?
DIOW is a PERL script that creates for you html pages for publishing
your digital images: it creates small icons, and makes the
link to the original (big) image, in a friendly way. It
may also add a small annotation on each image, and can
process jpeg, gif and png files.
Examples of What DIOW Can Do
Here or here or here with my favorite colors and adapted to myself (name, URL, ..)
Here with defaults: colors and without name and email, ... exactly the output of diow without customization (see below)
if you have like me a Nikon Coolpix 950 (or other nice digital camera), DIOW and reduce_image (see
download section) will save your life ! Not only for Web publishing but also
for image selection and visualisation.
Requirements
You must have PERL 5.0 and the "convert" program. So on linux
everything is perfect (I use Red Hat v5 to 6.2 and Mandrake 7.1 to 8.0). On
other Unix systems it probably works fine (not tested; Oh yes Phil
tested it successfully on HP-UX). On windows or Macs, never tested,
but probably work if you have PERL and ImageMagik.
Specifications
Perl 5 script
scan a directory for *.jpg and/or *.jpeg and/or gif and/or png
(case insensitive) files
annotates each image with your favorite string if option
-annotate enabled (then creates new files with
'-ann' in order not to overwt\rite your
original images)
creates icons of all these files, by adding a '_small' on the filename
creates an html file with icons placed in a nice array:
the default output file is index.html, but you can change it using the -output option
the default title is 'My Digital Images', but you can change it using the -title option
the default presentation is 4 columns, but you can change it using the
-column option
the default icon size is 90, but you can change it using the -icon option
it puts the name of the image as a comment, so that you can edit after the HTML file to add your own comments (if you have time !)
and like all PERL scripts, you can change it and adapt it to you own needs !
How to Use DIOW ?
First, let diow be useable:
chmod 755 diow.pl
ln -s diow.pl diow
then customization: EDIT diow.pl, and put your name, email adress, URL, etc.. after the "Users's Data" comment, in the appropriate fields
Then use it:
cd the_directory_where_my_images_are
diow
diow creates a index.html file by default
Alternatives:
diow -title ' My Images From Versailles, Aug-2000' changes the title
diow -output versailles.html changes the output html file
diow -title ' My Images From Versailles, Aug-2000' -output versailles.html changes both
diow -title ' My Images From Versailles, Aug-2000' -output versailles.html
-column 6 -icon 30
diow -title ' My Images From Versailles, Aug-2000' -annotate
'Verailles, Aug-2001' changes the
title and put the small annotation on the
lower right corner of each image
What is Nice with DIOW
Easy to use
Useful for Web publishing
Useful for image selection and quick look
With reduce_image, you can without effort publish on line your biggest
images in a readable format (eg from 1600*1200 to 800*600 or less)
In one word, if you have like me a Nikon Coolpix 950 (or an other nice
digital camera), DIOW and reduce_image will save your life !
Download DIOW
Download DIOW PERL Script, a text file of less
than 200 lines only. Current version is 2.0 from 16-Oct-2003.
Download reduce_image, the companion PERL script of diow
if your images are too big to be on the web, then reduce_image resize them.
Acknowledgements
I acknowledge Matthew Kenworthy at Steward, UoA, for provinding its version which is the core of DIOW.
Thanks to Philippe Marty and Francine Le Peintre for their tests and comments.