Connecting Tech Pros Worldwide Help | Site Map

read TIFF tags

  #1  
Old March 5th, 2006, 02:55 PM
mesh2005
Guest
 
Posts: n/a
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, 04:05 PM
Kevin Spencer
Guest
 
Posts: n/a

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, 06:35 PM
Michael Nemtsev
Guest
 
Posts: n/a

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, 07:05 AM
mesh2005 via DotNetMonster.com
Guest
 
Posts: n/a

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, 12:35 PM
Kevin Spencer
Guest
 
Posts: n/a

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, 07:15 AM
Barry
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find out what DPI a Tiff or JPG was scaned in at in vb.net? Jack answers 2 August 14th, 2007 11:25 PM
can DotNet read and/or write exif Frank answers 14 February 11th, 2007 02:25 PM
Tiff images Sameer Gupta answers 5 September 18th, 2006 08:55 PM
Displaying image data from SQL...single/multipart tiff CD answers 3 July 13th, 2006 07:15 PM