I tried to read exif metadata from NEF files to no avail. If I create an instance of MagickImage and load it with a NEF file stream, it interprets it as TIFF with wrong width/height dimensions and GetExifProfile() returns null.
Should I do anything differently? I tried copying dcraw.exe and it did not have any effect.
Let me know if you need a NEF file?
Comments: To make sure it works with a filestream you will need to 'force' the format with the MagickReadSettings argument. Set format to Nef to force it to read it as a NEF file. It looks like the NEF file has the same starting bytes as TIFF file and that is why it is recognized like that.
Should I do anything differently? I tried copying dcraw.exe and it did not have any effect.
Let me know if you need a NEF file?
Comments: To make sure it works with a filestream you will need to 'force' the format with the MagickReadSettings argument. Set format to Nef to force it to read it as a NEF file. It looks like the NEF file has the same starting bytes as TIFF file and that is why it is recognized like that.