You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, repro in .NET 8.0
Issue description
In .NET Core and Framework application, reading EXIF data from images on Windows 11 24H2 returns incorrect EXIF values. Specifically, when retrieving the orientation flag, the system returns the value 5091 instead of the expected 112. Additionally, when running the provided code, the message box with "works" appears as expected on Windows 11 23H2, indicating the correct EXIF orientation flag is found. However, on Windows 11 24H2, the message box does not appear, suggesting the EXIF orientation flag is not being correctly identified. The issue occurs despite using the same project and the same image file. This problem does not appear on earlier versions of Windows, such as Windows 11 23H2 or Windows 10, where the correct value of 112 is consistently returned. If this issue does not belong to the WinForms team, I kindly request your guidance on the appropriate team or area to which it should be forwarded for further investigation. Attached below are the screenshots displaying the results of the debug inspection in the provided code and video of the running process.
Windows 11 Enterprise 23H2
23H2.mp4
Windows 11 Enterprise 24H2
24H2.mp4
Steps to reproduce
Create a Winforms VB .NET application
Add a PictureBox control to the form.
Use the following code in the Form1_Load event:
Me.PictureBox1.Image = Bitmap.FromFile("C:\Path\To\Your\Image.jpg")
For Each EXIF As System.Drawing.Imaging.PropertyItem In Me.PictureBox1.Image.PropertyItems
' Value 112 is the orientation flag from the EXIF data
If EXIF.Id.ToString("X") = "112" Then
MsgBox("works")
End If
Next
Replace ("C:\Path\To\Your\Image.jpg") with the path to an image that contains EXIF data.
Syareel-Sukeri
changed the title
EXIF data misreading in WinForms on Windows 11 24H2
EXIF data misreading in WinForms VB application on Windows 11 24H2
Oct 16, 2024
.NET version
.Net 9.0 SDK: 9.0.100-RC.2.24474.11
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, repro in .NET 8.0
Issue description
In .NET Core and Framework application, reading EXIF data from images on Windows 11 24H2 returns incorrect EXIF values. Specifically, when retrieving the orientation flag, the system returns the value 5091 instead of the expected 112. Additionally, when running the provided code, the message box with "works" appears as expected on Windows 11 23H2, indicating the correct EXIF orientation flag is found. However, on Windows 11 24H2, the message box does not appear, suggesting the EXIF orientation flag is not being correctly identified. The issue occurs despite using the same project and the same image file. This problem does not appear on earlier versions of Windows, such as Windows 11 23H2 or Windows 10, where the correct value of 112 is consistently returned. If this issue does not belong to the WinForms team, I kindly request your guidance on the appropriate team or area to which it should be forwarded for further investigation. Attached below are the screenshots displaying the results of the debug inspection in the provided code and video of the running process.
Windows 11 Enterprise 23H2
23H2.mp4
Windows 11 Enterprise 24H2
24H2.mp4
Steps to reproduce
More Info
The text was updated successfully, but these errors were encountered: