Can I search by image metadata keywords?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Dweeb
Posts: 3
Joined: Sat May 06, 2023 9:47 pm

Can I search by image metadata keywords?

Post by Dweeb »

Thank you for this feature, it will help me a lot. But I'm having a bit of trouble finding metadata that doesn't seem to be of the standard sort.

The data I'm looking to index is contained in AI generated image files, for some reason only some of the images have it listed under the "comment" or "user_comment" property which does index but other images have the data under "parameters" and then some others have it in "prompt" + "workflow" sections. There might even be more but I think that's it.

Is there any way I can manually add a section of metadata for Everything to index? A metadata viewing website I tried and the AI generators have the data organized so I think it would be as simple as that, maybe? I'm not sure where to do this though. I've uploaded an image so you can see what I mean.
Attachments
18 17.jpg
18 17.jpg (1.18 MiB) Viewed 4438 times
Last edited by Dweeb on Wed Dec 13, 2023 1:39 am, edited 1 time in total.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can I search by image metadata keywords?

Post by void »

Moved from Can I search by metadata keywords?

To check the values for all properties in Everything:
  • In Everything 1.5, select your image that contains the metadata.
  • Right click the result list column header and click Add columns....
  • In Select Properties, right click the property list column header and check Preview.
  • Take note of properties with the desired metadata.
  • Select the columns you wish to add.
  • Click OK.


To index these properties:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Properties tab on the left.
  • Click Add....
  • Select the desired properties and click OK.
  • Click OK.
Dweeb
Posts: 3
Joined: Sat May 06, 2023 9:47 pm

Re: Can I search by image metadata keywords?

Post by Dweeb »

Thanks for the quick reply but the information wasn't listed anywhere. I had a feeling it wouldn't show up since they seem to be under new categories, I wonder if the data is encrypted or something. The one that worked had the prompt under the "comment" and "description" properties but the others didn't show anything, at least in plain sight. I've uploaded the example images I found if you wanted to take a look but I think I'm out of luck orz.
Attachments
example pics.zip
(2.64 MiB) Downloaded 116 times
Last edited by Dweeb on Wed Dec 13, 2023 2:52 am, edited 1 time in total.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can I search by image metadata keywords?

Post by void »

Thank you for sharing the PNG files.



The properties are unencrypted PNG tEXt tags.

The tags used are not standard.



Everything uses the system to gather tags from PNG files.

If the system doesn't return any tags, Everything has native support for the following tEXt tags:
  • Software
  • Author
  • Title
  • Comment
  • Description
  • Copyright


The following tEXt tags are in your files:
  • parameters
  • prompt
  • workflow
  • title
  • description
  • Software
  • Source
  • Generation Time
  • Comment
There might be third party property handlers to gather your tEXt tags.
ExifTool will show all these tags.

It will be hard to get the tags into Everything as its difficult to match the unknown keywords to an Everything property.



To capture and show the parameters or prompt tag, include the following in your search:

Code: Select all

*.png content-max-size:65536 case:regex:binarycontent:tEXt(?:parameters|prompt)\x00([\x20-\x7f\r\n]*) addcol:a a-label:="Prompt" a:=$1:
Dweeb
Posts: 3
Joined: Sat May 06, 2023 9:47 pm

Re: Can I search by image metadata keywords?

Post by Dweeb »

Thanks! This will be handy for cleaning up my folder, although it's a shame I can't index them and search freely. Is there any way to further search through the tags though? I can see that the prompt is listed in the attributes bar but I'm not sure what to edit what you gave me to get something more specific, like to search through that listed prompt info. Is that possible? And I'm not sure what to do with that exiftool lol, I wonder if it could be used to move that data around though.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can I search by image metadata keywords?

Post by void »

Is there any way to further search through the tags though?
If you are using the *.png content-max-size:65536 case:regex:binarycontent:tEXt(?:parameters|prompt)\x00([\x20-\x7f\r\n]*) addcol:a a-label:="Prompt" a:=$1:

You can search the prompt with: column-a:

For example:

column-a:"my prompt search"
Dweeb
Posts: 3
Joined: Sat May 06, 2023 9:47 pm

Re: Can I search by image metadata keywords?

Post by Dweeb »

Thanks a ton!
Post Reply