Skip to content

GrayScale Image with high dynamic range being treated as binary #2242

@jmilbrandt2

Description

@jmilbrandt2

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

All

Other ImageSharp packages and versions

All

Environment (Operating system, version and so on)

Windows

.NET Framework version

.NET Standard 2.0

Description

byte[] data1 = File.ReadAllBytes("fileinquestion");
SixLabors.ImageSharp.Image img = SixLabors.ImageSharp.Image.Load(data1, decoder);

Steps to Reproduce

very easy just load the image and you will see it is not treated as grayscale even though in Photoshop and in Java Library ImageJ it is clearly GrayScale

Images

https://stackoverflow.com/questions/73860945/image-not-viewable-using-c-sharp-libraries-viewable-in-imagej-or-imagej-online-h/73861281?noredirect=1#comment130421416_73861281

https://drive.google.com/file/d/16Xotc-2CJ6HkEJDysfKBkjClkU1OGiyQ/view?usp=sharing
OU7YE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions