jsummers / bmpsuite

A set of Windows BMP image files, for testing purposes
https://entropymine.com/jason/bmpsuite/
GNU General Public License v3.0
56 stars 16 forks source link

Offset to color profile incorrect? #12

Closed sebras closed 4 years ago

sebras commented 4 years ago

I'm confused by bmpsuite subtracting 14 from the offset to the profile data. Why is this done?

As far as I can understand the specification ProfileData should simply be a plain offset, not modified.

jsummers commented 4 years ago

ProfileData offset is measured from the start of BitmapV5Header. In BMP file format, BitmapV5Header starts at offset 14, following BITMAPFILEHEADER.

sebras commented 4 years ago

ProfileData offset is measured from the start of BitmapV5Header. In BMP file format, BitmapV5Header starts at offset 14, following BITMAPFILEHEADER.

Ah, that pesky BITMAPFILEHEADER! Yes, that makes sense. Thanks for explaining, I'll close this issue now. :)