Image.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(Umlaute) |
K |
||
Zeile 1: | Zeile 1: | ||
− | + | <pre> | |
− | + | #!/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 | ||
+ | </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