Page 1 of 1

How to create a new delegate

Posted: 2012-03-21T12:59:11-07:00
by fabiotc
Hi,

In my system I have arbitrary types of files, like SWF, PHP, XML, etc.
And I'm wondering if I can create new delegates (in delegates.xml) for this types.

But when I add the new XML tag for the delegate, nothing happens....

I install ImageMagick in Ubuntu via apt-get.
Do I have to recompile ImageMagick when I change the delegates.xml file?


Best regards!

Re: How to create a new delegate

Posted: 2012-03-21T13:51:21-07:00
by magick
Try the explicit tag for your filename. Assume a new tag, MYTAG, placed in the delegates.xml configuration file. Now activate the delegate with, for example:
  • convert MYTAG:myimage.dat image.png

Re: How to create a new delegate

Posted: 2012-03-21T18:49:05-07:00
by anthony
For a starting point in creating external command delegates see...
IM Examples, Image File Hanlding, Delegates
http://www.imagemagick.org/Usage/files/#delegates