Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i6UCoZa4026733
        for <joris.at.lebbeke@skynet.be>; Fri, 30 Jul 2004 14:50:35 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i6UCoP5F009275
        for <joris.at.lebbeke@skynet.be>; Fri, 30 Jul 2004 14:50:27 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 4DE811820FC; Fri, 30 Jul 2004 08:50:01 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from lucius.provo.novell.com (lucius.provo.novell.com
	[137.65.81.172])
	by xserve.flids.com (Postfix) with ESMTP id 90B7D1820CF
	for <tiff@remotesensing.org>; Fri, 30 Jul 2004 08:49:49 -0400 (EDT)
Received: from INET-PRV1-MTA by lucius.provo.novell.com
	with Novell_GroupWise; Fri, 30 Jul 2004 06:49:41 -0600
Message-Id: <s109ef85.016@lucius.provo.novell.com>
X-Mailer: Novell GroupWise Internet Agent 6.5.2 Beta
Date: Fri, 30 Jul 2004 06:41:14 -0600
From: "Sanjay Gupta" <GSanjay@novell.com>
To: <dron@ak4719.spb.edu>, <tiff@remotesensing.org>
Subject: Re: [Tiff] Saving multiple images to a tiff file...
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Cc: 
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 8de93d130977eeb753d0f5ab6d31b050

Hi Andrey,
Thanx a lot for your help, but my problem still persisit. :-(
I will step through the TIFFWriteDirectory() function call and
locate as to why directoryCount is not being written for me.
It is becaue of this, that when i try to save a multiple page image,
by repeatedly calling TIFFWriteDirectory(), the function fails because
of the error "Errro fetching directory count." in TIFFLinkDirectory ()

method call.

Thanx again for your kind help.
Regards,
Sanjay

>>> Andrey Kiselev <dron@ak4719.spb.edu> 7/29/2004 9:59:30 PM >>>
I have attached a sample code to create the multipage TIFF. Note, that
the following imortant peace of code missed in your source:

        /* We are writing single page of the multipage file */
        TIFFSetField(out, TIFFTAG_SUBFILETYPE, FILETYPE_PAGE);
        /* Set the page number */
        TIFFSetField(out, TIFFTAG_PAGENUMBER, page, NPAGES);

I have posted that source here several times, so don't forget to
search
the list archive from time to time: Joris has made a very good job to
set up powerful Web interface for our archive!

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
