Skip to content
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

Extend interface to save/load file metadata. #3

Open
twadleigh opened this issue Apr 30, 2021 · 1 comment
Open

Extend interface to save/load file metadata. #3

twadleigh opened this issue Apr 30, 2021 · 1 comment

Comments

@twadleigh
Copy link
Owner

twadleigh commented Apr 30, 2021

Possibly extend load_exr to return a Dict of metadata. Possibly add a Dict and/or keyword args to save_exr to save metadata.

Saving metadata is straightforward, but, as far as I can tell, there is no capability (in the C API, at least) to query the names of the metadata fields in a file, or the types of the corresponding values. One must know that a value of a known type exists with a known name to retrieve it through the given interface. Thus, the interface for loading metadata will be to expect an associative set (e.g., Dict) of field names and types for metadata to fetch, and to return a Dict with values for which a fetch was successful.

@twadleigh
Copy link
Owner Author

There is no point in touching this until the overhaul in #11 is complete (for which there is no current timeline or driving need).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant