Skip to content

[FEATURE REQUEST] Global attrib to enable/disable formats #4759

@lgritz

Description

@lgritz

From a slack conversation, maybe it would be helpful to have a global OIIO:attribute() way to set at runtime a specific list of which file formats OIIO is willing to read or write?

This is settable at build time now, of course. But I could imagine it being helpful, especially in cases where you have to live with whichever libOpenImageIO you find on your system, to be able to restrict which formats you support. One reason might be security or reliability -- essentially limiting the attack surface area to just the formats a particular app anticipates needing?

It would be fairly straightforward to implement.

Metadata

Metadata

Assignees

Labels

difficulty/easyHours-to-days for veterans, days for newcomers to the projectfile formatsImage file formats, ImageInput, ImageOutputgood first issueGood one-day project for beginners without much knowledge of the code base.help wantedA task that is desired, but needs somebody to commit the effort to implement it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions