Skip to content

HasAlpha property set incorrectly on TIFF sRGB file #1429

Closed
@pablojmp

Description

@pablojmp

Magick.NET version

Magick.NET-Q8-x64 13.1.2

Environment (Operating system, version and so on)

Windows 10 22H2 Build 19045.3324

Description

TIFF file with sRGB colorspace fails to detect the alpha channel. It was correctly detected on version 12.3.0

Also, MagickImage.ChannelCount and MagickImage.Channels.Count are not equal for this sample

The file: 2001022-fullcolor.zip

Steps to Reproduce

    using ImageMagick; 
    using System.Linq;

    static void Main()
    {
      using(var lIM = new MagickImage(testFile))
      {
        var lHasAlpha = lIM.HasAlpha;
        var lChannels_Count = lIM.Channels.Count();
        var lChannelsCount = lIM.ChannelCount;
      }
    }

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