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

DNG Grayscale file not supported. (only single color channel?) [error/dng.c/ReadDNGImage/572] #1575

Closed
ClenonWolf opened this issue May 22, 2023 · 2 comments

Comments

@ClenonWolf
Copy link

ClenonWolf commented May 22, 2023

System information:

  • Windows OS version: 10 22H2 19045.2865
  • ImageGlass version: 8.8.4.4 x64

To Reproduce

Steps to reproduce the behavior:

  1. (Scan file in vuescan using: Make Gray from: Auto)
  2. Open DNG file (In my case scanned image from vuescan. Please read "Additional context")

Actual behavior:

I've scanned images in auto grayscale in the raw DNG format (seemingly only giving one color channel) and when I try to open it in ImageGlass it gives this Error:
Magick.NET-Q16-HDRI-OpenMP-x64: No error '...' @ error/dng.c/ReadDNGImage/572
image

At first I suspected the scanning software generating broken files, but they seem to open perfectly fine in Photoshop or Lightroom.
Color images in the same format from the same scanning software open fine. (Including grayscale from the r/g/b/infrared channels)

Expected behavior:

File should open normally.

Screenshots:

Color Scan:
RAW File
Screenshot_59

Grayscale Scan:
RAW File
Screenshot_60

The issue seems to only appear with the Grayscale setting set to Auto:
image

Folder with more example DNG files including separate color, auto grayscale and grayscale from a single color channel.
Auto Grayscale DNG ImageGlass Issue.zip

Additional context:

Halfway into writing this issue, I found out the cause for this error was the Auto setting. Grayscale from manually selected color channels works fine. So it's probably a rather niche problem and low priority.

I've investigated this to some extend beforehand and there seem to be some differences in the Metadata. Namely the Auto settings one seemingly only having one color channel:
Auto Grayscale:
Screenshot_62
image

Grayscale from blue:
Screenshot_63
image

Sorry if this is slightly unstructured. I was trying to investigate myself before posting, adding information as I was writing.

@d2phap
Copy link
Owner

d2phap commented May 23, 2023

Thanks @ClenonWolf for the details!
I will report this to MagickNET fork because the error comes from MagickNET library.

@d2phap
Copy link
Owner

d2phap commented Jun 7, 2023

This issue is fixed in v8.9

@d2phap d2phap closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants