home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / ImageMagick-6.2.4 / config / delegates.xml < prev    next >
Encoding:
Extensible Markup Language  |  2007-02-16  |  7.6 KB  |  120 lines

  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 command CDATA #REQUIRED>
  11. ]>
  12. <!--
  13.   Delegate command file.
  14.  
  15.   Commands which specify
  16.  
  17.     decode="in_format" encode="out_format"
  18.  
  19.   specify the rules for converting from in_format to out_format These
  20.   rules may be used to translate directly between formats.
  21.  
  22.   Commands which specify only
  23.  
  24.     decode="in_format"
  25.  
  26.   specify the rules for converting from in_format to some format that
  27.   ImageMagick will automatically recognize. These rules are used to
  28.   decode formats.
  29.  
  30.   Commands which specify only
  31.  
  32.    encode="out_format"
  33.  
  34.   specify the rules for an "encoder" which may accept any input format.
  35.  
  36.   For delegates other than ps:alpha, ps:color, ps:cmyk, ps:mono, pcl-color,
  37.   pcl-cmyk, pcl-mono, and mpeg-encode the substitution rules are as follows:
  38.  
  39.     %i  input image filename
  40.     %o  output image filename
  41.     %u  unique temporary filename
  42.     %z  secondary unique temporary filename
  43.  
  44.     %#  input image signature
  45.     %b  image file size
  46.     %c  input image comment
  47.     %g  window group
  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.  
  58. -->
  59. <delegatemap>
  60.   <delegate decode="autotrace" stealth="True" command='"autotrace" -output-format svg -output-file "%o" "%i"' />
  61.   <delegate decode="browse" stealth="True" spawn="True" command='"htmlview" http://www.imagemagick.org/'  />
  62.   <delegate decode="cgm" command='"ralcgm" -d ps -oC < "%i" > "%o" 2>/dev/null' />
  63.   <delegate decode="crw" command='"dcraw" -3 -w -c "%i" > "%o"' />
  64.   <delegate decode="dcr" command='"dcraw" -3 -w -c "%i" > "%o"' />
  65.   <delegate decode="mrw" command='"dcraw" -3 -w -c "%i" > "%o"' />
  66.   <delegate decode="nef" command='"dcraw" -3 -w -c "%i" > "%o"' />
  67.   <delegate decode="orf" command='"dcraw" -3 -w -c "%i" > "%o"' />
  68.   <delegate decode="raf" command='"dcraw" -3 -w -c "%i" > "%o"' />
  69.   <delegate decode="x3f" command='"dcraw" -3 -w -c "%i" > "%o"' />
  70.   <delegate decode="dvi" command='"dvips" -R -q -o "%o" "%i"' />
  71.   <delegate decode="edit" stealth="True" command='"/etc/alternatives/x-terminal-emulator" -title "Edit Image Comment" -e vi "%o"' />
  72.   <delegate decode="emf" command='"wmf2eps" -o "%o" "%i"' />
  73.   <delegate decode="eps" encode="pdf" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pdfwrite" -sOutputFile="%o" -f"%i"' />
  74.   <delegate decode="eps" encode="ps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pswrite" -sOutputFile="%o" -f"%i"' />
  75.   <delegate decode="fig" command='"fig2dev" -L ps "%i" "%o"' />
  76.   <delegate decode="gplt" command='"echo" "set size 1.25,0.62
  77.     set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u"' />
  78.   <delegate decode="ps:alpha" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  79.   <delegate decode="ps:color" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  80.   <delegate decode="ps:cmyk" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  81.   <delegate decode="ps:mono" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
  82.   <delegate decode="hpg" command='"hp2xx" -q -m eps -f `basename "%o"` "%i"
  83.     mv -f `basename "%o"` "%o"' />
  84.   <delegate decode="hpgl" command='if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then
  85.     hp2xx -q -m eps -f `basename "%o"` "%i"
  86.     mv -f `basename "%o"` "%o
  87.   else
  88.     echo "You need to install hp2xx to use HPGL files with ImageMagick."
  89.     exit 1
  90.   fi' />
  91.   <delegate decode="htm" command='"html2ps" -U -o "%o" "%i"' />
  92.   <delegate decode="html" command='"html2ps" -U -o "%o" "%i"' />
  93.   <delegate decode="https" command='"@WWWDecodeDelegateDefault@" -q -O "%o" "https:%i"' />
  94.   <delegate decode="ilbm" command='"ilbmtoppm" "%i" > "%o"' />
  95.   <delegate decode="man" command='"groff" -man -Tps "%i" > "%o"' />
  96.   <delegate decode="mpeg-decode" stealth="True" command='"mpeg2decode" -q -b "%i" -f -r -o3 "%u%%d"' />
  97.   <delegate encode="mpeg-encode" stealth="True" command='"mpeg2encode" "%i" "%o"' />
  98.   <delegate decode="pcl-color" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=ppmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  99.   <delegate decode="pcl-cmyk" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=@PCLCMYKDevice@" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  100.   <delegate decode="pcl-mono" stealth="True" command='"pcl6" -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pbmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "%s"' />
  101.   <delegate decode="pdf" encode="eps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="epswrite" -sOutputFile="%o" -f"%i"' />
  102.   <delegate decode="pdf" encode="ps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pswrite" -sOutputFile="%o" -f"%i"' />
  103.   <delegate decode="pnm" encode="ilbm" mode="encode" command='"ppmtoilbm" -24if "%i" > "%o"' />
  104.   <delegate decode="pnm" encode="launch" mode="encode" command='"gimp" "%i"' />
  105.   <delegate decode="miff" encode="win" mode="encode" command='"/usr/bin/display" -immutable "%i"' />
  106.   <delegate decode="pov" command='"povray" "+i"%i"" +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n"
  107.     "convert" -concatenate "%o*.png" "%o"' />
  108.   <delegate decode="ps" encode="eps" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="epswrite" -sOutputFile="%o" -f"%i"' />
  109.   <delegate decode="ps" encode="pdf" mode="bi" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pdfwrite" -sOutputFile="%o" -f"%i"' />
  110.   <delegate decode="ps" encode="print" mode="encode" command='lpr "%i"' />
  111.   <delegate decode="rad" command='"ra_ppm" -g 1.0 "%i" "%o"' />
  112.   <delegate decode="rgba" encode="rle" mode="encode" command='"modify" -flip -size %wx%h "rgba:%i"
  113.     "rawtorle" -w %w -h %h -n 4 -o "%o" "%i"' />
  114.   <delegate decode="scan" command='"scanimage" -d "%i" > "%o"' />
  115.   <delegate decode="shtml" command='"html2ps" -U -o "%o" "%i"' />
  116.   <delegate decode="txt" encode="ps" mode="bi" command='"enscript" -o "%o" "%i"' />
  117.   <delegate decode="wmf" command='"wmf2eps" -o "%o" "%i"' />
  118.   <delegate encode="show" stealth="True" spawn="True" command='"/usr/bin/display" -immutable -delay 0 -window_group %g -title "%l of %f" "tmp:%i"' />
  119. </delegatemap>
  120.