How to prevent an existing coder to grab a file
Posted: 2010-12-23T03:59:07-07:00
Hello,
I have two problems with the setup of IM regarding coders/delegates:
I want to process nef-files with my own delegate, not the dng-delegate. The only way to prevent the dng-delegate to take control is to redefine the dng-decoder in delegates.xml (but then I loose the ability to process real dng files).
The same holds true with a special image-format which is xml-based. IM always identifies this as svg (and processing fails). I have added a type in mime.xml, an entry in magic.xml and an entry in delegates.xml. In my former versions of IM (6.5.4), this was enough and IM used the defined delegate. My current version (6.6.1) only uses the delegate if I give the image-type explicitly (type:filename-notation). But this is no workaround e.g. for running montage on a directory with a lot of different image-types.
Is this a bug or is there a way to tell IM not to use any predefined coders, but just to use the defined delegate? Probably the real problem is to tell IM the order in which to "guess" the image-type.
Thanks, Bernhard
I have two problems with the setup of IM regarding coders/delegates:
I want to process nef-files with my own delegate, not the dng-delegate. The only way to prevent the dng-delegate to take control is to redefine the dng-decoder in delegates.xml (but then I loose the ability to process real dng files).
The same holds true with a special image-format which is xml-based. IM always identifies this as svg (and processing fails). I have added a type in mime.xml, an entry in magic.xml and an entry in delegates.xml. In my former versions of IM (6.5.4), this was enough and IM used the defined delegate. My current version (6.6.1) only uses the delegate if I give the image-type explicitly (type:filename-notation). But this is no workaround e.g. for running montage on a directory with a lot of different image-types.
Is this a bug or is there a way to tell IM not to use any predefined coders, but just to use the defined delegate? Probably the real problem is to tell IM the order in which to "guess" the image-type.
Thanks, Bernhard