Image.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(+ quelle / source) |
|||
Zeile 1: | Zeile 1: | ||
− | + | #!/bin/sh | |
− | #!/bin/sh | + | # |
− | # | + | # image.sh - v.0.1 |
− | # image.sh - v.0.1 | + | # |
− | # | + | # source: [[image-plugin]] |
− | # source: | + | # |
− | # | + | # pregenerate images in background - image plugin |
− | # pregenerate images in background - image plugin | + | # |
− | # | + | # add this line to your [[imagecmds.conf]]: |
− | # add this line to your imagecmds.conf: | + | # folgende zeile in die [[imagecmds.conf]] eintragen: |
− | # folgende zeile in die imagecmds.conf: | + | # |
− | # | + | # 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 |
− | # Remove temporary files yes | + | # Lösche temoräre Datein ja |
− | # Lösche temoräre Datein ja | + | # |
− | # | + | # config: |
− | # config: | + | # |
− | # | + | # image.Housekeeping = 0 |
− | # image.Housekeeping = 0 | + | |
− | + | at now <<EOF | |
− | at now <<EOF | + | find "`dirname "${1}"`" -follow -type f \ |
− | 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 | |
− | EOF | + | |
− | + | ||
[[Kategorie:Scripts]] | [[Kategorie:Scripts]] |
Version vom 26. Dezember 2004, 12:36 Uhr
#!/bin/sh # # image.sh - v.0.1 # # source: image-plugin # # pregenerate images in background - image plugin # # 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 # Lösche temoräre 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 ';' 2>/dev/null EOF