Image.sh
Aus VDR Wiki
Version vom 23. November 2004, 06:21 Uhr von 213.6.81.152 (Diskussion)
#!/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 # # setup: # # Remove temporary files yes # Lösche temoräre Datein ja # # config: # # image.Housekeeping = 1 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.