delegates.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0"?>
  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>
  12. ]>
  13. <!--
  14. Delegate command file.
  15. Commands which specify
  16. decode="in_format" encode="out_format"
  17. specify the rules for converting from in_format to out_format These
  18. rules may be used to translate directly between formats.
  19. Commands which specify only
  20. decode="in_format"
  21. specify the rules for converting from in_format to some format that
  22. ImageMagick will automatically recognize. These rules are used to
  23. decode formats.
  24. Commands which specify only
  25. encode="out_format"
  26. specify the rules for an "encoder" which may accept any input format.
  27. For delegates other than ps:alpha, ps:color, ps:mono, and mpeg-encode the
  28. substitution rules are as follows:
  29. %i input image filename
  30. %o output image filename
  31. %u unique temporary filename
  32. %z secondary unique temporary filename
  33. %# input image signature
  34. %b image file size
  35. %c input image comment
  36. %g window group
  37. %h image rows (height)
  38. %k input image number colors
  39. %m input image format
  40. %p page number
  41. %q input image depth
  42. "%s" scene number
  43. %w image columns (width)
  44. %x input image x resolution
  45. %y input image y resolution
  46. -->
  47. <delegatemap>
  48. <delegate decode="autotrace" stealth="True" command="autotrace -output-format svg -output-file &quot;%o&quot; &quot;%i&quot;"/>
  49. <delegate decode="bmp" encode="launch" mode="encode" command="imdisplay.exe &quot;%i.&quot;"/>
  50. <delegate decode="bmp" encode="win" mode="encode" command="imdisplay.exe &quot;%i.&quot;"/>
  51. <delegate decode="browse" restrain="True" spawn="True" command="cmd /C start http://www.imagemagick.org/"/>
  52. <delegate decode="cgm" thread-support="False" command="ralcgm -d ps &quot;%i.&quot; &quot;%o.&quot; &quot;%u.&quot;"/>
  53. <delegate decode="compress" restrain="True" command="|uncompress -c &quot;%i&quot;"/>
  54. <delegate decode="miff" encode="compress" restrain="True" command="|compress -c &gt; &quot;%o&quot;"/>
  55. <delegate decode="dng:decode" stealth="True" command="dcraw.exe -4 -w -O &quot;%u.ppm&quot; &quot;%i&quot;"/>
  56. <delegate decode="dot" command="dot -Tps &quot;%i&quot; -o &quot;%o&quot;"/>
  57. <delegate decode="dvi" command="dvips -q -o &quot;%o&quot; &quot;%i&quot;"/>
  58. <delegate decode="edit" restrain="True" command="notepad &quot;%o&quot;"/>
  59. <delegate decode="eps" encode="pdf" mode="bi" command="&quot;@PSDelegate@&quot; -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dEPSCrop -sDEVICE=pdfwrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  60. <delegate decode="eps" encode="ps" mode="bi" command="&quot;@PSDelegate@&quot; -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dEPSCrop -dAlignToPixels=0 -sDEVICE=pswrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  61. <delegate decode="fig" command="/usr/X11R6/bin/fig2dev -L ps &quot;%i&quot; &quot;%o&quot;"/>
  62. <delegate decode="gplt" command="/bin/echo &quot;set size 1.25,0.62 set terminal postscript portrait color solid; set output &quot;%o&quot;; load &quot;%i&quot;&quot; &gt; &quot;%u&quot;;gnuplot %u"/>
  63. <delegate decode="hpgl" command="hp2xx -q -m eps -f &quot;%o&quot; &quot;%i&quot;"/>
  64. <delegate decode="htm" command="html2ps -U -o &quot;%o&quot; &quot;%i&quot;"/>
  65. <delegate decode="html" command="html2ps -U -o &quot;%o&quot; &quot;%i&quot;"/>
  66. <delegate decode="ilbm" command="ilbmtoppm &quot;%i&quot; &gt; &quot;%o&quot;"/>
  67. <delegate decode="man" command="groff -man -Tps &quot;%i&quot; &gt; &quot;%o&quot;"/>
  68. <delegate decode="mpeg:decode" command="&quot;ffmpeg.exe&quot; -v -1 -vframes %S -i &quot;%i&quot; -vcodec pam -an -f rawvideo -y &quot;%u.pam&quot;"/>
  69. <delegate encode="mpeg:encode" stealth="True" command="&quot;ffmpeg.exe&quot; -v -1 -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i &quot;%M%%d.jpg&quot; &quot;%u.%m&quot;"/>
  70. <delegate decode="pcl:color" restrain="True" command="&quot;pcl6.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  71. <delegate decode="pcl:cmyk" restrain="True" command="&quot;pcl6.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pamcmyk32&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  72. <delegate decode="pcl:mono" restrain="True" command="&quot;pcl6.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  73. <delegate decode="pdf" encode="eps" mode="bi" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -sDEVICE=epswrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  74. <delegate decode="pdf" encode="ps" mode="bi" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pswrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  75. <delegate decode="pgp" command="pgpv -fq &quot;%i&quot;"/>
  76. <delegate decode="pnm" encode="ilbm" mode="encode" command="ppmtoilbm -24if &quot;%i&quot; &gt; &quot;%o&quot;"/>
  77. <delegate decode="pov" command="povray &quot;+i&quot;%i&quot;&quot; -D0 +o&quot;%o&quot; +fn%q +w%w +h%h +a -q9 -kfi&quot;%s&quot; -kff&quot;%n&quot; convert -concatenate %o*.png &quot;%o&quot;"/>
  78. <delegate decode="ps" encode="eps" mode="bi" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=epswrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  79. <delegate decode="ps" encode="pdf" mode="bi" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pdfwrite &quot;-sOutputFile=%o&quot; -- &quot;%i&quot;"/>
  80. <delegate decode="ps:alpha" restrain="True" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pngalpha&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
  81. <delegate decode="ps:color" restrain="True" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
  82. <delegate decode="ps:cmyk" restrain="True" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pamcmyk32&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
  83. <delegate decode="ps:mono" restrain="True" command="&quot;@PSDelegate@&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot; &quot;-f%s&quot;"/>
  84. <delegate decode="hpg" command="hp2xx -q -m eps -f &quot;%o&quot; &quot;%i&quot;"/>
  85. <delegate decode="rad" command="ra_ppm -g 1.0 &quot;%i&quot; &quot;%o&quot;"/>
  86. <delegate decode="rgba" encode="rle" mode="encode" command="pnmtorle -o &quot;%o&quot; -v &quot;%i&quot;"/>
  87. <delegate decode="scan" command="scanimage -d &quot;%i&quot; &gt; &quot;%o&quot;"/>
  88. <delegate decode="shtml" command="html2ps -U -o &quot;%o&quot; &quot;%i&quot;"/>
  89. <delegate decode="sid" command="mrsidgeodecode -if sid -i &quot;%i&quot; -of tif -o &quot;%o&quot; &gt; &quot;%u&quot;"/>
  90. <delegate decode="miff" encode="show" restrain="True" spawn="True" command="imdisplay.exe -immutable -window-group %g -title &quot;%l of %f&quot; &quot;ephemeral:%o&quot;"/>
  91. <delegate decode="txt" encode="ps" mode="bi" command="enscript -o &quot;%o&quot; &quot;%i&quot;"/>
  92. <delegate decode="xcf" command="xcftopnm &quot;%i&quot; &gt; &quot;%o&quot;"/>
  93. <delegate decode="xps:color" restrain="True" command="&quot;gxps.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  94. <delegate decode="xps:cmyk" restrain="True" command="&quot;gxps.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pamcmyk32&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  95. <delegate decode="xps:mono" restrain="True" command="&quot;gxps.exe&quot; -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;%s&quot;"/>
  96. </delegatemap>