How to create a new delegate

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fabiotc
Posts: 1
Joined: 2012-03-21T06:56:43-07:00
Authentication code: 8675308

How to create a new delegate

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How to create a new delegate

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to create a new delegate

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply