IT Community - Software Programming, Web Development and Technical Support

Raw image metadata processing

This is a discussion on Raw image metadata processing within the C# Programming forums, part of the Software Development category; Hi…guys… I am handling a project with raw image metadata processing in C# .Net. I want to read and ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-04-2007, 12:40 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Raw image metadata processing

Hi…guys…

I am handling a project with raw image metadata processing in C# .Net. I want to read and write EXIF, IPTC metadata from raw images. I have some ideas to get metadata from JPEG, TIFF files, But not for raw images.
Can any one help me for this?
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 01:01 AM
muthuramkumar muthuramkumar is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 10
muthuramkumar is on a distinguished road
Default Re: Raw image metadata processing

Hi Oxygen,

You can try the Microsoft photoinfo. I hope it will very useful for you,it reads and writes the IPTC metadata and reads the EXIF metadata. You can download it from the microsoft site.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 01:08 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Raw image metadata processing

Thanks ram,

Its a good tool for reading and writing IPTC metadata. But i need a SDK. we cant use the tool directly in the project. And i tried with the dll's of the photoinfo. But not able to read . Microsoft provides COM components for metadata reading in .NET 3.0, but i need a dll or source for .NET 2.0 . Is there any other ways ?
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-08-2007, 12:47 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default Re: Raw image metadata processing

Hi,

You can read the IPTC information for Jpeg, Tiff, CR2 and NEF Image using Photo Info dll.

Steps:

1) Install the photoinfo (Microsoft IPTC read and write component)

2) Create a C# project.

3) Add the Dll Extract Image and Extract Metadata as reference.

4) Copy and Paste the following code.

5) You can read all IPTC fields using this code.

uint fileFlags = 0x180;
uint[] tags = new uint[] {
0x10110, 0x1a403, 0x19201, 0x19202, 0x18827, 0x1920a, 0x19003, 0x20076, 0x20078, 0x20050, 0x2005c, 0x2007a, 0x2000f, 0x2005a, 0x20065, 0x20074,
0x2006e, 0x20069, 0x20005, 0x20073, 0x20028, 0x2005f, 0x20067, 0x20014, 0x2000a, 0x20037, 0x20019, 0x30001, 0x19c9b, 0x19c9c, 0x19c9d, 0x19c9e,
0x19c9f, 0x10100, 0x10101, 0x14746, 0x1a002, 0x1a003, 0x40001, 0x40002, 0x40003, 0x40004, 0x40005, 0x40006};

Array array = Array.CreateInstance(typeof(uint), tags.Length);
ExtractMetadata.CExtractMetadata2Class extractMetadata = new ExtractMetadata.CExtractMetadata2Class();
string[] textArray = (string[])extractMetadata.GetMetadata("D:\\exif.jpg", 1, tags, (uint[])array, ref fileFlags);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-09-2007, 11:57 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Raw image metadata processing

Hi Bala,

Its a great effort from you. Its really works well. lot of thanks. I have executed the code u have given as per your instructions. It works perfectly and reads the IPTC metadata from TIFF,JPEG,CR2,NEF files but not for CRW. anyway its a great improvement for my prjoect. When tried for the CRW files it says the following error "Value does not fall within the expected range.". not able to find the reason.
your code reads IPTC data only.I need EXIf also, i am now trying exiv2 c++ sources for that. I have to convert it to use in C#. If u have any idea about EXIF reading, please help me. Thanks once again
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-10-2007, 12:09 AM
muthuramkumar muthuramkumar is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 10
muthuramkumar is on a distinguished road
Default Re: Raw image metadata processing

hi balasubramanian,

i tried ur code..its good, working well. You gave the property IDs only, can u give the name for the all the properties, It will be good for me. Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-16-2007, 03:01 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default Re: Raw image metadata processing

Hi,

I have listed IPTC Properties for some tags. Others are unknown tags.

Iptc_Address = 10;
Iptc_Author = 9;
Iptc_Caption = 8;
Iptc_CaptionWriter = 11;
Iptc_Category = 12;
Iptc_City = 13;
Iptc_Contact = 7;
Iptc_Copyright = 15;
Iptc_Country = 14;
Iptc_Credit = 0x10;
Iptc_DateCreated = 0x19;
Iptc_Headline = 0x11;
Iptc_Keywords = 0x1a;
Iptc_ObjectName = 0x12;
Iptc_Source = 0x13;
Iptc_SpecialInstructions = 20;
Iptc_State = 0x15;
Iptc_SupplementalCategory = 0x17;
Iptc_TransRef = 0x16;
Iptc_Urgency = 0x18;

Thanks...

S.Balasubramanian..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract IPTC Metadata from jpeg and tiff image formats Balasubramanian.S C# Programming 26 11-13-2008 01:19 PM
Reading EXIF, IPTC & ICC Profile metadata from an image using MagickNet in C# letmein C# Programming 0 03-27-2008 01:42 AM
Metadata Extraction with .Net Framework 3.0 Sathish Kumar C# Programming 10 02-04-2008 06:55 AM
What is batch processing? leoraja8 Database Support 1 09-07-2007 04:35 AM
form processing Archimedees PHP Programming 3 09-04-2007 03:39 AM


All times are GMT -7. The time now is 02:05 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0