# # 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: [?]; # # = descriptor displayed in VDR # [?] = confirmation request, before execute command (optionally) # = 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