Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Jun 13, 2025

ImageOutput::supports() recognized queries for "multiimage" and "mipmap". But ImageInput::supports() only recognized "multiimage". Add "mipmap" to make it easier for client software to know if the image file format they're reading from allows the possibility of MIP-mapping.

As far as I can tell, only OpenEXR, TIFF, Ptex, and DDS do, among the file types we currently support.

@lgritz
Copy link
Collaborator Author

lgritz commented Jun 17, 2025

Opinions?

Since it's a new "supports" query, it should not break anything, though authors of any custom ImageInput subclasses are expected to return true for this query if they implemented a format that supports mipmaps.

ImageOutput::supports() recognized queries for "multiimage" and
"mipmap".  But ImageInput::supports() only recognzied
"multiimage". Add "mipmap" to make it easier for client software to
know if the image file format they're reading from allows the
possibility of MIPmapping.

As far as I can tell, only OpenEXR, TIFF, Ptex, and DDS do, among
the file types we currently support.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz force-pushed the lg-supportsmipmap branch from 318232b to 76694d3 Compare June 17, 2025 15:59
@lgritz
Copy link
Collaborator Author

lgritz commented Jun 19, 2025

I would like to merge this by the end of the week, if nobody objects.

@lgritz lgritz merged commit 731b90b into AcademySoftwareFoundation:main Jun 20, 2025
31 checks passed
@lgritz lgritz deleted the lg-supportsmipmap branch June 20, 2025 02:40
@lgritz lgritz added the core APIs Affecting public APIs of core functionality classes, such as ImageInput, ImageOutput, ImageBuf. label Jul 13, 2025
zachlewis pushed a commit to zachlewis/OpenImageIO that referenced this pull request Aug 1, 2025
…oundation#4800)

ImageOutput::supports() recognized queries for "multiimage" and
"mipmap". But ImageInput::supports() only recognized "multiimage". Add
"mipmap" to make it easier for client software to know if the image file
format they're reading from allows the possibility of MIP-mapping.

As far as I can tell, only OpenEXR, TIFF, Ptex, and DDS do, among the
file types we currently support.

Signed-off-by: Larry Gritz <[email protected]>
zachlewis pushed a commit to zachlewis/OpenImageIO that referenced this pull request Sep 1, 2025
…oundation#4800)

ImageOutput::supports() recognized queries for "multiimage" and
"mipmap". But ImageInput::supports() only recognized "multiimage". Add
"mipmap" to make it easier for client software to know if the image file
format they're reading from allows the possibility of MIP-mapping.

As far as I can tell, only OpenEXR, TIFF, Ptex, and DDS do, among the
file types we currently support.

Signed-off-by: Larry Gritz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core APIs Affecting public APIs of core functionality classes, such as ImageInput, ImageOutput, ImageBuf.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants