Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Improve exif parsing #1066

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Improve exif parsing #1066

merged 9 commits into from
Apr 17, 2023

Conversation

abhinavkgrd
Copy link
Member

@abhinavkgrd abhinavkgrd commented Apr 17, 2023

Description

  • extract the XMP DateCreated tag and use it as a fallback in case other DateTimeOriginal tag is missing

  • Priortized XMP DateCreated over EXIF DateTimeDigizited (in code referred as CreateDate by the lib)

  • There is an issue in the EXIF library where trying to just pick DateCreated tag is not working hence, extracted had to extract everything and then filter out needed tags

  • had custom location parsing logic because disabling pick prevents us from using the internal location parser

Test Plan

  • confirmed fix with a debug file
  • run sample dataset exif parsing test
  • added the debug file to the sample dataset

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 17, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5e5a9a4
Status: ✅  Deploy successful!
Preview URL: https://f8b131d6.bada-frame.pages.dev
Branch Preview URL: https://improve-exif-parsing.bada-frame.pages.dev

View logs

@abhinavkgrd abhinavkgrd marked this pull request as ready for review April 17, 2023 09:48
@abhinavkgrd abhinavkgrd requested a review from ua741 April 17, 2023 09:48
@abhinavkgrd abhinavkgrd merged commit 19896d6 into main Apr 17, 2023
@abhinavkgrd abhinavkgrd deleted the improve-exif-parsing branch April 17, 2023 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants