AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.02.25 08:21 "[Tiff] How to get a thumbnail View for a single page TIFF file.", by Priyanshu Sharma
2005.02.25 10:50 "Re: [Tiff] How to get a thumbnail View for a single page TIFF file.", by Joris
2005.02.25 11:57 "Re: [Tiff] How to get a thumbnail View for a single page TIFF file.", by Priyanshu Sharma
2005.02.25 13:06 "Re: [Tiff] How to get a thumbnail View for a single page TIFF file.", by Joris

2005.02.25 11:57 "Re: [Tiff] How to get a thumbnail View for a single page TIFF file.", by Priyanshu Sharma

Thanx Joris,

But i think i was not able to express my problem. let me try that again.

PROBLEM:

I have a 1 page tiff file and i want to get its thumbnailview as another tiff file.

I am able to get the thumbnail view for the single page tiff file but along with the thumbnail view i get one more page appended to the same file to which i am writing the data and this page is the actual page in its original size.

I just wana know if thumbnail view for a single page tiff file is possible and if yes how?

If u wana see my code i can provide it to u.

I have understood the functioning of TIFFSetField() and TIFFSetDirectory() thanx for the summary u have given. Also i will read the other reference material u have provided.

thanx for such a quick response

Priyanshu

BITS,Pilani

On Fri, 25 Feb 2005 11:50:38 +0100, Joris <joris.at.lebbeke@skynet.be> wrote:

if I comment out this function call from the code "TIFFSetField(out, TIFFTAG_SUBIFD, 1, diroff);" ( its present in the function defination of ShowThumbnail() function )

and set the page no i want to view as thumbnail by function TIFFSetDirectory().

I'm not sure what the problem is here, I'm not sure what code you are referring to, nor what your intentions are.

I am getting 2 pages tiff file where first page is the thumbnail for the required page and second page is the actuall page for which i want the thumbnail view.

Sometimes, tiff writer apps do that. It's evil, for three reasons

i am not able to find relevent information abt tag no 330 also.. if any one has some thing relevent plz post it or mail it to me.

There's a tag search page, http://www.awaresystems.be/imaging/tiff/tifftags/search.html, where you can enter just about anything like tag name, or, in this case, decimal tag number. Searching for 330 there, yields the SubIFDs tag page http://www.awaresystems.be/imaging/tiff/tifftags/subifds.html. On that page, there's a short explanation, and a link to the specification supplement 1 that I referred to earlier. That specification suppelement fully defines the SubIFDs tag.

Best regards;