Skip to main content
Participating Frequently
May 26, 2016
Question

P: "There was an error parsing the file" when attempting to convert SRW images fromSamsung models

  • May 26, 2016
  • 12 replies
  • 2122 views

DNG converter says "There was an error parsing the file" when attempting to convert SRW images from some Samsung models after metadata has been edited with ExifTool.  Here are 3 sample images with this problem:

http://130.15.24.88/~phil/tmp/SamsungNX2000.srw
http://130.15.24.88/~phil/tmp/SamsungNX300.srw
http://130.15.24.88/~phil/tmp/SamsungNX30.srw

Also, the following image is not recognized by the converter after a similar edit with ExifTool:

http://130.15.24.88/~phil/tmp/SamsungEK-GN120.srw

This topic has been closed for replies.

12 replies

Participating Frequently
August 18, 2016
Wow.  That's just wrong.  I suggest you ignore what Samsung is telling you and decode the maker notes properly.
ccastleb
Adobe Employee
Adobe Employee
August 11, 2016
Hi Phil,

Another bit of information from my colleague.

"That's not what we were told by Samsung.
The private MakerNote really is a binary blob and they gave us specific offsets to use to extract their data.
We've never had any problems with Samsung firmware updates.
External tools should never rearrange private MakerNote data for this reason."
Participating Frequently
August 10, 2016
Hi Chris,

Thanks for replying.

Yes, your colleague is correct, but the maker notes are stored in a TIFF IFD format.  The information is all still there if the IFD is parsed properly.  You can't just look at the maker notes as a black box of binary data if you expect to extract information consistently.  If you do this, then your code will easily break with camera firmware updates (among other things).
ccastleb
Adobe Employee
Adobe Employee
August 9, 2016
Hi Phil,

Following is a note from my colleague who has been investigating this issue.

"...the original sample file shows MakerNote tag length is 268182  bytes.  When I run exiftool on the sample file, the result has MakerNote tag length 268100, which is 82 bytes shorter.  Furthermore, when I diff the contents of the MakerNote tags (before/after), I see very different values."

- Chris
Participating Frequently
July 28, 2016
Sorry for the delay.  Yes.  ExifTool rewrites the MakerNote tag.  It uses a standard TIFF format so the information may move around when rewritten, but all of the same information is there.
ccastleb
Adobe Employee
Adobe Employee
June 20, 2016
Hi Phil,

Apologies for the delay.

As far as we have been able to determine, exiftool appears to be modifying the private MakerNote tag which causes Camera Raw to reject the files.

Can you confirm whether exiftool is inadvertently changing the MakerNote tag?

Thanks,

- Chris
Participating Frequently
June 13, 2016
Any News?
ccastleb
Adobe Employee
Adobe Employee
May 27, 2016
Bug 4158567 for your reference.
ccastleb
Adobe Employee
Adobe Employee
May 27, 2016
Hi Phil and Steve, 

I can reproduce this. We will investigate and follow up.

Thanks,

- Chris
Participating Frequently
May 26, 2016
Also, it is worth noting that this problem does not occur for SRW images from the following models: EX1, EX2F, NX1, NX10, NX100, NX11, NX20, NX200, NX3000, NX500, NXmini and WB2000

- Phil