New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import datetime detection for copy & import and from camera #11016
Conversation
I support the pixls request to download only new images from your camera’s card. LR does the same (using Date, File Size, File Name and an internal hash), but there are multiple complaints of users, that duplicates are not detected, and different images are classified as duplicates by mistake. So there won't be a perfect duplicate-check. And as I understood it, it won't work for images already imported before updating. Finally, there might be single images on my sd-card which I did not import last time on purpose, but they will be imported next time together with the new images (without me noticing it). A simpler (and for me: better) solution would be, to easily select all images of one day (e.g. by grouping by date). By default all images from today (or the latest day available) could be selected. As midnight might not be the best day-seperator, we could use the grouping of images with a configurable time separator in AutoGrouper.lua mentioned in #10996 And of course there should be a check if this import would overwrite existing files with the same name in the same directory. |
@quovadit, I disagree. You can already sort out the files by datetime. So that seems easy to select only images from a date to another one, or only from today. I really don't see how to improve this. The name conflict case is another topic. Today the import doesn't happen. EDIT
I would like to understand better the actual problems. Complaints are not always enough. |
What about hashing only the metadata? Maybe together with additional checks of some of the likely unique metadata, to avoid false duplicates (maybe dependent on the hash algorithm). The metadata hash could be stored in xmp/db to save half of the computations in every new run. Disclaimer: I am asking just out of curiosity, I do not use this feature. |
The fact of having to read the file is the main burden. See here an attempt to use exif datetime instead of file datetime. |
@quovadit, you are mixing everything. Sorry, that's tiring. If you want to work with dates work with dates and forget the automatic selection. Don't mix both. |
I don't see, what I'm mixing... I work with dates, but still I would like to have a way to easily select all images of my last shoot, without scrolling through hundreds of photos finding where the day starts. If there is a function 'only new pictures' a user should be able to trust that exactly this will happen. So instead of implementing a new feature, waiting for complaints and then trying to fix one after the other, I suggested to take a different approach to solve the same problem ('Only import images of my last shoot'). By the way: I really hope that my input is constructive and not destructive! |
@quovadit, This PR is about "already imported image detection". |
@phweyland : I lost track on this. First there is a conflict to resolve, then is that ready to be merged? @quovadit : Have you had time to test this? |
sorry, I did not test the last commits yet, will do it tomorrow evening |
…lized time +rebase
Reminder. The principle is to recognize the source filename plus its timestamp. Then:
However, on normal usage (at least mine 😄) that seems to work pretty well. |
Still it only works with a fresh install. |
@quovadit : As said by @phweyland :
So indeed that doesn't work (and it is expected) for already imported images. |
I gladly admit that the label |
Check box label and tooltip tweaked for |
I don't think that a new label solves this problem. As I don't want to mix things, I created a separate Pull Request (EDIT: FR), where I described my point of view: #11195 |
Thanks ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me now.
Solves a pixls.us request.
If merged before #10844 this function will have to be aligned afterwards.
Principle: Save in an internal (not visible from the user) metadata ("Xmp.darktable.image_id") the orignal filename + timestamp.
At import time looks if the corresponding metadata value already exists or not.
The first commit fixes several bugs related to internal metadata which has not be used so far.
Limitation: the detection doesn't happen for images imported before this PR ...