Bug 9060 - System.Drawing.Image.GetPropertyItem fails
Summary: System.Drawing.Image.GetPropertyItem fails
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Drawing ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-12-19 14:26 UTC by wks101
Modified: 2015-02-19 17:01 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Minimal bug demo (1.89 MB, application/zip)
2012-12-19 14:26 UTC, wks101

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 9060 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description wks101 2012-12-19 14:26:51 UTC
Created attachment 3112 [details]
Minimal bug demo

For the same JPEG file containing EXIF information, the following code fails with MonoMac but succeeds on a PC:
Image img = Image.FromFile(fn);
var pi = img.GetPropertyItem(0x0132);
Comment 1 wks101 2012-12-19 14:29:03 UTC
img.GetPropertyItem(0x0132) does not cause an error, but it fails to find the PropertyItem where one should be present.
Comment 2 Timothy Risi 2015-02-19 17:01:13 UTC
This is an issue in System.Drawing not the Xamarin.Mac library, so I'm reassigning it over to the right Product so someone can take a look at it.

In the meantime, https://github.com/mono/sysdrawing-coregraphics might work, it's an implementation of System.Drawing using CoreGraphics.