|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE delegatemap [ |
| 3 | + <!ELEMENT delegatemap (delegate)+> |
| 4 | + <!ATTLIST delegatemap xmlns CDATA #FIXED ''> |
| 5 | + <!ELEMENT delegate EMPTY> |
| 6 | + <!ATTLIST delegate xmlns CDATA #FIXED '' command CDATA #REQUIRED |
| 7 | + decode NMTOKEN #IMPLIED encode NMTOKEN #IMPLIED mode NMTOKEN #IMPLIED |
| 8 | + spawn NMTOKEN #IMPLIED stealth NMTOKEN #IMPLIED> |
| 9 | +]> |
| 10 | +<!-- |
| 11 | + Delegate command file. |
| 12 | +
|
| 13 | + Commands which specify |
| 14 | +
|
| 15 | + decode="in_format" encode="out_format" |
| 16 | +
|
| 17 | + specify the rules for converting from in_format to out_format. Use these |
| 18 | + rules to translate directly between formats. |
| 19 | +
|
| 20 | + Commands which specify only |
| 21 | +
|
| 22 | + decode="in_format" |
| 23 | +
|
| 24 | + specify the rules for converting from in_format to some format that |
| 25 | + ImageMagick automatically recognizes. Use these rules to decode formats. |
| 26 | +
|
| 27 | + Commands which specify only |
| 28 | +
|
| 29 | + encode="out_format" |
| 30 | +
|
| 31 | + specify the rules for an "encoder" which may accept any input format. |
| 32 | +
|
| 33 | + The substitution rules are as follows: |
| 34 | +
|
| 35 | + %a authentication passphrase |
| 36 | + %b image file size in bytes |
| 37 | + %g image geometry |
| 38 | + %h image rows (height) |
| 39 | + %i input image filename |
| 40 | + %# input image signature |
| 41 | + %m input image format |
| 42 | + %o output image filename |
| 43 | + %p page number |
| 44 | + %q input image depth |
| 45 | + %s scene number |
| 46 | + %u unique temporary filename |
| 47 | + %w image columns (width) |
| 48 | + %x input image x resolution |
| 49 | + %y input image y resolution |
| 50 | + %Q input image compression quality |
| 51 | +
|
| 52 | + Set option delegate:bimodal=true to process bimodal delegates otherwise they |
| 53 | + are ignored. |
| 54 | +
|
| 55 | + If stealth="True" the delegate is not listed in user requested |
| 56 | + "-list delegate" listings. These are typically special internal delegates. |
| 57 | +
|
| 58 | + If spawn="True", ImageMagick does not wait for the delegate to finish, nor |
| 59 | + will it read any output image. |
| 60 | +--> |
| 61 | +<delegatemap> |
| 62 | + <delegate decode="bpg" command=""bpgdec" -b 16 -o "%o" "%i""/> |
| 63 | + <delegate decode="png" encode="bpg" command=""bpgenc" -b 12 -q "%~" -o "%o" "%i""/> |
| 64 | + <delegate decode="dng:decode" stealth="True" command="dcraw.exe -6 -W -O "%u.ppm" "%i""/> |
| 65 | + <delegate decode="dot" command=""dot" -Tsvg "%i" -o "%o"" /> |
| 66 | + <delegate decode="dvi" command=""dvips" -q -o "%o" "%i""/> |
| 67 | + <delegate decode="eps" encode="pdf" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i""/> |
| 68 | + <delegate decode="eps" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=ps2write" "-sOutputFile=%o" "-f%i""/> |
| 69 | + <delegate decode="hpg" command=""hp2xx" -q -m eps -f "%o" "%i""/> |
| 70 | + <delegate decode="hpgl" command=""hp2xx" -q -m eps -f "%o" "%i""/> |
| 71 | + <delegate decode="htm" command=""html2ps" -U -o "%o" "%i""/> |
| 72 | + <delegate decode="html" command=""html2ps" -U -o "%o" "%i""/> |
| 73 | + <delegate decode="ilbm" command=""ilbmtoppm" "%i" > "%o""/> |
| 74 | + <delegate decode="jpg" encode="lep" mode="encode" command=""lepton" "%i" "%o""/> |
| 75 | + <delegate decode="jxr" command="cmd.exe /c (move "%i" "%i.jxr" >nul) & ("JXRDecApp.exe" -i "%i.jxr" -o "%o.tiff") & (move "%i.jxr" "%i" >nul) & (move "%o.tiff" "%o" >nul)"/> |
| 76 | + <delegate decode="lep" mode="decode" command=""lepton" "%i" "%o""/> |
| 77 | + <delegate decode="pcl:cmyk" stealth="True" command=""pcl6" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 78 | + <delegate decode="pcl:color" stealth="True" command=""pcl6" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 79 | + <delegate decode="pcl:mono" stealth="True" command=""pcl6" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 80 | + <delegate decode="pdf" encode="eps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=eps2write" "-sPDFPassword=%a" "-sOutputFile=%o" "-f%i""/> |
| 81 | + <delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=ps2write" "-sPDFPassword=%a" "-sOutputFile=%o" "-f%i""/> |
| 82 | + <delegate decode="pnm" encode="ilbm" mode="encode" command=""ppmtoilbm" -24if "%i" > "%o""/> |
| 83 | + <delegate decode="tiff" encode="jxr" command="cmd.exe /c (move "%i" "%i.tiff" >nul) & ("JXREncApp.exe" -i "%i.tiff" -o "%o.jxr" -q %Q) & (move "%i.tiff" "%i" >nul) & (move "%o.jxr" "%o" >nul)"/> |
| 84 | + <delegate decode="tiff" encode="wdp" command="cmd.exe /c (move "%i" "%i.tiff" >nul) & ("JXREncApp.exe" -i "%i.tiff" -o "%o.jxr" -q %Q) & (move "%i.tiff" "%i" >nul) & (move "%o.jxr" "%o" >nul)"/> |
| 85 | + <delegate decode="ps:alpha" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 86 | + <delegate decode="ps:cmyk" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 87 | + <delegate decode="ps:color" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=png16m" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 88 | + <delegate decode="ps" encode="eps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=eps2write" "-sOutputFile=%o" "-f%i""/> |
| 89 | + <delegate decode="ps" encode="pdf" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i""/> |
| 90 | + <delegate decode="ps:mono" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 91 | + <delegate decode="shtml" command=""html2ps" -U -o "%o" "%i""/> |
| 92 | + <delegate decode="svg" command=""rsvg-convert" --dpi-x %x --dpi-y %y -o "%o" "%i""/> |
| 93 | + <!-- Change export-filename to export-png for inkscape < 1.0 --> |
| 94 | + <delegate decode="svg:decode" stealth="True" command=""inkscape" "%s" "--export-filename=%s" "--export-dpi=%s" "--export-background=%s" "--export-background-opacity=%s""/> |
| 95 | + <delegate decode="wdp" command="cmd.exe /c (move "%i" "%i.jxr" >nul) & ("JXRDecApp.exe" -i "%i.jxr" -o "%o.pnm") & (move "%i.jxr" "%i" >nul) & (move "%o.pnm" "%o" >nul)"/> |
| 96 | + <delegate decode="xps:cmyk" stealth="True" command=""gxps" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=bmpsep8" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 97 | + <delegate decode="xps:color" stealth="True" command=""gxps" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 98 | + <delegate decode="xps:mono" stealth="True" command=""gxps" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 99 | + <delegate decode="video:decode" command=""ffmpeg" -nostdin -loglevel error -i "%s" -an -f rawvideo -y %s "%s""/> |
| 100 | + <delegate encode="video:encode" stealth="True" command=""ffmpeg" -nostdin -loglevel error -i "%s%%d.%s" %s "%s.%s""/> |
| 101 | +</delegatemap> |
0 commit comments