Connecting Tech Pros Worldwide Help | Site Map

read TIFF tags

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 5th, 2006, 01:55 PM
mesh2005
Guest
 
Posts: n/a
Default read TIFF tags

I'm new to C# , I use MS visual studio.NET 2003.
I have some TIFF images, I want to write a program using c# that reads an
image (.tiff) and prints all its tags. can anyone guid me to the right way?
Thanks

  #2  
Old March 5th, 2006, 03:05 PM
Kevin Spencer
Guest
 
Posts: n/a
Default Re: read TIFF tags

I've done this. It would require getting your hands on the Adobe Tiff file
byte order documentation. It's a big job, as TIFF files are quite
extensible. They can hold multiple images, store all sorts of meta data
about the images, and even store them in big-endian or little-endian byte
order. I believe there are some libraries around that can parse TIFFs as
well. I couldn't tell you how good any of them are.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"mesh2005" <u19339@uwe> wrote in message news:5ccdee146b990@uwe...[color=blue]
> I'm new to C# , I use MS visual studio.NET 2003.
> I have some TIFF images, I want to write a program using c# that reads an
> image (.tiff) and prints all its tags. can anyone guid me to the right
> way?
> Thanks[/color]


  #3  
Old March 5th, 2006, 05:35 PM
Michael Nemtsev
Guest
 
Posts: n/a
Default Re: read TIFF tags

Hello mesh2005,

See there: http://www.atalasoft.com/Products/do.../TIFFTags.html

m> I'm new to C# , I use MS visual studio.NET 2003.
m> I have some TIFF images, I want to write a program using c# that
m> reads an
m> image (.tiff) and prints all its tags. can anyone guid me to the
m> right way?
m> Thanks
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


  #4  
Old March 6th, 2006, 06:05 AM
mesh2005 via DotNetMonster.com
Guest
 
Posts: n/a
Default Re: read TIFF tags

Thanks for your replies
is there any free library to read the tags?
Thanks

Michael Nemtsev wrote:[color=blue]
>Hello mesh2005,
>
>See there: http://www.atalasoft.com/Products/do.../TIFFTags.html
>
>m> I'm new to C# , I use MS visual studio.NET 2003.
>m> I have some TIFF images, I want to write a program using c# that
>m> reads an
>m> image (.tiff) and prints all its tags. can anyone guid me to the
>m> right way?
>m> Thanks
>---
>WBR,
>Michael Nemtsev :: blog: http://spaces.msn.com/laflour
>
>"At times one remains faithful to a cause only because its opponents do not
>cease to be insipid." (c) Friedrich Nietzsche[/color]

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200603/1
  #5  
Old March 6th, 2006, 11:35 AM
Kevin Spencer
Guest
 
Posts: n/a
Default Re: read TIFF tags

Yes. Google for them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"mesh2005 via DotNetMonster.com" <u19339@uwe> wrote in message
news:5cd6461942eb4@uwe...[color=blue]
> Thanks for your replies
> is there any free library to read the tags?
> Thanks
>
> Michael Nemtsev wrote:[color=green]
>>Hello mesh2005,
>>
>>See there: http://www.atalasoft.com/Products/do.../TIFFTags.html
>>
>>m> I'm new to C# , I use MS visual studio.NET 2003.
>>m> I have some TIFF images, I want to write a program using c# that
>>m> reads an
>>m> image (.tiff) and prints all its tags. can anyone guid me to the
>>m> right way?
>>m> Thanks
>>---
>>WBR,
>>Michael Nemtsev :: blog: http://spaces.msn.com/laflour
>>
>>"At times one remains faithful to a cause only because its opponents do
>>not
>>cease to be insipid." (c) Friedrich Nietzsche[/color]
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/For...sharp/200603/1[/color]


  #6  
Old March 7th, 2006, 06:15 AM
Barry
Guest
 
Posts: n/a
Default Re: read TIFF tags

First you need the TIFFspec...

http://partners.adobe.com/public/dev...iff/index.html

Then you open your image as a bitmap
Get the propertyitems and you can go from there...

System.Drawing.Bitmap newbit = new
System.Drawing.Bitmap("c:\\temp\\test.tif");

System.Drawing.Imaging.PropertyItem[] newprop;

newprop=newbit.PropertyItems;

Property Items seem to have a structure of...
Id - number value to match the tag id in the spec....
Len
Type
Value

and this matches what you can find in the spec....

HTH,
Barry





On Sun, 05 Mar 2006 14:54:14 GMT, "mesh2005" <u19339@uwe> wrote:
[color=blue]
>I'm new to C# , I use MS visual studio.NET 2003.
>I have some TIFF images, I want to write a program using c# that reads an
>image (.tiff) and prints all its tags. can anyone guid me to the right way?
>Thanks[/color]

bceggersATcomcastDOTnet
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.