Skip to content
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

Fix loading images from file:// URIs #12757

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

jonthysell
Copy link
Contributor

@jonthysell jonthysell commented Feb 22, 2024

Description

Fixes the loading of images via file:// URIs, which is what is used for asset files in (unpackaged) Fabric apps.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

To fix image loading.

Resolves #12755

What

The API we use to load the image can support file:// URI's directly, we were doing a bunch of (now no longer necessary?) path processing that ultimately wasn't working. This change removes that processing.

Screenshots

Before:

image

After:
image

Testing

Verified images started loading.

Changelog

Should this change be included in the release notes: yes

Fixed loading images from file:// URIs (as used for assets in on-disk bundles)

Microsoft Reviewers: Open in CodeFlow

@jonthysell jonthysell requested a review from a team as a code owner February 22, 2024 21:49
@jonthysell jonthysell marked this pull request as draft February 22, 2024 21:50
@jonthysell jonthysell marked this pull request as ready for review February 22, 2024 22:27
@jonthysell jonthysell enabled auto-merge (squash) February 22, 2024 22:28
@jonthysell jonthysell merged commit b99a46f into microsoft:main Feb 22, 2024
48 checks passed
@jonthysell jonthysell deleted the fabricfileimage branch February 22, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unable to load bundled asset images using file:// uri in Fabric
2 participants