Comments (3)
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.
@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.
I have added a flag for now. @ikaruswill
from whatsapp-media-tools.
Related Issues (3)
- if not os.path.exists missing argument HOT 2
- Help HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-media-tools.