cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE delegatemap [ |
| 3 | <!ELEMENT delegatemap (delegate)+> |
| 4 | <!ELEMENT delegate (#PCDATA)> |
| 5 | <!ATTLIST delegate decode CDATA #IMPLIED> |
| 6 | <!ATTLIST delegate encode CDATA #IMPLIED> |
| 7 | <!ATTLIST delegate mode CDATA #IMPLIED> |
| 8 | <!ATTLIST delegate spawn CDATA #IMPLIED> |
| 9 | <!ATTLIST delegate stealth CDATA #IMPLIED> |
cristy | a314381 | 2010-01-19 23:00:56 +0000 | [diff] [blame] | 10 | <!ATTLIST delegate thread-support CDATA #IMPLIED> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11 | <!ATTLIST delegate command CDATA #REQUIRED> |
| 12 | ]> |
| 13 | <!-- |
| 14 | Delegate command file. |
| 15 | |
| 16 | Commands which specify |
| 17 | |
| 18 | decode="in_format" encode="out_format" |
| 19 | |
| 20 | specify the rules for converting from in_format to out_format These |
| 21 | rules may be used to translate directly between formats. |
| 22 | |
| 23 | Commands which specify only |
| 24 | |
| 25 | decode="in_format" |
| 26 | |
| 27 | specify the rules for converting from in_format to some format that |
| 28 | ImageMagick will automatically recognize. These rules are used to |
| 29 | decode formats. |
| 30 | |
| 31 | Commands which specify only |
| 32 | |
| 33 | encode="out_format" |
| 34 | |
| 35 | specify the rules for an "encoder" which may accept any input format. |
| 36 | |
| 37 | For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are |
| 38 | as follows: |
| 39 | |
| 40 | %i input image filename |
| 41 | %o output image filename |
| 42 | %u unique temporary filename |
| 43 | %Z unique temporary filename |
| 44 | %# input image signature |
| 45 | %b image file size |
| 46 | %c input image comment |
| 47 | %g image geometry |
| 48 | %h image rows (height) |
| 49 | %k input image number colors |
| 50 | %m input image format |
| 51 | %p page number |
| 52 | %q input image depth |
| 53 | %s scene number |
| 54 | %w image columns (width) |
| 55 | %x input image x resolution |
| 56 | %y input image y resolution |
| 57 | |
cristy | 4c49134 | 2009-11-02 01:46:10 +0000 | [diff] [blame] | 58 | Set option delegate:bimodal=true to process bimodal delegates otherwise they |
| 59 | are ignored. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 60 | --> |
| 61 | <delegatemap> |
| 62 | <delegate decode="autotrace" stealth="True" command=""@ConvertDelegate@" "%i" "pnm:%u"\n"@AutotraceDecodeDelegate@" -input-format pnm -output-format svg -output-file "%o" "%u""/> |
| 63 | <delegate decode="avi:decode" stealth="True" command=""@AVIDecodeDelegate@" "%i" -really-quiet -ao null -vo png:z=3"/> |
| 64 | <delegate decode="blender" command=""@BlenderDecoderDelegate@" -b "%i" -F PNG -o "%o""\n"@ConvertDelegate@" -concatenate "%o*.png" "%o""/> |
| 65 | <delegate decode="browse" stealth="True" spawn="True" command=""@BrowseDelegate@" http://www.imagemagick.org/"/> |
| 66 | <delegate decode="cgm" thread-support="False" command=""@CGMDecodeDelegate@" -d ps -oC < "%i" > "%o" 2> "%Z""/> |
| 67 | <delegate decode="dvi" command=""@DVIDecodeDelegate@" -q -o "%o" "%i""/> |
| 68 | <delegate decode="dng:decode" command=""@DNGDecodeDelegate@" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/> |
| 69 | <delegate decode="edit" stealth="True" command=""@EditorDelegate@" -title "Edit Image Comment" -e vi "%o""/> |
cristy | b5319c0 | 2010-06-15 21:58:40 +0000 | [diff] [blame^] | 70 | <delegate decode="eps" encode="pdf" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=@GSPDFDevice@" "-sOutputFile=%o" "-f%i""/> |
| 71 | <delegate decode="eps" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPSDevice@" "-sOutputFile=%o" "-f%i""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 72 | <delegate decode="fig" command=""@FIGDecodeDelegate@" -L ps "%i" "%o""/> |
| 73 | <delegate decode="gplt" command=""@EchoDelegate@" "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"@GnuplotDecodeDelegate@" "%u""/> |
| 74 | <delegate decode="hdr" command=""@HDRDecodeDelegate@" "%i" "%o""/> |
| 75 | <delegate decode="hpg" command=""@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i" mv -f `basename "%o"` "%o""/> |
| 76 | <delegate decode="hpgl" command="if [ -e @HPGLDecodeDelegate@ -o -e /usr/bin/@HPGLDecodeDelegate@ ]; then @HPGLDecodeDelegate@ -q -m eps -f `basename "%o"` "%i"; mv -f `basename "%o"` "%o"; else echo "You need to install hp2xx to use HPGL files with ImageMagick."; exit 1; fi"/> |
| 77 | <delegate decode="htm" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> |
| 78 | <delegate decode="html" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> |
| 79 | <delegate decode="https" command=""@WWWDecodeDelegate@" -s -k -o "%o" "https:%M""/> |
| 80 | <delegate decode="ilbm" command=""@ILBMDecodeDelegate@" "%i" > "%o""/> |
| 81 | <delegate decode="man" command=""@MANDelegate@" -man -Tps "%i" > "%o""/> |
| 82 | <delegate decode="mpeg:decode" command=""@MPEGDecodeDelegate@" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z""/> |
cristy | 88ca308 | 2009-09-22 20:07:15 +0000 | [diff] [blame] | 83 | <delegate encode="mpeg:encode" stealth="True" command=""@MPEGEncodeDelegate@" -v -1 -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/> |
cristy | 64e31a7 | 2010-06-06 02:24:21 +0000 | [diff] [blame] | 84 | <delegate decode="sid" command=""@MrSIDDecodeDelegate@" -if sid -i "%i" -of tif -o "%o" > "%u""/> |
cristy | b5319c0 | 2010-06-15 21:58:40 +0000 | [diff] [blame^] | 85 | <delegate decode="pcl:color" stealth="True" command=""@PCLDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@PCLColorDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 86 | <delegate decode="pcl:cmyk" stealth="True" command=""@PCLDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@PCLCMYKDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 87 | <delegate decode="pcl:mono" stealth="True" command=""@PCLDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@PCLMonoDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 88 | <delegate decode="pdf" encode="eps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSEPSDevice@" "-sOutputFile=%o" "-f%i""/> |
| 89 | <delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPSDevice@" "-sOutputFile=%o" "-f%i""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 90 | <delegate decode="pic" command=""@HDRDecodeDelegate@" "%i" "%o""/> |
| 91 | <delegate decode="png" encode="launch" mode="encode" command=""@LaunchDelegate@" "%i""/> |
| 92 | <delegate decode="pnm" encode="ilbm" mode="encode" command=""@ILBMEncodeDelegate@" -24if "%i" > "%o""/> |
| 93 | <delegate decode="pov" command=""@POVDelegate@" "+i%i" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n"\n"@ConvertDelegate@" -concatenate "%o*.png" "%o""/> |
cristy | b5319c0 | 2010-06-15 21:58:40 +0000 | [diff] [blame^] | 94 | <delegate decode="ps" encode="eps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSEPSDevice@" "-sOutputFile=%o" "-f%i""/> |
| 95 | <delegate decode="ps" encode="pdf" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPDFDevice@" "-sOutputFile=%o" "-f%i""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 | <delegate decode="ps" encode="print" mode="encode" command="lpr "%i""/> |
cristy | b5319c0 | 2010-06-15 21:58:40 +0000 | [diff] [blame^] | 97 | <delegate decode="ps:alpha" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSAlphaDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 98 | <delegate decode="ps:cmyk" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSCMYKDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 99 | <delegate decode="ps:color" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSColorDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
| 100 | <delegate decode="ps:mono" stealth="True" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSMonoDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 101 | <delegate decode="rad" command=""@HDRDecodeDelegate@" "%i" "%o""/> |
| 102 | <delegate decode="rgba" encode="rle" mode="encode" command=""@RLEEncodeDelegate@" -o "%o" -v "%i""/> |
| 103 | <delegate decode="scan" command=""@SCANDecodeDelegate@" -d "%i" > "%o""/> |
| 104 | <delegate decode="scanx" command=""@SCANDecodeDelegate@" > "%o""/> |
cristy | 8370e01 | 2010-06-05 13:45:00 +0000 | [diff] [blame] | 105 | <delegate decode="miff" encode="show" spawn="True" command=""@DisplayDelegate@" -delay 0 -window-group %[group] -title "%l of %f" "ephemeral:%i""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 106 | <delegate decode="shtml" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> |
cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 107 | <delegate decode="svg" command=""@RSVGDecodeDelegate@" "%i" "%o""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 108 | <delegate decode="txt" encode="ps" mode="bi" command=""@TXTDelegate@" -o "%o" "%i""/> |
| 109 | <delegate decode="miff" encode="win" stealth="True" spawn="True" command=""@DisplayDelegate@" -immutable -delay 0 -window-group %[group] -title "%l of %f" "ephemeral:%i""/> |
| 110 | <delegate decode="wmf" command=""@WMFDecodeDelegate@" -o "%o" "%i""/> |
cristy | b5319c0 | 2010-06-15 21:58:40 +0000 | [diff] [blame^] | 111 | <delegate decode="xps:color" stealth="True" command=""@XPSDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@XPSColorDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 112 | <delegate decode="xps:cmyk" stealth="True" command=""@XPSDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@XPSCMYKDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
| 113 | <delegate decode="xps:mono" stealth="True" command=""@XPSDelegate@" -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@XPSMonoDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "%s""/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 114 | </delegatemap> |