Wildbook icon indicating copy to clipboard operation
Wildbook copied to clipboard

date/time from EXIF API

Open TanyaStere42 opened this issue 1 year ago • 1 comments

Context

When uploading images as part of an encounter, users should be able to leverage the information from the photographs to simplify their data entry experience. We want users to be able to see a list of date/times from their photos, so we need an API that pulls that information. (needed for #793)

Requirements

Non-Functional Requirement

  • PR needs to branch off of feature branch: submission_page

Functional Requirement

  • GET API
  • 200: list of datetimes from exif date created for one or more submitted images
  • 400: "could not parse exif date created" if error parsing or if no exif date created is on image

TanyaStere42 avatar Sep 26 '24 23:09 TanyaStere42

maybe worth investigating submit.jsp and its use of javascript/exif.js through exifFindLatLon() (this would be frontend-only implementation).

otherwise could be BE api that can return MediaAssetMetadata on already-uploaded files (from #750)

naknomum avatar Sep 27 '24 21:09 naknomum

do we intend to put those info to text input automatically so user don't have to enter them manually?

erinz2020 avatar Oct 07 '24 14:10 erinz2020

  1. The dropdown is populated with datetimes from the photo EXIF
  2. The user selects a datetime from this dropdown
  3. The encounter date is populated with the datetime from this dropdown

TanyaStere42 avatar Oct 07 '24 17:10 TanyaStere42

closing issue as duplicate of #794 now that this has been shifted to front end management

TanyaStere42 avatar Oct 07 '24 20:10 TanyaStere42