Author Topic: corrupt file  (Read 1220 times)

Offline Martin_

  • Newcomer
  • *
  • Posts: 1
    • View Profile
corrupt file
« on: July 18, 2023, 03:03:28 PM »
Hi, I returned to a folder that I was culling this morning and saw that one file preview was displaying a big yellow box rather than the image.

The file is apparantly corrupt. Something is strange though- the photos in the directory are all from March 2023, and I rename all images based on image date (YYYYMMDD_HHMMSS) - so this file stands out because it is dated September 2022.

Code: [Select]
martin@Martins-Mac-mini 2023-03 Istanbul % ls -l | head -5
total 22871520
-rw-------@ 1 martin  staff     159616 28 Mar 00:43 0db9810c-3fca-4d6c-98a5-260d28808a61.jpg
[b]-rwx------@ 1 martin  staff   19681040 26 Mar 20:41 20220902_122626.NEF[/b]
-rw-------@ 1 martin  staff  158782828 14 Jul 22:55 20230323_002138.MOV

So I have a corrupt 19MB raw file that seemingly doesn't belong in this directory, but it was not there this morning.

Code: [Select]
file 20220902_122626.NEF
20220902_122626.NEF: data

When I look at the strings within the file..

Code: [Select]
strings 20220902_122626.NEF | head -25
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.6.0">
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about=""
    xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
    xmlns:xmp="http://ns.adobe.com/xap/1.0/"
    xmlns:photomechanic="http://ns.camerabits.com/photomechanic/1.0/"
    xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
   photoshop:DateCreated="2022-09-02T12:26:26.20+01:00"
   xmp:CreateDate="2022-09-02T12:26:26.20+01:00"
   xmp:Rating="1"
   photomechanic:ColorClass="0"
   photomechanic:Tagged="False"
   photomechanic:Prefs="0:0:1:004745"
   photomechanic:PMVersion="PM6"
   aux:ImageNumber="4745"/>
 </rdf:RDF>
</x:xmpmeta>
2023:03:24 11:48:09
2023:03:24 11:48:09
ASCII
                                   
Nikon
0210
0200
RAW   
My assumption is that photomechanic has embedded some metadata into the image, resulting in a corrupted Nikon raw file.  I can now see where the 2022 date came from (but not why, not what changed the name of the file).. the later timestamp of 2023:03:24 11:48:09 is within the period of this photo set.

For reference, if I look at the strings in a normal. non-corrupt NEF file it is..:

Code: [Select]
strings 20230323_192416.NEF | head -25
NIKON CORPORATION
NIKON D7000
Ver.1.05
2023:03:23 19:24:16
                                   
                                                     
2023:03:23 19:24:16
2023:03:23 19:24:16
2023:03:23 19:24:16
Nikon
0210
0200
RAW   
AUTO1       
AF-A 
NORMAL     
                   
6488493
0100
0100STANDARD
STANDARD
0100
0101#
0100
0220

In both cases, this is then followed by various binary content.

Offline ahoward

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 973
    • View Profile
Re: corrupt file
« Reply #1 on: July 18, 2023, 04:31:31 PM »
Please post the file. If it is larger than the forum will allow or you would prefer not to share the file publicly, send it to support@camerabits.com or post the file to a file hosting site and email the link or post it in the thread.