Closed sebras closed 4 years ago
Image Magick and Graphics Magick also uses those bogus values (LCS_GM_BUSINESS == 1
, LCS_GM_GRAPHICS == 2
, LCS_GM_IMAGES == 4
and LCS_GM_ABS_COLORIMETRIC == 8
As does GIMP..!
Does this mean that the bug is actually in the specification?
I think it must be an error in the WMF spec. The documentation for BITMAPV5HEADER is what I'm using.
I think it must be an error in the WMF spec.
Yes, the spec you pointed to as well as all these other pieces of software seems to indicate the same. I have since found an unofficial specifcation that also matches the specification you mention. That unofficial spec does document the Huffman1D, RLE24 and Alphabitfields compression methods though. :)
The documentation for BITMAPV5HEADER is what I'm using.
Thanks for pointing me to that specification. I had yet to find it.
I'll close this issue now, since it was apparently me that misunderstood things.
I'm confused by the value bmpsuite assigns to the
Intent
field inBitmapV5GHeader
. It is set to4
and the comment implies that this meansPerceptual
. Did you mixed upIntent
withGamutMappingIntent
where4
meansLCS_GM_IMAGES
?As I read the specification
Intent
must be set according toLogicalColorSpace
for which the valid values are:0x00000000
forLCS_CALIBRATED_RGB
0x73524742
forLCS_sRGB
0x57696E20
forLCS_WINDOWS_COLOR_SPACE
And since you are using sRGB Chromaticity values perhaps
Intent
is better set toLCS_sRGB
?