Image.sh

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Quelle angegeben (soll ja alles seine Ordnung haben) + Kategorie:Scripts)
Zeile 2: Zeile 2:
 
#!/bin/sh
 
#!/bin/sh
 
#
 
#
# pregenerate images in the background, source image plugin
+
# image.sh - v.0.1
 +
#
 +
# pregenerate images in background - image plugin
 +
#
 +
# add this line to your imagecmds.conf:
 +
# folgende zeile in die imagecmds.conf:
 +
#
 +
# Pregenerate this folder and below : /usr/local/bin/image.sh
  
at now <<EOM
+
at now <<EOF
 
find "`dirname "${1}"`" -follow -type f \
 
find "`dirname "${1}"`" -follow -type f \
                        -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
+
-name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
                        -exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' 2>/dev/null
+
-exec /usr/local/bin/imageplugin.sh '{}' '/tmp/image{}.pnm' 688 544 0 0 0 ';' 2>/dev/null
EOM
+
EOF
 
</pre>
 
</pre>
  

Version vom 22. November 2004, 13:31 Uhr

#!/bin/sh
#
# image.sh - v.0.1
#
# pregenerate images in background - image plugin
#
# add this line to your imagecmds.conf:
# folgende zeile in die imagecmds.conf:
#
# Pregenerate this folder and below : /usr/local/bin/image.sh

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 ';' 2>/dev/null
EOF

Quelle: Aus den Sourcen des image-plugins.