x/image/tiff: Unable to decode DNG files with external package #57746
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The
x/image/tiff
package is in conflict with DNG decoder packages because it registers its format oninit()
, even though TIFF files and DNG files look similar.I suppose one of these solutions must work:
x/image/tiff
should support decoding DNG filesinit()
.What did you expect to see?
I expect that I should be able to call
image.Decode()
on a DNG file and have it successfully work using a registered DNG decoder.The problem is that DNG and TIFF files look similar at the beginning, so registering both the TIFF and DNG formats will cause the TIFF to be used instead of DNG.
I'm not actually decoding TIFF files, but I'm using TIFF APIs because DNG shares some in common.
What did you see instead?
"tiff: unsupported feature: color model"
Currently it doesn't seem possible to use
image.Decode()
for DNG files.The text was updated successfully, but these errors were encountered: