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] #1391

Closed
d2phap opened this issue May 25, 2023 · 1 comment
Milestone

Comments

@d2phap
Copy link

d2phap commented May 25, 2023

Magick.NET version

13.1.2

Environment (Operating system, version and so on)

Windows 11 22H2

Description

Reported at d2phap/ImageGlass#1575 with sample files.

I also tried opening with MagickViewer, it shows the same issue:
image

Steps to Reproduce

Copied from d2phap/ImageGlass#1575:

  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)

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

@dlemstra
Copy link
Owner

Turns out it was quite easy to add support for this. You will be able to read those images with the next release.

@dlemstra dlemstra added this to the 13.1.3 milestone May 27, 2023
@dlemstra dlemstra closed this as completed Jun 5, 2023
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