Setting up ImageMagick to be used from a DLL

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
eldiener

Setting up ImageMagick to be used from a DLL

Post 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 ?
Post Reply