summaryrefslogtreecommitdiff
path: root/examples/imagecmds.conf
blob: 779bd99bae626021fdc65bf0bd031b109c2bac8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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