AcademySoftwareFoundation / AcademySoftwareFoundation/OpenImageIO
[FEATURE REQUEST] ImageOutput.supports("quality")
- Dominant language
- C++
- Stars
- 2.4k
- Forks
- 698
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 48
Description
**Is your feature request related to a problem? Please describe.**
There is no way to check if an output format supports a quality setting, other than scrubbing the code for uses of `decode_compression_metadata()`.
This is an issue for programs that want to expose quality in the GUI, especially when new formats are being added to OIIO.
**Describe the solution you'd like**
Add a "quality" feature for output formats
Of course that wouldn't always work with formats that support different compression methods (eg TIFF or EXR), but those are rather limited.
**Describe alternatives you've considered**
Testing for the format name manually and using prior knowledge about the format or scrubbing the OIIO source code.
Contributor guide
Research direction
Start by reading the ImageOutput interface and searching for uses of decode_compression_metadata(), which the issue identifies as the current way to infer support. Trace how output formats expose capabilities, then define and verify a quality feature that correctly reports support, including the noted TIFF and EXR compression cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100