From: tiff@remotesensing.org (Kai-Uwe Behrmann)
Date: Tue, 30 Sep 2003 17:16:41 +0200 (CEST)
Subject: [Tiff] Reading thumbnail
In-Reply-To: <20030930145756.46348.qmail@web701.mail.yahoo.co.jp>
Message-ID: <Pine.LNX.4.44.0309301714370.1764-100000@sirius.rasena>

Am 30.09.03, 23:57 +0900 schrieb so so (takamiyakita?):

>
> Hi,
>
> By reading TIFF Specification,
> full-size image is in IFD0 and
> thumbnail is in IFD1.
>
> So, I was trying to get thumbnail data
> by calling TIFFSetDirectory(tifr,1) after calling
> TIFFOpen( ).

libtiff start IFD counting with 0. Please try TIFFSetDirectory(tifr,0) .

> But TIFFSetDirectory(tifr,1) returned 0.
> IFD1 did not exist.
>
> I created the tiff file by Adobe PhotoShop.
>
> what is wrong?
> please any infomation.
>
> thank you.

Kai-Uwe Behrmann


