Skip to content

Should createImageBitmap support vector formats? #923

@jakearchibald

Description

@jakearchibald

Step 3 of https://html.spec.whatwg.org/multipage/webappapis.html#dom-createimagebitmap for <img> specifically rejects on vector data, but it doesn't reject for blobs. There's a vague "If the image data is not in a supported file format" step for blobs, is this supposed to reject on vectors?

See https://jakearchibald.github.io/svgomg/ - as a developer, I'd like to control the rasterisation of SVG data using createImageBitmap to allow for smooth zooming and panning but lazy re-rendering at the target dimension (and cropped area).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions