Skip to content

[BUG] ImageBuf::nmiplevels() returns 0 #5409

Description

@AlexeySmolenchuk

OpenImageIO 3.1.14.0

Only cached version of ImageBuf object returns correct number of mipmaps.

buffer = ImageBuf(imageFileName, subimage, mip, cache);
nmips = buffer.nmiplevels(); // Works as expected
buffer = ImageBuf(imageFileName, subimage, mip);
nmips = buffer.nmiplevels(); // Always returns zero

Same for both exr and tiff backends.

Could be the same issue: #4984

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions