]> mj.ucw.cz Git - gallery.git/blob - gal/FORMAT
Cleaned up gal-gen
[gallery.git] / gal / 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         w0, h0          width and height of original image
27         title           photo title
28         fmt             photo format (png/jpg; defaults to jpg)
29
30 The rest is present in cache.meta only:
31
32 $meta->{sequence} is an array of photo IDs as they appear in the gallery.
33
34 $meta->{thumb}->{$format}->{$identifier} is a hash of:
35         w               thumbnail width
36         h               thumbnail height