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 51 Set option delegate:bimodal=true to process bimodal delegates otherwise they 52 are ignored. 53 54 If stealth="True" the delegate is not listed in user requested 55 "-list delegate" listings. These are typically special internal delegates. 56 57 If spawn="True", ImageMagick does not wait for the delegate to finish, nor 58 will it read any output image. 59--> 60<delegatemap> 61 <delegate decode="bpg" command=""@BPGDecodeDelegate@" -b 16 -o "%o.png" "%i"; @MVDelegate@ "%o.png" "%o""/> 62 <delegate decode="png" encode="bpg" command=""@BPGEncodeDelegate@" -b 12 -q "%~" -o "%o" "%i""/> 63 <delegate decode="blender" command=""@BlenderDecodeDelegate@" -b "%i" -F PNG -o "%o""\n"@ConvertDelegate@" convert -concatenate "%o*.png" "%o""/> 64 <delegate decode="browse" stealth="True" spawn="True" command=""@BrowseDelegate@" https://imagemagick.org/; @RMDelegate@ "%i""/> 65 <delegate decode="cdr" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/> 66 <delegate decode="cgm" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/> 67 <delegate decode="https" command=""@WWWDecodeDelegate@" -s -k -L -o "%o" "https:%M""/> 68 <delegate decode="doc" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 69 <delegate decode="docx" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 70 <delegate decode="dng:decode" command=""@DNGDecodeDelegate@" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/> 71 <delegate decode="dot" command=""@GVCDecodeDelegate@" -Tsvg "%i" -o "%o"" /> 72 <delegate decode="dvi" command=""@DVIDecodeDelegate@" -sstdout=%%stderr -o "%o" "%i""/> 73 <delegate decode="dxf" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/> 74 <delegate decode="edit" stealth="True" command=""@EditorDelegate@" -title "Edit Image Comment" -e vi "%o""/> 75 <delegate decode="eps" encode="pdf" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=@GSPDFDevice@" "-sOutputFile=%o" "-f%i""/> 76 <delegate decode="eps" encode="ps" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPSDevice@" "-sOutputFile=%o" "-f%i""/> 77 <delegate decode="fig" command=""@UniconvertorDelegate@" "%i" "%o.svg"; @MVDelegate@ "%o.svg" "%o""/> 78 <delegate decode="hpg" command=""@HPGLDecodeDelegate@" -sstdout=%%stderr -m eps -f `basename "%o"` "%i"; @MVDelegate@ -f `basename "%o"` "%o""/> 79 <delegate decode="hpgl" command=""@HPGLDecodeDelegate@" -sstdout=%%stderr -m eps -f `basename "%o"` "%i"; @MVDelegate@ -f `basename "%o"` "%o""/> 80 <delegate decode="htm" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> 81 <delegate decode="html" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> 82 <delegate decode="ilbm" command=""@ILBMDecodeDelegate@" "%i" > "%o""/> 83 <delegate decode="jpg" encode="lep" mode="encode" command=""@LEPDelegate@" "%i" "%o""/> 84 <delegate decode="jxr" command="@MVDelegate@ "%i" "%i.jxr"; "@JXRDecodeDelegate@" -i "%i.jxr" -o "%o.pnm"; @MVDelegate@ "%i.jxr" "%i"; @MVDelegate@ "%o.pnm" "%o""/> 85 <delegate decode="lep" mode="decode" command=""@LEPDelegate@" "%i" "%o""/> 86 <delegate decode="miff" encode="show" spawn="True" command=""@DisplayDelegate@" display -immutable -delay 0 -title "%M" "%i""/> 87 <delegate decode="miff" encode="win" stealth="True" spawn="True" command=""@DisplayDelegate@" display -immutable -delay 0 -title "%M" "%i""/> 88 <delegate decode="mpeg:decode" command=""@MPEGDecodeDelegate@" -nostdin -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%u""/> 89 <delegate decode="odt" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 90 <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""/> 91 <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""/> 92 <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""/> 93 <delegate decode="pdf" encode="eps" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sPDFPassword="%a" "-sDEVICE=@GSEPSDevice@" "-sOutputFile=%o" "-f%i""/> 94 <delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPSDevice@" -sPDFPassword="%a" "-sOutputFile=%o" "-f%i""/> 95 <delegate decode="png" encode="webp" command=""@WebPEncodeDelegate@" -quiet %Q "%i" -o "%o""/> 96 <delegate decode="pnm" encode="ilbm" mode="encode" command=""@ILBMEncodeDelegate@" -24if "%i" > "%o""/> 97 <delegate decode="bmp" encode="jxr" command="@MVDelegate@ "%i" "%i.bmp"; "@JXREncodeDelegate@" -i "%i.bmp" -o "%o.jxr"; @MVDelegate@ "%i.bmp" "%i"; @MVDelegate@ "%o.jxr" "%o""/> 98 <delegate decode="bmp" encode="wdp" command="@MVDelegate@ "%i" "%i.bmp"; "@JXREncodeDelegate@" -i "%i.bmp" -o "%o.jxr"; @MVDelegate@ "%i.bmp" "%i"; @MVDelegate@ "%o.jxr" "%o""/> 99 <delegate decode="ppt" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 100 <delegate decode="pptx" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 101 <delegate decode="ps" encode="prt" command=""@LPRDelegate@" "%i""/> 102 <delegate decode="ps:alpha" stealth="True" command=""@PSDelegate@" -sstdout=%%stderr -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""/> 103 <delegate decode="ps:cmyk" stealth="True" command=""@PSDelegate@" -sstdout=%%stderr -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""/> 104 <delegate decode="ps:color" stealth="True" command=""@PSDelegate@" -sstdout=%%stderr -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""/> 105 <delegate decode="ps" encode="eps" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSEPSDevice@" "-sOutputFile=%o" "-f%i""/> 106 <delegate decode="ps" encode="pdf" mode="bi" command=""@PSDelegate@" -sstdout=%%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=@GSPDFDevice@" "-sOutputFile=%o" "-f%i""/> 107 <delegate decode="ps" encode="print" mode="encode" command="@LPRDelegateDefault@ "%i""/> 108 <delegate decode="ps:mono" stealth="True" command=""@PSDelegate@" -sstdout=%%stderr -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""/> 109 <delegate decode="shtml" command=""@HTMLDecodeDelegate@" -U -o "%o" "%i""/> 110 <delegate decode="sid" command=""@MrSIDDecodeDelegate@" -if sid -i "%i" -of tif -o "%o" > "%u""/> 111 <delegate decode="svg" command=""@RSVGDecodeDelegate@" -o "%o" "%i""/> 112 <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"/> 113 <delegate decode="tiff" encode="launch" mode="encode" command=""@LaunchDelegate@" "%i""/> 114 <delegate decode="wdp" command="@MVDelegate@ "%i" "%i.jxr"; "@JXRDecodeDelegate@" -i "%i.jxr" -o "%o.bmp"; @MVDelegate@ "%i.jxr" "%i"; @MVDelegate@ "%o.bmp" "%o""/> 115 <delegate decode="webp" command=""@WebPDecodeDelegate@" -pam "%i" -o "%o""/> 116 <delegate decode="xls" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 117 <delegate decode="xlsx" command=""@DOCDecodeDelegate@" --convert-to pdf -outdir `dirname "%i"` "%i" 2> "%u"; @MVDelegate@ "%i.pdf" "%o""/> 118 <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""/> 119 <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""/> 120 <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""/> 121 <delegate encode="mpeg:encode" stealth="True" command=""@MPEGEncodeDelegate@" -nostdin -v -1 -i "%M%%d.jpg" "%u.%m" 2> "%u""/> 122</delegatemap> 123