microsoft / microsoft/microsoft-ui-xaml

Image Source doesn't support long paths

Open
#11,182 2 comments 0 reactions 0 assignees View on GitHub
area-ImageIcon area-Images bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Image control doesn't work with long file paths, that are actually supported by rest parts of dotnet.

### Why is this important?

My user tries to open file from his filesystem, that is located deep inside folder structure and has a pretty long name. Image shows nothing, but he still can open it from other applications.

### Steps to reproduce the bug

```

```

### Actual behavior

Image doesn't show

### Expected behavior

Image shows

### Screenshots

_No response_

### NuGet package version

2.2.0

### Windows version

Windows 11 (24H2): Build 26100

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the long path in the Image control example and compare it with a shorter path. Trace the Image control's source-loading path to find where long paths stop working. Done means the example image renders successfully on the stated Windows and package versions, with regression coverage if the existing tests expose a suitable entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.