Image.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Umlaute)
K
Zeile 1: Zeile 1:
#!/bin/sh
+
<pre>
#
+
#!/bin/sh
# image.sh - v.0.1
+
#
#
+
# image.sh
# source: [[image-plugin]]
+
#
#
+
# source: vdr-plugin image
# pregenerate images in background - image plugin
+
#
#
+
# pregenerate images in background
# add this line to your [[imagecmds.conf]]:
+
#
# folgende zeile in die [[imagecmds.conf]] eintragen:
+
# add this line to your imagecmds.conf:
#
+
# folgende zeile in die imagecmds.conf eintragen:
# Pregenerate this folder and below : /usr/local/bin/image.sh
+
#
#
+
# Pregenerate this folder and below : /usr/local/bin/image.sh
# setup:
+
#
#
+
# setup:
# Remove temporary files   yes
+
#
# Loesche temoraere Datein ja
+
# Remove temporary files     yes
#
+
# Loesche temoraere Datein   ja
# config:
+
#
#
+
# config:
# image.Housekeeping = 0
+
#
+
# image.Housekeeping = 0
at now <<EOF
+
 
find "`dirname "${1}"`" -follow -type f \
+
at now <<EOF
                        -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
+
find "`dirname "$1"`" -follow -type f \
                        -exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' 2>/dev/null
+
      -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
EOF
+
      -exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' >/dev/null 2>&1
 +
EOF
 +
</pre>
  
 
[[Kategorie:Scripts]]
 
[[Kategorie:Scripts]]

Version vom 30. März 2005, 11:23 Uhr

#!/bin/sh
#
# image.sh
#
# source: vdr-plugin image
#
# pregenerate images in background
#
# add this line to your imagecmds.conf:
# folgende zeile in die imagecmds.conf eintragen:
#
# Pregenerate this folder and below : /usr/local/bin/image.sh
#
# setup:
#
# Remove temporary files     yes
# Loesche temoraere Datein   ja
#
# config:
#
# image.Housekeeping = 0

at now <<EOF
find "`dirname "$1"`" -follow -type f \
		      -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
		      -exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' >/dev/null 2>&1
EOF