ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: ahamel on June 04, 2019, 03:39:47 AM

Title: [BUG] Nikon Z7 NEF problem - truncated file (?)
Post by: ahamel on June 04, 2019, 03:39:47 AM
Hi,

After executing exiftool -tagsFromFile anImage.jpg "-all:all>all:all" DSC_0241.NEF or simply  exiftool -tagsFromFile anImage.jpg DSC_0241.NEF, the DSC_0241.NEF file change from 51,4 Mo (53 944 350 octets) to 51,2 Mo (53 753 238 octets).

It is no longer possible to open the file in Adobe CameraRAW.

Test performed with versions 11.30 and 11.48 under Windows 10 x64.

Regards,
A. HAMEL
Title: Re: [BUG] Nikon Z7 NEF problem - truncated file (?)
Post by: Phil Harvey on June 04, 2019, 07:18:41 AM
Right.  The command you used is very dangerous.  See FAQ 8 (https://exiftool.org/faq.html#Q8) for some details, but your command also has the possibility of overwriting the maker notes in the NEF, which could remove some essential information.

What exactly are you trying to accomplish with your command?  You should narrow it down to copy just the information you want.

- Phil
Title: Re: [BUG] Nikon Z7 NEF problem - truncated file (?)
Post by: ahamel on June 05, 2019, 12:53:07 PM
Hi !

Thank you very much for your answer. I only need to copy the GPS and IPTC data. The
exiftool -tagsFromFile image.jpg -gps:all -iptc:all image.nef
command works perfectly and the modified NEF files open well in Adobe CameraRAW (Test performed with versions 11.30 and 11.48 under Windows 10 x64.).

Rgds,
A. HAMEL