473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IPTC informations

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.GetPropert yItem(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 !
Nov 19 '05 #1
1 1470
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.

"Lionel" <no****@org.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.GetPropert yItem(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 !

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Markus Bulmer | last post by:
Hi, I'm trying to do a photo album with php. The admins should be able to write comments, descriptions etc. into the jpeg files via a web form. I tried to implement this with the (still...
0
by: Jonah Bossewitch | last post by:
Hi, I am using PIL's IptcImagePlugin to extract the IPTC tags from an image file. I was able to successfully retrieve the tags from the image (thanks!), but the results are keyed off of cryptic...
0
by: Wim | last post by:
Hi, Does anybody knows if there are php scripts to extract IPTC info from pictures? Thanks, Wim
0
by: Mads Jacobsen | last post by:
Hi, Can anyone help me with a c# class that can read the IPTC from jpeg files? Regards, Mads
2
by: Lionel | last post by:
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 =...
0
by: zeng | last post by:
Is there a way for ASP.net to read and write IPTC info from a JPEG file? Just like what PHP can do? Really appreciate your answer.
1
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...
1
by: Jumping Arne | last post by:
I'm completely new to PIL and I'm trying to read IPTC info, I understand that it's possible but I can't find out how (and for once Google doesn't seem to be able to help). Does anyone have an...
1
by: Scott SA | last post by:
On 4/30/08, Jumping Arne (arnlen@mac.com) wrote: Some basic PIL info: <http://www.pythonware.com/library/pil/handbook/index.htm> <http://effbot.org/imagingbook/has a tutorial and more info ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.