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>
10 <!ATTLIST delegate thread-support CDATA #IMPLIED>
11 <!ATTLIST delegate command CDATA #REQUIRED>
14 Delegate command file.
16 Commands which specify
18 decode="in_format" encode="out_format"
20 specify the rules for converting from in_format to out_format These
21 rules may be used to translate directly between formats.
23 Commands which specify only
27 specify the rules for converting from in_format to some format that
28 ImageMagick will automatically recognize. These rules are used to
31 Commands which specify only
35 specify the rules for an "encoder" which may accept any input format.
37 For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are
40 %i input image filename
41 %o output image filename
42 %u unique temporary filename
43 %Z unique temporary filename
44 %# input image signature
46 %c input image comment
48 %h image rows (height)
49 %k input image number colors
55 %w image columns (width)
56 %x input image x resolution
57 %y input image y resolution
59 Set option delegate:bimodal=true to process bimodal delegates otherwise they
62 If stealth="True" the delegate is not listed in user requested
63 "-list delegate" listings. These are typically special internal delegates.
65 If spawn="True" ImageMagick will not way for the delegate to finish,
66 nor will it read any output image. It will only wait for either the input
67 file to be removed (See "ephemeral:" coder) indicating that the input file
68 has been read, or a maximum time limit of 2 seconds.
71 <delegate decode="autotrace" stealth="True" command=""@ConvertDelegate@" "%i" "pnm:%u"\n"@AutotraceDecodeDelegate@" -input-format pnm -output-format svg -output-file "%o" "%u""/>
72 <delegate decode="blender" command=""@BlenderDecodeDelegate@" -b "%i" -F PNG -o "%o""\n"@ConvertDelegate@" -concatenate "%o*.png" "%o""/>
73 <delegate decode="browse" stealth="True" spawn="True" command=""@BrowseDelegate@" http://www.imagemagick.org/; rm "%i""/>
74 <delegate decode="cdr" command=""@UniconvertorDelegate@" "%i" "%o.svg"; mv "%o.svg" "%o""/>
75 <delegate decode="cgm" command=""@UniconvertorDelegate@" "%i" "%o.svg"; mv "%o.svg" "%o""/>
76 <delegate decode="dng:decode" command=""@DNGDecodeDelegate@" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>
77 <delegate decode="dot" command='"@GVCDecodeDelegate@" -Tsvg "%i" -o "%o"' />
78 <delegate decode="dvi" command=""@DVIDecodeDelegate@" -q -o "%o" "%i""/>
79 <delegate decode="dxf" command=""@UniconvertorDelegate@" "%i" "%o.svg"; mv "%o.svg" "%o""/>
80 <delegate decode="edit" stealth="True" command=""@EditorDelegate@" -title "Edit Image Comment" -e vi "%o""/>
81 <delegate decode="eps" encode="pdf" mode="bi" command=""@PSDelegate@" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=@GSPDFDevice@" "-sOutputFile=%o" "-f%i""/>
82 <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""/>
83 <delegate decode="fig" command=""@UniconvertorDelegate@" "%i" "%o.svg"; mv "%o.svg" "%o""/>
84 <delegate decode="hpg" command=""@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i"; mv -f `basename "%o"` "%o""/>
85 <delegate decode="hpgl" command=""@HPGLDecodeDelegate@" -q -m eps -f `basename "%o"` "%i"; mv -f `basename "%o"` "%o""/>
86 <delegate decode="htm" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/>
87 <delegate decode="html" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/>
88 <delegate decode="https" command=""@WWWDecodeDelegate@" -s -k -L -o "%o" "https:%M""/>
89 <delegate decode="ilbm" command=""@ILBMDecodeDelegate@" "%i" > "%o""/>
90 <delegate decode="jxr" command="mv "%i" "%i.jxr"; "@JXRDecodeDelegate@" -i "%i.jxr" -o "%o.pnm"; mv "%i.jxr" "%i"; mv "%o.pnm" "%o""/>
91 <delegate decode="man" command=""@MANDelegate@" -man -Tps "%i" > "%o""/>
92 <delegate decode="miff" encode="show" spawn="True" command=""@DisplayDelegate@" -delay 0 -window-group %[group] -title "%l " "ephemeral:%i""/>
93 <delegate decode="miff" encode="win" stealth="True" spawn="True" command=""@DisplayDelegate@" -immutable -delay 0 -window-group %[group] -title "%l " "ephemeral:%i""/>
94 <delegate decode="mpeg:decode" command=""@MPEGDecodeDelegate@" -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z""/>
95 <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""/>
96 <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""/>
97 <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""/>
98 <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""/>
99 <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""/>
100 <delegate decode="plt" command=""@EchoDelegate@" "set size 1.25,0.62; set terminal postscript portrait color solid; set output \'%o\'; load \'%i\'" > "%u";"@GnuplotDecodeDelegate@" "%u""/>
101 <delegate decode="png" encode="webp" command=""@WebPEncodeDelegate@" -quiet -q %Q "%i" -o "%o""/>
102 <delegate decode="pnm" encode="ilbm" mode="encode" command=""@ILBMEncodeDelegate@" -24if "%i" > "%o""/>
103 <delegate decode="pnm" encode="jxr" command="mv "%i" "%i.pnm"; "@JXREncodeDelegate@" -i "%i.pnm" -o "%o.jxr"; mv "%i.pnm" "%i"; mv "%o.jxr" "%o""/>
104 <delegate decode="pnm" encode="wdp" command="mv "%i" "%i.pnm"; "@JXREncodeDelegate@" -i "%i.pnm" -o "%o.jxr"; mv "%i.pnm" "%i"; mv "%o.jxr" "%o""/>
105 <delegate decode="pov" command=""@POVDelegate@" "+i%i" -D0 "+o%o" +fn%q +w%w +h%h +a -q9 "-kfi%s" "-kff%n";"@ConvertDelegate@" -concatenate "%o*.png" "%o""/>
106 <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""/>
107 <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""/>
108 <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""/>
109 <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""/>
110 <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""/>
111 <delegate decode="ps" encode="print" mode="encode" command="lpr "%i""/>
112 <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""/>
113 <delegate decode="rgba" encode="rle" mode="encode" command=""@RLEEncodeDelegate@" -o "%o" -v "%i""/>
114 <delegate decode="scan" command=""@SCANDecodeDelegate@" -d "%i" > "%o""/>
115 <delegate decode="scanx" command=""@SCANDecodeDelegate@" > "%o""/>
116 <delegate decode="shtml" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/>
117 <delegate decode="sid" command=""@MrSIDDecodeDelegate@" -if sid -i "%i" -of tif -o "%o" > "%u""/>
118 <delegate decode="svg" command=""@RSVGDecodeDelegate@" -o "%o" "%i""/>
119 <delegate decode="svg:decode" stealth="True" command=""@SVGDecodeDelegate@" "%s" --export-png="%s" --export-dpi="%s" --export-background="%s" --export-background-opacity="%s" > "%s" 2>&1"/>
120 <delegate decode="tiff" encode="launch" mode="encode" command=""@LaunchDelegate@" "%i""/>
121 <delegate decode="txt" encode="ps" mode="bi" command=""@TXTDelegate@" -o "%o" "%i""/>
122 <delegate decode="wdp" command="mv "%i" "%i.jxr"; "@JXRDecodeDelegate@" -i "%i.jxr" -o "%o.pnm"; mv "%i.jxr" "%i"; mv "%o.pnm" "%o""/>
123 <delegate decode="webp" command=""@WebPDecodeDelegate@" -pam "%i" -o "%o""/>
124 <delegate decode="wmf" command=""@WMFDecodeDelegate@" -o "%o" "%i""/>
125 <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""/>
126 <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""/>
127 <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""/>
128 <delegate encode="mpeg:encode" stealth="True" command=""@MPEGEncodeDelegate@" -v -1 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>