Album
view release on metacpan or search on metacpan
lib/Album/Tutorial.pm view on Meta::CPAN
Number of entries = 9 (2 added)
.......[7]
im030.jpg: copy medium thumbnail OK
im031.jpg: copy medium thumbnail OK
Creating pages for 9 images
(Needed to write 18 image pages)
Creating pages for 1 index
(Needed to write 1 index page)
Two new images were found on the CD-ROM, copied to the 'large'
directory, and processed as usual. 'info.dat' has been updated with
the new entries. Note that images found on the CD-ROM that already
exist in 'large' (i.e., have the same name) are skipped.
=head2 Using EXIF information
When importing images from a digital camera, 'album' can use the EXIF
information that is present in these files:
=over 4
=item *
it will use the time stamp rename it to YYYYMMDDhhmmssSSSS (where SSSS
is a sequence number);
=item *
it will set the modification time of the file to the time stamp;
=item *
while copying the image, it will be rotated if necessary,
according to the 'orientation' property in the EXIF information.
=back
To enable EXIF processing, add the B<--exif> command line option, or
specify the import directory with B<--dcim> instead of B<--import>:
$ ls -l /mnt/camera/dcim/101msdcf
-rwxr-xr-x 1 jv jv 2347808 Jun 25 12:08 /mnt/camera/dcim/101msdcf/dsc00052.jpg
-rwxr-xr-x 1 jv jv 1327475 Jun 25 12:05 /mnt/camera/dcim/101msdcf/dsc00053.jpg
$ album -v --dcim /mnt/camera/dcim/101msdcf --update
Updating info.dat
Number of entries = 11 (2 added)
.........[ 9]
200405171843310052.jpg: link medium thumbnail OK
200405171845030053.jpg: copy rotate medium thumbnail OK
Creating pages for 11 images
(Needed to write 22 image pages)
Creating pages for 1 index
(Needed to write 1 index page)
The file 'dsc00052.jpg' has now been imported as
'200405171843310052.jpg'. 'album' tries to link to the image, if that
is not possible, the image will be coped. File 'dsc00053.jpg' must be
rotated, so it will always be a copy.
If you hover the mouse over the file name in the index page, or over
the title on the image pages, a pop-up will show a selection of
information from the EXIF data.
=head2 Embedding other albums
In the file 'info.dat' you can also enter names of HTML documents to
refer to arbitrary other information you want to include in your
album. You can use this to embed (more precisely: refer to) other
albums. For example:
20040910/index.html Pictures of an exhibition
This will store in the album a reference to another album. If at the
given location a file 'icon.jpg' exists, this will be used in the
album as thumbnail image. To generate a sample icon for an album to be
included, run the album program with command line option --icon.
The reference will only be present on the index pages. When following
the 'previous' and 'next' links of image pages, these references will
be skipped.
Note that when you click on an external reference thumbnail, a new
browser window will be opened to show the referenced information.
=head2 Journal mode
I<Warning: Journal mode is still under development and may change in
future versions.>
Journal mode is enabled with the control B<!journal> in C<info.dat>.
When journal mode is enabled, the data from C<info.dat> is considered
to be a series of paragraphs. Paragraphs are separated using one or
more empty lines.
The first line of a paragraph may contain image info, preceeded by an
asterisk and whitespace. For example:
!journal
!tag 2004/06/01
A bright, shiny day.
* im023.jpg Sunrise
This morning, we were surprised by a fantastic sunrise like
we have never seen before.
* im024.jpg Overview
This picture shows an overview of the area.
This way it is possible to attach extended pieces of text to a images.
An additional series of pages is generated, the journal pages. Each
journal page contains the extended text and thumbnail images of all
entries that belong to a single tag. The idea is that the tags are
dates, and each journal page contains the text and images of a single
day.
If the extended text starts with C<< < >> it is assumed to be HTML and
included literally.
( run in 3.684 seconds using v1.01-cache-2.11-cpan-e623d60df62 )