]> mj.ucw.cz Git - gallery.git/blobdiff - gal2/FORMAT
Gallery2: Subcommands
[gallery.git] / gal2 / FORMAT
index b7a67fd0526e79bf840ffb0a68a51a3e645ac311..67118ec38e88f0bd81e8cf38e874b366f65bcc24 100644 (file)
@@ -14,8 +14,8 @@ One photo per line, tab-separated columns:
 Lines starting with "#" are ignored.
 
 
 Lines starting with "#" are ignored.
 
 
-Photo meta-data (gallery.meta in PhotoDir)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Photo meta-data (PhotoDir/gallery.meta or CacheDir/cache.meta)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Perl Storable containing a single hash.
 
 $meta->{photo}->{$identifier} is a hash of:
 Perl Storable containing a single hash.
 
 $meta->{photo}->{$identifier} is a hash of:
@@ -23,3 +23,12 @@ $meta->{photo}->{$identifier} is a hash of:
        xf              transformation applied
        w               width after scaling
        h               height after scaling
        xf              transformation applied
        w               width after scaling
        h               height after scaling
+       title           photo title
+
+The rest is present in cache.meta only:
+
+$meta->{sequence} is an array of photo IDs as they appear in the gallery.
+
+$meta->{thumb}->{$format}->{$identifier} is a hash of:
+       w               thumbnail width
+       h               thumbnail height