I'm currently working on a Visual Studio solution that uses ImageMagick. Currently, if colors.xml is not present in the Debug directory, ImageMagick will throw an error when I try to use a colour other that black. Is it possible to build the ImageMagick DLLs such that colors.xml is not required to be present in the application directory?
Thanks,
Tim
colors.xml
Re: colors.xml
Are you using a modern version of ImageMagick? ImageMagick keeps an internal color table in case it cannot find the external colors.xml file. We tried the current release after removing colors.xml and got:
- convert -size 100x100 xc:red red.png
convert: unable to access configure file `colors.xml'.
Re: colors.xml
Judging from the version.h file, we are using version 6.2.9.3.
The ImageMagick libraries are throwing an exception stating: "ImageMagick: UnableToOpenConfigureFile `colors.xml'".
The ImageMagick libraries are throwing an exception stating: "ImageMagick: UnableToOpenConfigureFile `colors.xml'".
Re: colors.xml
You could try ImageMagick 6.3.6-3 the current release. Also the exception should just be a warning which can safely be ignored.