Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2f9d4be557cb46f6c353f4e0c45daf48 > files > 11

vdr-plugin-image-0.3.0-3mdv2010.0.i586.rpm

#
# 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