Skip to content

future feature: how to deal with multiple thumbnails? #4888

@lgritz

Description

@lgritz

ImageInput and ImageBuf() have get_thumbnail() methods. But they assume that there are 0 or 1 thumbnails per subimage. But some raw camera formats (and libraw) supports multiple reduced-resolution versions of the main image. We don't particularly have a way for an app to find out that there are multiple thumbnails, what their resolutions are, or to pick a specific one.

Maybe one possible route for the future is to extend the get_thumbnail() method to take a thumbnail index, to select which one is chosen.

Note that this would be a breaking change to the ImageInput API, so could not be backported to existing releases. (And in main, it would require making a v3_2 namespace version of ImageInput.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    core APIsAffecting public APIs of core functionality classes, such as ImageInput, ImageOutput, ImageBuf.file formatsImage file formats, ImageInput, ImageOutput

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions