473,765 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IPTC

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 16 '05 #1
2 5007
You can loop through the PropertyItem collection in image.

Using System.Drawing. Imaging;
......
PropertyItem[] pi = MyImage.Propert yItems;
foreach(Propert yItem i in pi)
{// your code}
"Lionel" <no****@org.org > wrote in message
news:Of******** ******@TK2MSFTN GP10.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 16 '05 #2
Thanks, that's what i'm already doing.
But in this way you can only access the EXIF tags, not the IPTC ones.
I have my jpg files with the keywords tag filled, and i can't get the
keywords from it...
Nov 16 '05 #3

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
0
3235
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
1486
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));
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
9399
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
10163
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...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
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
8832
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...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.