What are the minimum required tags for a DNG file?
This is a technical question, that would be best answered by an Adobe employee (not other Adobe product users), preferably one who worked on creating the official DNG specification in the first place.
For a the simplest possible DNG file (a monochrome image), what are the minimum required tags?
Obviously it needs these 2 tags in IFD0: 0x014A (SubIFDs) and 0xC612 (DNGVersion).
The first of these provides a file offset for the raw subIFD.
The second one tells the reader that the file is a DNG file, and what version of DNG it is.
Though IFD0 itself can contain a low resolution preview image, I don't think it needs to to fit the official DNG specs (but I might be mistaken about this).
Then in the raw IFD one obviously needs to have these tags:
0x100 image width
0x101 image height
0x102 bit depth (this is usually 16 bits per channel)
0x103 compression (which must be either uncompressed, or compressed in a way allowed by the DNG specs)
0x106 photometric interpretation (which must be 34892 for linear raw, and it must be linear raw for monochrome)
0x111 strip offsets (this points to the raw image data in the file)
0x115 samples per pixel (this tells you the number of channels the image has, and must be 1 for monochrome)
0x116 rows per strip (which is equal to the image height if the whole image is a single strip)
0x117 strip byte count (which is equal to the total number of bytes in the image if the image is a single strip)
Ok, those are obviously required, but are there any others that are also required? For a simple monochrome image I can obviously skip the tags relating to color space, and white balance, such as the xyz coordinates of the white point and the illuminant standard. However I think there may be more required tags, even for a simple monochrome image. The reason I say that is this. I wrote a program that generates monochrome DNG test images. These images have the 2 tags I mentioned in IFD0, and the 9 tags I mentioned in the raw IFD.
Now these test DNG images I created are loaded perfectly fine in the 3rd party software called DCRaw (which successfully converts them to standard TIF or PPM images). So at least DCRaw thinks the DNG files in question are up to spec, but what about 1st party Adobe software? Well that's where I have the problem. The problem happens when I try to load the test DNG images into Photoshop via the Adobe Camera Raw plugin (which comes with Photoshop). By the way, I don't know if it matters, but I'm using Photoshop Elements (not standard Photoshop). The error it gives me unfortunately is very generic. It doesn't tell me at all what is wrong with my DNG file. It doesn't say something like "the DNG file is missing tag xxxxxx", or anything like that. So I have no way of knowing what is wrong with my DNG test files. All it says is:
Photoshop Elements cannot open this file.
If you are attempting to open a raw file from a
digital camera, make sure you have the latest
Camera Raw update installed via Help > Updates...
If the problem persists, visit the following
link for more information
http://www.adobe.com/go/kb407111
So please, if you are an Adobe employee, please tell me what is wrong with the way I've been generating these DNG test files, if in fact I'm not using enough tags to make the file a valid DNG file. And also tell me please, what the minimum requirements are, in terms of which tags are the bare requirements for having a valid DNG file.
