IPTC informations

L

Lionel

Hi,

I need to read the IPTC *keywords* tag from a jpeg file.
I can read all the EXIF tags with this little part of code:

string MyFile = "c:\afile.jpeg"
Image MyImage = Image.FromFile(myFile);
System.Text.ASCIIEncoding Value = new System.Text.ASCIIEncoding();
MessageBox.Show(Value.GetString(MyImage.GetPropertyItem(270).Value));

Here, 270 is one of the EXIF tags.
But how can i read the IPTC tags ? Just the one containing the Keywords
would be fine !

Thanks !
 
K

Kevin Spencer

If you know the byte order of the image type, you could get it. I've done
the same thing with Tiffs. You would open the file to a binary FileStream,
and move the stream pointer (fs.Seek) to read the bytes from the stream,
using the BitConverter class to convert the bytes to their respective data
types.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top