Access Exif metadata

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DGrund
    New Member
    • Jan 2017
    • 23

    Access Exif metadata

    I am trying to access the Authors fields from a picture.

    I am using System.Windows. Media.Imaging;

    My code:
    BitmapSource img = BitmapFrame.Cre ate(fs);
    BitmapMetadata md = (BitmapMetadata )img.Metadata;
    lblTitle.Text = md.Title;
    lblSubject.Text = md.Subject;
    lblAuthors.Text = md.Author; // <======
    lblComments.Tex t = md.Comment;
    lblDateTaken.Te xt = md.DateTaken;

    It doesn't like highlighted line:
    Cannot implicitely convert type "System.Collect ions.ObjectMode l.ReadOnlyColle ction<string> to <string>.

    Evidently, I don't have a good enough grasp of C#. Can anyone help?
    Thanks in advance.
  • rapheal21
    New Member
    • Dec 2021
    • 1

    #2
    Using Windows File Explorer, it’s possible to view technical data about a file from the Properties window. This area also displays EXIF metadata for images, offering a quick overview without installing third-party software to do so.

    To access this data, right-click an image file in Windows File Explorer and press Properties. In the Properties window, click on the Details tab. You’ll be able to view some information about the image here, including image resolution and size, along with some additional details, including the camera model and settings.

    While Windows File Explorer should give you a good overview of EXIF metadata, you can also use third-party tools to view it in more depth. Many of these tools are now outdated for use on Windows, but one tool that still works well is ExifDataView.

    Download ExifDataView for Windows to begin and unzip the file using Window’s built-in unzipping tool. Once unzipped, double-click to run the ExifDataView executable file.

    To view EXIF data using ExifDataView, press File > Open File to open a suitable image file. Your EXIF data will appear as various rows in the ExifDataView window.

    Comment

    • DGrund
      New Member
      • Jan 2017
      • 23

      #3
      I know how to do that. I want to do it in a PROGRAM. Sorry if my question was not worded correctly.

      Comment

      Working...