summaryrefslogtreecommitdiffstats
path: root/options.i
diff options
context:
space:
mode:
authorJulien Jorge <julien.jorge@stuff-o-matic.com>2013-01-10 16:31:25 (EST)
committer Julien Jorge <julien.jorge@stuff-o-matic.com>2013-01-10 16:31:25 (EST)
commitc29082d538224219586ef453f1291151a01c15bb (patch)
tree562684ed5430cdf5dad195f25707a6b3f4a4e716 /options.i
parent30aef48ae5ee252dd42f206c4b5b9e770694417c (diff)
downloadxcftools-c29082d538224219586ef453f1291151a01c15bb.zip
xcftools-c29082d538224219586ef453f1291151a01c15bb.tar.gz
xcftools-c29082d538224219586ef453f1291151a01c15bb.tar.bz2
Add layer group support introduced in Gimp 2.8.
Changes introduced by this commit: - Update xcf-private.h with the file from the head of git's branch named gimp-2-8 (commit acebb4ad205901a9e8029a66ed5bca62cf13bc96). - Increase supported version number from 2 to 3. - Add the cases for PROP_GROUP_ITEM and PROP_ITEM_PATH in getBasicXcfInfo(). - Add the function printLayerPath() to print the groups containing a given layer. - Add an option --path-separator (string) to set the string to use to separate the groups in the paths. The output is unchanged for files whose version is lower than 3. Otherwise, the name of the layer now contains its path in the image and the marker "group" is added for the group layers in the fourth field. For example, here is the output of a file containing a single layer named "a", then one group named "G 1", which contains two layers named "b 1" and "c 2". The path separator is "|" by default: Version 3, 10x10 RGB color, 4 layers, compressed RLE + 10x10+0+0 RGB-alpha Normal |a + 10x10+0+0 RGB-alpha Normal/group |G 1 + 10x10+0+0 RGB-alpha Normal |G 1|b 1 + 10x10+0+0 RGB-alpha Normal |G 1|c 2
Diffstat (limited to 'options.i')
-rw-r--r--options.i9
1 files changed, 9 insertions, 0 deletions
diff --git a/options.i b/options.i
index 56bb014..05e18ad 100644
--- a/options.i
+++ b/options.i
@@ -47,6 +47,15 @@ OPTION('j',--bzip,input is bzip2 compressed,
));
unzipper = "bzcat" ;
break ;
+
+#ifdef XCFINFO
+OPTION('p',--path-separator, (string) use 'string' to separate the groups in the paths,
+ (This string will be used to separate the name of the containing groups
+ when manipulating layers.
+ ));
+pathSeparator = optarg ;
+break ;
+#endif
OPTION('z',--gzip,input is gzip compressed,
(Equivalent to