-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Extensible tags #365
Comments
Hi, It's definitely an interesting suggestion to look into. There already is a thread about it actually: #243 The customizability is not going to be as good as with the custom builds for a couple of reasons mentioned in the other issue but I think the plugin architecture is a much better solution. I should have some more time on my hands after the (European) summer and can have a more proper look at it then. In the meantime it might be possible to add the Apple tags for you into the library directly (unless they are stored in a heavy Apple-specific way). I will have a look at the latest next week. Thanks for the descriptive suggestion. |
I seem to have spoken too soon. The Apple tags are stored in the maker notes. This makes them very suitable to rather be a custom module instead. If you need these tags sooner rather than later I would suggest getting the |
Description
I'd like to suggest making the available tags configurable. From a user perspective, I'd imagine passing the tags to the
read
options, or exporting anExifReader
class that takes them as constructor parameters. Using custom tags would look like so:Use ExifReader like it currently works (this ought to be the default):
Use ExifReader with a subset of tags:
Use ExifReader with a custom tag set (more on that below) in addition to the defaults:
This would:
To define custom tag sets, one would need an object implementing the below interface:
There may be more thinking required for generalising all existing tag extractors, but it should be possible.
custom-apple-tags-module.ts
:(
defineTagSet
is just a helper function returning the object to make it easy to type the thing automatically)Do you think this is feasible, or even an interesting direction to go into? I'm willing to contribute to this.
My motivation is that I need a few tags defined by Apple exifTool knows about, but ExifReader doesn't. Ideally, I'd like to just write a custom module to parse those tags, and if that works well, contribute them back to ExifReader; it would be cool to have an easy extension point. For my use case, I'd also like to use tree shaking, but the custom builds (while a neat solution) don't integrate well with my deployment target.
The text was updated successfully, but these errors were encountered: