Skip to content

Support BMP V4/V5 color space fields#2771

Open
telecos wants to merge 5 commits intoimage-rs:mainfrom
telecos:feature/support-v4-color
Open

Support BMP V4/V5 color space fields#2771
telecos wants to merge 5 commits intoimage-rs:mainfrom
telecos:feature/support-v4-color

Conversation

@telecos
Copy link
Contributor

@telecos telecos commented Feb 15, 2026

This PR is extending the BMP decoder to parse color space information from BITMAPV4HEADER and BITMAPV5HEADER structures. Previously, only the PROFILE_EMBEDDED ICC path in V5 headers was handled; this PR adds support for the bV4CSType / bV5CSType field and its associated data across all V4/V5 color space types.

The parsed parameters are used to create an equivalent ICC profile which can be exposed through existing icc_profile() method, removing thus the need to expose the bmp-specific V4/V5 parameters.

This work is covering discrepancy number 8 from #2747

@telecos telecos force-pushed the feature/support-v4-color branch from f0e8931 to b38ec3a Compare February 15, 2026 01:06
@telecos telecos marked this pull request as ready for review February 15, 2026 01:27
@telecos telecos force-pushed the feature/support-v4-color branch from cf426f9 to 7f32d21 Compare February 26, 2026 17:46
@telecos telecos changed the title Expose BMP V4/V5 color space fields Support BMP V4/V5 color space fields Feb 26, 2026
@telecos telecos force-pushed the feature/support-v4-color branch from f4350df to 4ec15b3 Compare February 26, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant