Skip to content

[FR]: Parse meta data for images with animation #675

Open
@huandu

Description

@huandu

Is there an existing issue for this?

  • I have searched the existing issues

Describe the problem

Besides image sizes, I want to read more metadata from animated images like GIF and WebP, e.g. frame count, animation duration, etc. As parsing animation files at runtime is relatively expensive, it would be great if flutter_gen can parse this information for me.

Describe the solution

Add a new optional option parse_animation in config. If it's true, flutter_gen should parse animated images and write parsed information in AssetGenImage.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions