473,611 Members | 2,242 Online
Bytes | Software Development & Data Engineering Community
+ 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 15208
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:5ccdee146b 990@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.c om
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.c om" <u19339@uwe> wrote in message
news:5cd6461942 eb4@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.c om
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:\\tem p\\test.tif");

System.Drawing. Imaging.Propert yItem[] 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


bceggersATcomca stDOTnet
Mar 7 '06 #6

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

Similar topics

5
6912
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() Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 1192, in show _showxv(self, title, command)
0
8359
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 As New Bitmap(OpenFileDialog1.FileName) For Each p As System.Drawing.Imaging.PropertyItem In b.PropertyItems ' do something with ' p.Id ' p.Len ' p.Type
5
7341
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 feature. Please advise.. Thanks. Eddie
2
2656
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 compression. If I use CCITT4 compression I get an invalid paramter error when saving file. The file saved with LZW compression has different resolution and tags then the orignal image. Is there a way to save the image with the same tags as the orignal...
1
3312
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 by charecter.
0
1493
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 get PIL to save the private tag. Here is a simplified version of the code I am using: import Image original = Image.open(r"test.tif") original.tag = "life"
8
9219
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 image. Apparently (based on other forums I've seen) once you process the image all the TIFF specific data gets lost. I can copy the info but can't find an example of how to copy or re-assign it to the new image. For example import...
14
5218
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
8783
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. After I'm done drawing on the bitmap, I convert it to 1bbp, then stick the propertyItems onto the bitmap. I've checked, and I can see each of the propertyItems I've put into the bitmap. I then save the file using the TIFF encoder and CCITT4...
0
8561
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8240
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7038
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6072
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4042
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2546
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 we have to send another system
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.