Connecting Tech Pros Worldwide Help | Site Map

read TIFF tags

mesh2005
Guest
 
Posts: n/a
#1: Mar 5 '06
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
Kevin Spencer
Guest
 
Posts: n/a
#2: Mar 5 '06

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]


Michael Nemtsev
Guest
 
Posts: n/a
#3: Mar 5 '06

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


mesh2005 via DotNetMonster.com
Guest
 
Posts: n/a
#4: Mar 6 '06

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
Kevin Spencer
Guest
 
Posts: n/a
#5: Mar 6 '06

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]


Barry
Guest
 
Posts: n/a
#6: Mar 7 '06

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
Closed Thread