summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2015-11-18 10:41:02 +0000
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-12-08 20:01:36 +0100
commitb516f468faa3a80c31932cbcb1ea8ccd1468ffc1 (patch)
tree7e9adae3de9df8b728a8689c5553a50ad9483d70 /config.def.h
parent7e558105e6e46a6a2592f2ee15220b99922cd1f0 (diff)
Support farbfeld as an intermediate format
Sent now uses farbfeld[0] as an intermediate format. A series of filters is specified in config.h that matches file extensions to filter programs. The programs will convert between formats such as png to farbfeld. Internally in sent we do not need to worry on how to parse png or any other format. This also works with jpg and gif and others. The 2ff wrapper will use imagemagick conversion tools. This is temporary as jpg2ff and gif2ff will also be implemented. To make this work, you will have to clone[0] and put png2ff and 2ff in your PATH. [0] http://git.2f30.org/farbfeld/
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 2dae620..94ed09e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -45,3 +45,8 @@ static Shortcut shortcuts[] = {
{ XK_n, advance, {.i = +1} },
{ XK_p, advance, {.i = -1} },
};
+
+static Filter filters[] = {
+ { "\\.png$", "png2ff" },
+ { "\\.(jpg|gif)$", "2ff" },
+};