Page 1 of 1

Setting up ImageMagick to be used from a DLL

Posted: 2007-10-01T05:39:45-07:00
by eldiener
I am using ImageMagick from a Windows DLL, and programming it using Magick++. I am using the uninstalled version of ImageMagick, where I build it from source for my C++ compiler. I know how to setup my include and lib directory structure for my C++ compiler, so I can compile/link my DLL properly and I have had no problems with that.

At run-time I want ImageMagick to find the necessary XML configuration files, coders, and delegates. I want to keep the XML configuration files in a separate directory, if possible, from my DLL and the corresponding Imagemagick coders and delegates, which can all go in the same directory. The directory where the DLL resides is NOT the directory from where an executable is run. Finally I just need the subset of coders/delegates which support JPEG image files.

How do I setup ImageMagick so that it finds the necessary coders/delegates at run-time, and what is the minimum subset of coders/delegates I need for JPEG support ?