drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.56k stars 480 forks source link

Reading incomplete date tags from iphone #469

Closed reteshg closed 4 years ago

reteshg commented 4 years ago

(Please include as much information as possible, and attach a sample image if possible.) I am trying to extract Date values from photos taken via iPhone. The images have been downloaded on my desktop.

downloaded Image are showing 3 dates:

Created: Wednesday, March 4, 2020 at 9:07 PM Modified: Wednesday, March 4, 2020 at 9:07 PM Content created: Thursday, March 5, 2020 at 7:37 AM

However, I am only able to get "Content created" values and not Created or Modified.

drewnoakes commented 4 years ago

Without a sample image we may not be able to help.

What is the file format?

downloaded Image are showing 3 dates:

Where do you see those dates?

reteshg commented 4 years ago

![Uploading IMG_4646.JPG…]()

Hi @drewnoakes please find the attached image.

Format is JPG I am seeing the dates on my Mac Finder, attached screenshot of the same.

Screen Shot 2020-04-14 at 2 04 13 AM
reteshg commented 4 years ago

Hi Drewnoakes,

Please find attached sample image. The format is JPG, and I am getting these dates on my Mac Finder, attached screenshot for this also.

Hope this helps. IMG_4646

Nadahar commented 4 years ago

Strictly speaking, the first two dates aren't metadata in the file, they are information gotten from the local file system. If you copy or move these two another disk, they will probably update. If you download them, or send them as an attachment, they will be set to the time when they were stored on the local disk.

I'm not sure if Metadata-extractor shows filesystem dates or not, but this is what this issue seems to be about.

reteshg commented 4 years ago

Hi Drewnoakes,

Thanks a lot for highlighting this. I was under the impression that these dates are part of metadata and not system dates. Your explanation is helpful and thanks a lot for this library!

On Tue, Apr 14, 2020 at 7:06 AM Nadar notifications@github.com wrote:

Strictly speaking, the first two dates aren't metadata in the file, they are information gotten from the local file system. If you copy or move these two another disk, they will probably update. If you download them, or send them as an attachment, they will be set to the time when they were stored on the local disk.

I'm not sure if Metadata-extractor shows filesystem dates or not, but this is what this issue seems to be about.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/drewnoakes/metadata-extractor/issues/469#issuecomment-613375924, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJKV5O3KEAWU7363EUDZYALRMQ7TPANCNFSM4MEQUQQA .

paperboyo commented 4 years ago

I'm not sure if Metadata-extractor shows filesystem dates or not

https://github.com/drewnoakes/metadata-extractor/blob/master/Source/com/drew/metadata/file/FileSystemDirectory.java#L44 ?

Nadahar commented 4 years ago

@paperboyo Let me correct myself: I'm not sure if Metadata-extractor always shows filesystem dates, or what rules/conditions that might determine this.

The initial report in this issue indicates that these weren't shown in this case, although it's unclear to me exactly how the information was retrieved from Metadata-extractor.

My point was merely that the "missing" dates seems to stem from the filesystem, not the analysis of the file itself.

paperboyo commented 4 years ago

Sure, sure! Also, not all filesystem dates seems to be available in this directory.

drewnoakes commented 4 years ago

File system metadata is only included when you pass a path string, not when you pass a stream

@reteshg I don't think there's any action to take here. Let me know if you disagree.