summaryrefslogtreecommitdiff
path: root/examples/imagecmds.conf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imagecmds.conf')
-rw-r--r--examples/imagecmds.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/imagecmds.conf b/examples/imagecmds.conf
new file mode 100644
index 0000000..779bd99
--- /dev/null
+++ b/examples/imagecmds.conf
@@ -0,0 +1,22 @@
+#
+# This is a example of imagecmds.conf with with usually using and sample entrys.
+#
+# This file should placed on VDR configuration folder with setup.conf
+# .../setup.conf
+# .../plugins/imagecmds.conf
+#
+# Syntax is: <name>[?];<command>
+#
+# <name> = descriptor displayed in VDR
+# [?] = confirmation request, before execute command (optionally)
+# <command>= command what execute with current watched file
+# %s - placeholder filename (optionally)
+#
+# See also at man-pages vdr(5), it the same syntax as reccmds.conf
+#
+Informations about picture : identify -verbose
+Size of picture : du -chs %s
+Dump Exif informations from JPEG-picture : jpegtopnm -dumpexif %s >/dev/null 2> $CONVERT_TEMPDIR/exif.tmp && cat $CONVERT_TEMPDIR/exif.tmp && rm -f $CONVERT_TEMPDIR/exif.tmp
+Rotate JPEG picture lossless by 90 degrees to the right : jpegtran -rotate 90 %s > $CONVERT_TEMPDIR/tmp.jpg && mv $CONVERT_TEMPDIR/tmp.jpg %s
+Rotate JPEG picture lossless by 90 degrees to the left : jpegtran -rotate 270 %s > $CONVERT_TEMPDIR/tmp.jpg && mv $CONVERT_TEMPDIR/tmp.jpg %s
+Delete picture ?: rm -f %s