colors.xml

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
cd_tim

colors.xml

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: colors.xml

Post 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.
cd_tim

Re: colors.xml

Post 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'".
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: colors.xml

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