473,612 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i get tiff header information

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
Nov 21 '05 #1
5 7341
And so you would have your code create a file object, open your tiff file
and manually evaluate each byte

At the front there should be patterns, whatever they are, FF, AA, 55, FF,
then file attributes, a checksum, other info, the tiff data and some footer
(end of file info)

Write out on paper how you want to validate a tiff file, then create
variable names to associate to your tag information use the Switch statement
to parse, and then test it.

Uh oh, this sounds interesting. If there is a built in method? Im not aware
of it

"Eddie Leung" <ed*****@image. com.hk> wrote in message
news:un******** ********@tk2msf tngp13.phx.gbl. ..
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

Nov 21 '05 #2
And so you would have your code create a file object, open your tiff file
and manually evaluate each byte

At the front there should be patterns, whatever they are, FF, AA, 55, FF,
then file attributes, a checksum, other info, the tiff data and some footer
(end of file info)

Write out on paper how you want to validate a tiff file, then create
variable names to associate to your tag information use the Switch statement
to parse, and then test it.

Uh oh, this sounds interesting. If there is a built in method? Im not aware
of it

"Eddie Leung" <ed*****@image. com.hk> wrote in message
news:un******** ********@tk2msf tngp13.phx.gbl. ..
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

Nov 21 '05 #3
Some tiff tags like height, width, colour depth and so on are decoded into
the standard image parameters. Other tags are provided as PropertyItems. The
GDI+ FAQ has a demo program that explains how to extract the property items
from an image and display their content.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Eddie Leung" <ed*****@image. com.hk> wrote in message
news:un******** ********@tk2msf tngp13.phx.gbl. ..
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

Nov 21 '05 #4
Some tiff tags like height, width, colour depth and so on are decoded into
the standard image parameters. Other tags are provided as PropertyItems. The
GDI+ FAQ has a demo program that explains how to extract the property items
from an image and display their content.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Eddie Leung" <ed*****@image. com.hk> wrote in message
news:un******** ********@tk2msf tngp13.phx.gbl. ..
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

Nov 21 '05 #5
Eddie Leung wrote:
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

If all else fails, you could always write your own identifier. Specs on
the format can be found on the web, i.e.: http://www.wotsit.org/

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #6

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

Similar topics

1
1423
by: Arenz, Ralph | last post by:
hi all, my problem is to get a tiff-file-attachment out of an email sent by a fax-server. When i try this with "get_payload(decode='True')" i get additional informations, looks like binary-mixed header-information, enveloping the tiff-data. I tried the following: Sending the email from outlook to a postfix-user and a file on the postfix-host as well. The file shows the stucture mentioned
7
777
by: Albert Greinöcker | last post by:
hi ng, I have a question concerning image processing in .NET: How can I open a jpeg with a tiff-header in c# (which means the file has the extension .tif, but contains jpeg-compressed data)? When I try to open the image the usual way, e.g.: Image img = Image.FromFile("thefilename.tif"), I get an error ("not enough memory"). This meaningful error message always comes up when .NET cannot deal with the Image format I think... Thanks,
0
428
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
5
5976
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a TIFF to several PNG files this causes a problem, becuase the resulting image is (the page to the far left and a lot of black space surrounding it and a filesize that is larger than needed. Any ideas?
0
1236
by: topdawg147 | last post by:
Is there an easy way to create a tiff header? I have an old legacy system that provides the binary image data separate from the actual image parameters (resolution, bpp, etc.). So, i need to combine all that information into one image. The image data by itself will not load into the Image class, since it can't recognize it yet. I have the tiff 6.0 specification, but i was looking for something a little easier and quicker. thanks,
1
4595
by: Bala | last post by:
Hi I try to download the tiff files from my server. Its get downloaded but I cannot open with windows fax viewer. its says "No preview available" thanks bala here is the code which I am using
3
1500
by: Christian Mauerer | last post by:
Hello, I'm trying to read out the header of a Multipage-Tiff. By I don't know how to do it. I can read out the IFD of the Tiff but not the header. Does anybody know how to do it? Thanks
7
3779
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities from VB The ability to add text to image, e.g. time / date Nice to have:
10
10694
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi, Please help me to write a dll in C# , that will read each pages of a tiff image from a file and a memory stream object ( need two ways) and creatre a new tiff image object.The dll should return the combined tif image object. Thnks in advance Rinu G P
0
8105
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8605
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8565
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
8246
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
7039
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
6076
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
5532
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1413
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.