Skip to content

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

@bfssamy

Description

@bfssamy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions