Page 1 of 1
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?
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'.
It threw a warning but still created a red red.png image file as expected.
Judging from the version.h file, we are using version 18.104.22.168.
The ImageMagick libraries are throwing an exception stating: "ImageMagick: UnableToOpenConfigureFile `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.