Skip to content

SVG images served from extension-less URLs fail to render #1

@Sameer330

Description

@Sameer330

Description

URLs that serve SVG content but lack a .svg extension (e.g. CDN URLs, signed URLs, proxy endpoints) are not correctly classified by the resolver pipeline. The source falls through to a raster renderer and fails at decode time.

Reproduction

AnyImage(source: 'https://img.shields.io/badge/format-SVG-blue')

Expected behaviour

The widget should render the SVG correctly, or fall back gracefully.

Workaround (v0.0.1)

AnyImage(source: url, sourceType: SourceType.svg)
Exclusively mention the sourceType if the source is known to a developer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions