dotnet / dotnet/wpf

Cannot create System.Windows.Media.Imaging.BitmapImage from my image file

Open
#8,252 7 comments 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Cannot-create-SystemWindowsMediaImagi/10460081)._

---
This is an image that can be opened normally in applications such as Photo, Paint, Paint 3D, etc. . However, you cannot create a System.Windows.Media.Imaging.BitmapImage from this file. This also prevents the Image from being displayed in WPF's image control.
I've attached the project, code, and image files that can be used to reproduce the problem. You should be able to open the image file easily with Windows built-in apps, but you can't create BitmapImage objects from it.

---
### Original Comments

#### Feedback Bot on 9/7/2023, 11:53 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.