473,486 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Mar 5 '06 #1
5 15198
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...
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

Mar 5 '06 #2
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
Mar 5 '06 #3
Thanks for your replies
is there any free library to read the tags?
Thanks

Michael Nemtsev wrote:
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


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200603/1
Mar 6 '06 #4
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...
Thanks for your replies
is there any free library to read the tags?
Thanks

Michael Nemtsev wrote:
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


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200603/1

Mar 6 '06 #5
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:
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


bceggersATcomcastDOTnet
Mar 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6899
by: Doug Tolton | last post by:
Does PIL still not have a Group4 Tiff decoder available? I can load a group4 Tiff just fine, but when I attempt to show it I get: >>> im = Image.open('images/00000001.tif') >>> im.show()...
0
8349
by: Robert Seidl | last post by:
I saw that VB .Net 2003 has some tools for easily reading metadata information present in some TIFF and JPG files, eg. ---------------------------------------------------------------- .... Dim b...
5
7324
by: Eddie Leung | last post by:
Hi All, As I know that the tiff contain header information, I can use one software called tifftags.exe to get tiff tag information. However, I can't get any reference from vb.net to do such...
2
2638
by: Asfar | last post by:
I am using GDI+ to load a tiff image and write a string to it and save the tiff image to another file. I can save the image with only LZW Compression and not abel to save with CCITT4...
1
3301
by: sai_ksvsk | last post by:
hi every body I like to know how to open a tiff file and read it if the tiff file. actually my problem is, if a tiff file consists of text type of data then how to get that information character...
0
1486
by: O Evans | last post by:
Hi there, I'm manipualating tiff images captured by a program that insists on using annoying private tags. I want to be able to import an image that I have created into the program but I cannot...
8
9189
dshimer
by: dshimer | last post by:
I am doing some basic modification to existing TIFF files using PIL (1.6 in python 2.5). When I open the image there is quite a bit of info in the tags dict that I would like to save with the new...
14
5188
by: Frank | last post by:
I see that ImageFormat includes exif. But I can't find out if I've System.Drawing.Image.FromStream or something like it can read and/or write that format.
1
8761
by: BuncyTheFrog | last post by:
Working in C# in Visual Studio 2005 So I know how to edit TIFF tags (get a propertyItem object, edit its details, and stick it into a bitmap), but saving them is presenting itself as a problem. ...
0
7123
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,...
0
7305
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...
0
5427
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,...
1
4863
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...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.