Thanks! I found the responsible code.
ImageMagick 6.9.9-28:
Code: Select all
typedef enum
{
UndefinedColorspace,
RGBColorspace, /* Linear RGB colorspace */
GRAYColorspace, /* greyscale (linear) image (faked 1 channel) */
TransparentColorspace,
[...]
HCLpColorspace,
YDbDrColorspace,
xyYColorspace,
sGRAYColorspace
} ColorspaceType;
pecl-imagick latest version:
Code: Select all
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_UNDEFINED", UndefinedColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_RGB", RGBColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_GRAY", GRAYColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_TRANSPARENT", TransparentColorspace);
[...]
#if MagickLibVersion >= 0x686
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_LCHAB", LCHabColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_LCHUV", LCHuvColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_SCRGB", scRGBColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_HSI", HSIColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_HSV", HSVColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_HCLP", HCLpColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_YDBDR", YDbDrColorspace);
#endif
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_REC601YCBCR", Rec601YCbCrColorspace);
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_REC709YCBCR", Rec709YCbCrColorspace);
#if MagickLibVersion >= 0x690
IMAGICK_REGISTER_CONST_LONG("COLORSPACE_XYY", xyYColorspace);
#endif
Argh! What an architecture - I mean manually following constants from an upstream project ... there has to be a better way.
Thanks again for your help. Filing bug reports, now ...
Patrick