]> mj.ucw.cz Git - gallery.git/blob - gal2/FORMAT
Gallery2: First attempts at web version
[gallery.git] / gal2 / FORMAT
1 List of photos (gallery.list)
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 One photo per line, tab-separated columns:
4
5         File name (relative to OrigDir in config)
6         Identifier (16 hex digits)
7         Orientation: one of "l", "r", "d", "."
8         Transformation -- sequence of:
9                 n       normalize contrast
10                 s       sharpen
11                 h       equalize histogram
12         Title (UTF-8 string)
13
14 Lines starting with "#" are ignored.
15
16
17 Photo meta-data (PhotoDir/gallery.meta or CacheDir/cache.meta)
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 Perl Storable containing a single hash.
20
21 $meta->{photo}->{$identifier} is a hash of:
22         o               orientation
23         xf              transformation applied
24         w               width after scaling
25         h               height after scaling
26         title           photo title
27
28 $meta->{sequence} is an array of photo IDs as they appear in the gallery.
29
30 [CacheDir only]
31 $meta->{thumb}->{$format}->{$identifier} is a hash of:
32         w               thumbnail width
33         h               thumbnail height