Skip to content

WebPDecoder::into_frames returns an empty iterator for non-animated images #2761

@SludgePhD

Description

@SludgePhD

image 0.25.9

Expected

I would expect the iterator to yield precisely one frame, since the image contains one frame.

Alternatively, yielding an error ("image is not animated") might also make sense.

Actual behaviour

The operation silently fails and produces zero frames.

Reproduction steps

Load a non-animated WebP with the WebPDecoder. Then call WebPDecoder::into_frames().collect_frames()?.

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