Skip to content

SVG app icons don't load unless the URL ends in .svg #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
deansheather opened this issue May 8, 2025 · 0 comments
Open

SVG app icons don't load unless the URL ends in .svg #91

deansheather opened this issue May 8, 2025 · 0 comments

Comments

@deansheather
Copy link
Member

deansheather commented May 8, 2025

Since there's no ImageSource that can load both .svg and bitmap images, and instead there's a separate SvgImageSource and BitmapImage, we currently only attempt to load SVGs when the URL ends in .svg. We don't have much control over the actual downloading/caching operations of these sources.

One potential solution is to do a HEAD request first to get the Content-Type of the image, but it won't be easy to cache that result.

Another would be to download/cache images ourselves.

Relates to #92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant