-
Notifications
You must be signed in to change notification settings - Fork 17
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
Convert EXIF tags to Nextcloud tags #20
Comments
I'd like to work on this in the next couple weeks. Do you have any design preferences/input @gino0631 ? I'd want it to be a user configurable option to do this automatically on image file import so that users wouldn't have to set up cron jobs for generating the tags. Or maybe this should be done outside of the metadata app (in "photos")? nextcloud/photos#226 |
@yekibud generating Nextcloud tags on import does not solve the problem for image files that are already imported, and as Nextcloud does have background jobs, that should not require to set up cron jobs to scan through the files. |
Thanks for your reply, @gino0631 . Per nextcloud/photos#226, there seems to be an interest in building metadata as a general feature into One suggestion was that metadata should be persisted as DAV properties - which it doesn't look like you're doing. Do you have any thoughts on doing that and getting metadata into the NC |
@yekibud no, currently I'm not employing DAV properties, though I guess it would be possible to do so. It all depends on what we are trying to achieve. If there is an interest to integrate via DAV properties, i.e. another app would be reading them, I'm ready to cooperate, otherwise what's the point? As for the core features, it's a long story :) Several years ago I was looking for a solution to store my files in a convenient way, accessible from anywhere, but staying on my premises. This way I discovered NC, which looked a very promising solution, but I was amazed it wasn't possible to see even the basic attributes of the files I upload - that looked as a complete show-stopper for me. I did some research, and it took 2-3 hours for me to find a way to implement the functionality I needed. Then I was confident I finally had what I wanted :) Be it all in the core from the very beginning, there would be no need for this app. Now, of course, the app has grown. There are features I'm proud of, and there are much more to implement. Still, as usual, not enough time, as I can't spend much time for such projects. In any case, as I'm personally using the app, I will continue it as long as it is meaningful to do so. If there are enough resources (and that should be the biggest problem) to migrate the relevant functionality into the core, and the code seems to be reusable (it should be, but that also depends on what you need), I'm OK with that. |
Thanks for the reply, @gino0631 . I've forked your project and created a branch for NC tag integration. Sounds like NC20 is going to do away with the file side-panel tabs view, so this project will need to be updated (or integrated) in order to work after that. Basically what I'm proposing is a simple personal settings menu where users can select metadata they want converted into NC tags on file upload/update, as well as a setting to run a background task for converting existing file metadata to tags. I'd like to have an authoritative data structure for the supported metadata to display in the UI, so I was thinking of creating a Thoughts? |
@yekibud do you have any pointers regarding these changes in NC20? As for the tags, yes, we need to define what would be meaningful to offer to covert to tags. I would start from a small set though - this can be easily extended once you have a code that integrates with NC. |
Sorry, can't find it ATM, I think it may have been in one of the many NC issues I've been reading lately. Also, the related issue in In any case, my current issue is event handling in NC. What a mess! NC 18 examples are currently a mix of 4 different patterns. File events seem to use hooks - but can't seem to get the event decoupled from preview image file generation which happens at the same time. So right now my solution is a hack that gets the real file ID from the uploaded file path in the Alternatively I guess I could set up a background task or file monitor. Might be cleaner. Suggestions welcome. |
That would be akin to the preview-generator app which probably is a good idea. It might perhaps also be possible to use the native background jobs functions in NC to scan files? I like the UI example from your previous post. May I suggest to allow a user to choose to convert any custom EXIF tag, as well as support nested tags - tree structure like. However, I think the tags actually are XMP metadata, not sure how that works? Example JPEG that I have added two tags
Another JPEG without added tags, just as it is imported from the camera:
|
Heh, heh. Nice moose. :-) Good point about the hierarchical tags - I don't think Shotwell does that, they're all just a comma delimited list of IPTC "keywords", IIUC. I think for a first iteration it really depends on what |
She is our friendly neighbourhood moose. Not worried about people at all :) A separated list of tags works of course. The other bits is more of how tags are presented in the UI. For me, I'd like to have several parts. At least the common attributes like camera model, iso, date, width, hight and of course tags like Animal, Moose |
It would be really useful if it was possible to add NC tags based on EXIF tags and metadata.
Perhaps best through occ with something like previewgenerator does:
The text was updated successfully, but these errors were encountered: