BMP file type version doesn't seem to match with the documentation
Posted: 2015-05-22T07:34:05-07:00
Hello,
Been trying to save some image data using the Version 4 of the BMP format. The documentation mentions that this is the default format it will save BMP files in. (see http://www.fileformat.info/format/bmp/egff.htm ) + that the header size is always 108 bytes.
Looking at the file however, it seems that it's actually saving it in Version 5 (124 bytes) which would include the ICC Color Profile (see http://en.wikipedia.org/wiki/BMP_file_f ... _header.29 ).
I verified this by saving a file with Gimp and compare it with a hex viewer, which gives me a value of 0x6C (108 bytes) at location 0x0E in the file (the size of the header), where ImageMagick gives me 0x7C (124 bytes) at the same location.
Is the documentation incorrect (since it's saying it's saving it in v4, with a 108 byte header), or am I missing something? Is there a way to force it to save using V4 (108b) instead of V5 (124b)? Do I need to strip something with the convert tool for example?
Cheers!
Been trying to save some image data using the Version 4 of the BMP format. The documentation mentions that this is the default format it will save BMP files in. (see http://www.fileformat.info/format/bmp/egff.htm ) + that the header size is always 108 bytes.
Looking at the file however, it seems that it's actually saving it in Version 5 (124 bytes) which would include the ICC Color Profile (see http://en.wikipedia.org/wiki/BMP_file_f ... _header.29 ).
I verified this by saving a file with Gimp and compare it with a hex viewer, which gives me a value of 0x6C (108 bytes) at location 0x0E in the file (the size of the header), where ImageMagick gives me 0x7C (124 bytes) at the same location.
Is the documentation incorrect (since it's saying it's saving it in v4, with a 108 byte header), or am I missing something? Is there a way to force it to save using V4 (108b) instead of V5 (124b)? Do I need to strip something with the convert tool for example?
Cheers!