Git Product home page Git Product logo

Comments (3)

ikaruswill avatar ikaruswill commented on August 23, 2024

It's hard to say which is the source of truth here.

The initial idea was to just set the exif date if it has been stripped by WhatsApp.

The initial idea of the logic is:

  • If the exif date exists, it is taken as the source of truth since exif is the most reliable as compared to the filename or modified date. Hence it's skipped if exists.
  • If the exif date does not exist, the photo date is inferred from the filename
  • Modified date is never used since modified date is always unreliable as it depends on whether a restore was performed, where newly restored files have modified dates set to the time of restoration (file creation)

Correct me if I'm wrong but what you're suggesting here is:

  • check if the exif date and see if it identical to the filename's date.
  • if it isn't the same, take the filename as the source of truth

In this case, filename would become the source of truth, which differs from the original order of precedence.

What I'd like to know is, based on your experience, when would there be a case where exif date is not correct (and thus less reliable than WhatsApp filename dates?

from whatsapp-media-tools.

lublak avatar lublak commented on August 23, 2024

@ikaruswill I have not yet had this case myself. I had until now only the case that exif data exisitieren but the "change date" is wrong and thus my gallery is completely unsorted. The other option I thought would only be handy if someone has the problem.

Gladly we can take that out again because I myself do not need it. Or an extra flag.

from whatsapp-media-tools.

lublak avatar lublak commented on August 23, 2024

I have added a flag for now. @ikaruswill

from whatsapp-media-tools.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.