Page 1 of 1

colors.xml

Posted: 2007-10-24T04:51:42-07:00
by cd_tim
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

Re: colors.xml

Posted: 2007-10-24T06:26:04-07:00
by magick
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.

Re: colors.xml

Posted: 2007-10-24T07:50:06-07:00
by cd_tim
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'".

Re: colors.xml

Posted: 2007-10-24T07:56:18-07:00
by magick
You could try ImageMagick 6.3.6-3 the current release. Also the exception should just be a warning which can safely be ignored.