473,387 Members | 1,463 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,387 software developers and data experts.

Tiff

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

Christian

Nov 7 '06 #1
3 1489
What exactly do you mean by "the header?" The first 2 bytes in the file
indicate whether it's big-endian or little-endian. The next 2 bytes are the
TIFF identifier (the number 42). 32 bytes after that is the first IFD.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
"Christian Mauerer" <in***@cematec.de.dewrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
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

Christian

Nov 7 '06 #2
Hello Kevin,

thank you for your information.

Yes, that's right. I want to read out die 32 bytes to the first IFD.

Is is correct, if I open the tiff with an BinaryReader an read out this
bytes?
Or is this the wrong way to get these informations?

Thank you.

Christian
"Kevin Spencer" <sp**@uce.govschrieb im Newsbeitrag
news:up****************@TK2MSFTNGP02.phx.gbl...
What exactly do you mean by "the header?" The first 2 bytes in the file
indicate whether it's big-endian or little-endian. The next 2 bytes are
the
TIFF identifier (the number 42). 32 bytes after that is the first IFD.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
"Christian Mauerer" <in***@cematec.de.dewrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
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

Christian



Nov 8 '06 #3
Sorry about that. My Bad. Bytes 4 - 7 are the offset (in bytes) of the first
IFD. and that is the complete header!

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.

"Christian Mauerer" <in***@cematec.de.dewrote in message
news:e%****************@TK2MSFTNGP02.phx.gbl...
Hello Kevin,

thank you for your information.

Yes, that's right. I want to read out die 32 bytes to the first IFD.

Is is correct, if I open the tiff with an BinaryReader an read out this
bytes?
Or is this the wrong way to get these informations?

Thank you.

Christian
"Kevin Spencer" <sp**@uce.govschrieb im Newsbeitrag
news:up****************@TK2MSFTNGP02.phx.gbl...
>What exactly do you mean by "the header?" The first 2 bytes in the file
indicate whether it's big-endian or little-endian. The next 2 bytes are
the
>TIFF identifier (the number 42). 32 bytes after that is the first IFD.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
"Christian Mauerer" <in***@cematec.de.dewrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
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

Christian



Nov 8 '06 #4

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

Similar topics

2
by: Robin Becker | last post by:
Has anyone done transparency with PIL & TIFF? I'm using PIL to generate a preview TIFF for embedding into an eps file and am being asked for the TIFF to support transparency. -- Robin Becker
2
by: Al Reid | last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in viewer? If so, could someone tell me how to do it? TIA -- Al...
0
by: Will Arrowsmith | last post by:
Hi All, I am trying to create a .tiff file to fax using the windows fax service FAXCOMLib. I have created an array of images (bitmaps) and converted them to 1pbb format in order to allow...
0
by: Will Arrowsmith | last post by:
Hi All, I am aiming to create a multiframe Tiff file that I can fax using the windows fax service FAXCOMLib. I have created an array of Bitmaps (pages I want in my fax doc) and succesfully...
5
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...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
1
by: amit gupta | last post by:
Hello, I am using QuarkXPress on Macintosh to generate EPS Files with Tiff Preview embedded in it. I have written some C code to extract Tiff Preview from EPS files generated which works pretty...
7
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....
10
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...
3
by: GiJeet | last post by:
Hello, we have an app that scans documents into TIFF format and we need to transfer them over the internet. If anyone knows of a SDK we can use that can compress TIFFs on the fly or even if it can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.