473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 15189
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
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
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
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
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
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
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
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
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
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. ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...
0
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...

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.