-
Hello, I have been wondering how to retrieve a list of file formats supported by oiio, if possible formatted as file extensions. I would like to be able to discard file path input whose extension is not supported by OIIO and would need a constant where this information is stored. I have tried searching the documentation and manage to find
So it's not what I need. I could then manually create my constant from parsing https://openimageio.readthedocs.io/en/latest/builtinplugins.html but I would like to avoid spending time to do it if something is already implemented. Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind I found it 2minutes after opening this discussion by browsing the list of issues (#2901). It seems I need to query an OIIO global attribute : import OpenImageIO as oiio
oiio.get_string_attribute("extension_list") That can then be converted to a dict like import OpenImageIO as oiio
dict(
[
(extension.split(":")[0], extension.split(":")[1].split(","))
for extension in oiio.get_string_attribute("extension_list").split(";")
]
) |
Beta Was this translation helpful? Give feedback.
Never mind I found it 2minutes after opening this discussion by browsing the list of issues (#2901).
It seems I need to query an OIIO global attribute :
That can then be converted to a dict like