Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Profile details are null if string tags are type 'mluc' instead of 'desc' #1509

Open
bfssamy opened this issue Jan 4, 2024 · 2 comments

Comments

@bfssamy
Copy link

bfssamy commented Jan 4, 2024

Magick.NET version

13.5.0 Magick.NET.Core

Environment (Operating system, version and so on)

Windows 10/11

Description

ColorProfileData is not correctly populated when type for string tags is 'mluc' rather than 'desc' or 'text'. This is BigEndianUnicode versions of the string which can extend to multiple string for multiple languages.

I have a code fix to return the strings in the first language.

Steps to Reproduce

Any iPhone photo with Display P3 color profile embedded will not populate the data in MagickImage.GetColorProfile() correctly. Apple is using the 'mluc' type for the embedded profile description. This type was introduced in the 2022 version of the ICC 4 spec.

@dlemstra
Copy link
Owner

dlemstra commented Jan 5, 2024

Can you share a file that contains this color profile type? And feel free to create a pull request that resolves this issue.

@bfssamy
Copy link
Author

bfssamy commented Jan 5, 2024 via email

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

No branches or pull requests

2 participants