hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.37k stars 156 forks source link

Enable rules to parse and import exif metadata #1323

Open ghostsquad opened 1 year ago

ghostsquad commented 1 year ago

Enable rules to parse exif metadata and import as tags. Possible ideas for how to enable such rules to be described could be inspired by renamer: https://renamer.en.softonic.com/

Or allow some simple scripting to be used such as Javascript or Lua?

Related to: https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/2087

roachcord3 commented 1 year ago

Would like to request that this also be something that can be parsed as notes (or is automatically shown as such.)

Zweibach commented 1 year ago

Since the import system allows you to set what should be imported as what from sidecars (tags, notes, urls) it makes more sense to just apply that to file metadata instead of forcing it all to be tags.

ghostsquad commented 1 year ago

Since the import system allows you to set what should be imported as what from sidecars (tags, notes, urls) it makes more sense to just apply that to file metadata instead of forcing it all to be tags.

My goal, and correct me if I'm wrong about this, is not just to capture the metadata, but sort and organize images based on that information. Essentially bucket images based on text search results.

Let's say an image prompt is lara croft on misty mountain. I need to be some able to find lara croft, mountain, misty mountain and combinations there of.

Hopefully this use case makes sense. As i understand it, that's exactly what tags are meant for.

PaperOrb commented 1 year ago

Since the import system allows you to set what should be imported as what from sidecars (tags, notes, urls) it makes more sense to just apply that to file metadata instead of forcing it all to be tags.

My goal, and correct me if I'm wrong about this, is not just to capture the metadata, but sort and organize images based on that information. Essentially bucket images based on text search results.

Let's say an image prompt is lara croft on misty mountain. I need to be some able to find lara croft, mountain, misty mountain and combinations there of.

Hopefully this use case makes sense. As i understand it, that's exactly what tags are meant for.

Yep, exactly this. It seems like an obviously useful feature to include and would work well for organizing a library of AI generated art that puts the generation parameters into the exif data on the image.

I know there's another guy on here that was wanting to organize his quad copter footage by doing stuff like "within <100 meters of xyz exif geo data". There's endless uses for this.