473,503 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Exif metadata

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

I am using System.Windows.Media.Imaging;

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

It doesn't like highlighted line:
Cannot implicitely convert type "System.Collections.ObjectModel.ReadOnlyCollection <string> to <string>.

Evidently, I don't have a good enough grasp of C#. Can anyone help?
Thanks in advance.
Dec 7 '21 #1
2 19059
rapheal21
1 New Member
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.
Dec 14 '21 #2
DGrund
22 New Member
I know how to do that. I want to do it in a PROGRAM. Sorry if my question was not worded correctly.
Feb 6 '22 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4328
by: www.dartszeeland.nl | last post by:
Hi all, How can I access the metadata (IPTC, EXIF) in a .jpg file? visual basic v6 Please advice me Thanks in advance, Peter.
2
2254
by: Ivan Herman | last post by:
A question on using the PIL library. If I take a jpg file then, say, resize it and save it somewhere else, all metadata that is part of the jpg file is lost. This is a pity: digital cameras...
0
1251
by: Patrick Johnson | last post by:
I am trying to read the Keyword field of the metadata attached to a jpg file in C#. the closest I could find to reading this type of Info was using the Image object and itterating thru the...
1
12368
by: Reginald Johnson | last post by:
I'm trying display a popup on the mouseover of a jpeg image. I'm thinking of trying to populate the popup with text obtained from the image metadata. However, I haven't been able to find any...
14
5193
by: Frank | last post by:
I see that ImageFormat includes exif. But I can't find out if I've System.Drawing.Image.FromStream or something like it can read and/or write that format.
8
5853
by: infoseekar | last post by:
Does anyone know what's the right code to read IPTC metadata. I have the code to read EXIF metadata and it gives me alot of information which I don't need. How do I modify this code so it only...
1
2748
by: SPE - Stani's Python Editor | last post by:
Phatch is a simple to use cross-platform GUI Photo Batch Processor Phatch handles all popular image formats and can duplicate (sub)folder hierarchies. It can batch resize, rotate, apply...
4
28045
by: DGrund | last post by:
I am looking for an example of a program, routine, or code snippet, that will show me exactly how to update a picture's exit metadata. I have been successful in READING this information (using the...
0
8214
by: DGrund | last post by:
I am trying to write a program to access exif metadata. I found a library to do that, but I am having trouble with ONE field: Author. I found an example that shows me how to WRITE that field, but I...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7063
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.