-
Notifications
You must be signed in to change notification settings - Fork 178
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
Feature: search within JPG metadata #221
Comments
I did actually have plans to add an EXIF adapter originally, but I guess I never did? Probably because usually there's not really a lot of interesting searchable data in there. In any case, this should be easy to do with a Custom Adapter calling exiftool. exiftool has lots of output options so you might have to look at the docs. Try starting with If you do find a good config json, do post it in the Wiki: https://github.com/phiresky/ripgrep-all/discussions/categories/show-your-adapter I'll probably add the top voted adapters from the wiki to core at some point. |
Thank you for the hint. I looked a bit into exiftool and was impressed how many file formats it supports according to the manpage. So for now, this prototype works for me: {
"name": "exiftool",
"version": 1,
"description": "Uses exiftool to extract all plain text metadata from supported files.",
"extensions": ["jpg", "jpeg"],
"mimetypes": ["image/jpeg"],
"binary": "exiftool",
"args": ["-g", "-u", "-"],
"disabled_by_default": false,
"match_only_by_mime": false
} Example Output:
As for the wiki version, to which kind of files would you apply exiftool for (e.g. to avoid double extractions)? This list in the manpage is pretty long. I wonder what it gets out of pptx files, for example. I do not have any at hand right now. Probably the office username and similar.
And it supports among others:
PS: For me, the issue is solved with this. I'll tinker around with exiftools options and post into the wiki later on. So for me it is fine if you like to close the issue. |
Is your feature request related to a problem? Please describe.
I use the Aves Android App to manage and sometimes tag my files. But in order to find images by tag with rga, I need to use the
--text
parameter to find it, as it does not seem to take a look into the metadata. This works, as the XML seems to be in there in plain text, but produces ugly output (you know, binary stuff producing weird characters in the terminal).Describe the solution you'd like
Search within metadata (timestamps and others) should be done by default, as jpg is a common format type.
Describe alternatives you've considered
--metadata parameter
Additional context
This is not specific to Aves only. For example, digiKam also stores XMP within image files. This includes information about recognized faces in images and possibly nondestructive-editing information.
I think there is a lot of potential for looking into metadata. Here is a screenshot of Aves, which shows the different metadata layers of an image taken with ma phone and added a single tag (so, very minimal). I can only view one layer at once, but you get the idea. The opened layer shows how Aves uses XMP / dublin core to store tags within a file.
The text was updated successfully, but these errors were encountered: