473,765 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.j peg"
Image MyImage = Image.FromFile( myFile);
System.Text.ASC IIEncoding Value = new System.Text.ASC IIEncoding();
MessageBox.Show (Value.GetStrin g(MyImage.GetPr opertyItem(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 1486
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******** ********@TK2MSF TNGP10.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.j peg"
Image MyImage = Image.FromFile( myFile);
System.Text.ASC IIEncoding Value = new System.Text.ASC IIEncoding();
MessageBox.Show (Value.GetStrin g(MyImage.GetPr opertyItem(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
3021
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 undocumented) function iptcembed() and I didn't get it working properly. After hours of debugging I found the following note in php.notes: "This function currently only works for images that have IPTC data embedded in them already."
0
1218
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 tuples. I found the lookup codes here - http://demo.imagefolio.com/demo/ImageFolio31_files/skins/cool_blue/images/iptc.html, but I was wondering if these existed anywhere in the code. Would it make sense to include a label lookup on these...
0
1438
by: Wim | last post by:
Hi, Does anybody knows if there are php scripts to extract IPTC info from pictures? Thanks, Wim
0
1330
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
5008
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 = Image.FromFile(myFile); System.Text.ASCIIEncoding Value = new System.Text.ASCIIEncoding(); MessageBox.Show(Value.GetString(MyImage.GetPropertyItem(270).Value));
0
3236
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
2780
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 perspective, shadows, rounded corners, ... and more in minutes instead of hours or days if you do it manually. Phatch allows you to use EXIF and IPTC tags for renaming and data stamping. Phatch also supports a console version to batch photos on web...
1
3636
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 example of how it's done?
1
2860
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 It has been a while since I had to do it but effectively, you need to open the image before you can extract the IPTC as I recall. This should give you a starting point:
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
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 we have to send another system
3
2806
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.