Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I have been able to read existing Metadata embedded in images via C# using PropertyItems which is readonly. I have been unable to find a way to add or alter the metadata that might be missing. For example I have some scanned images without the DateTime metaData.

 

How do you add to Metadata to a image?

Edited by forgottensoul
Posted

Thank you for the link. I will have to take a look at it closer.

 

To give a bit more background the following is what the MSDN site has on "metadata"

Imaging Overview

Some image files contain metadata that describes the content or the characteristics of the file. For example, most digital cameras create images that contain metadata about the make and model of the camera used to capture the image.

All of that information I can pull out of the images taken with my Digital Camera. Windows also displays in Explorier the "DateTime" of when the picture was taken. This information is what I would like to add to all my scanned pictures. Right now I have an XML file that contains that data. It would be nice to populate it in the pictures so it will go with the picture.

 

Since the original post, it appears that .net 3.0 might solve my problems. I found:

BitmapMetadata Class

in namespace system.windows.media

which states on MSDN as:

Provides support for reading and writing metadata to and from a bitmap image.

If I find a solution I shall post it here. The Imaging overview page has some code which might work too. Now I have 2 things to look at. :)

 

Thank you for your time

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...