Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.3.90])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i4JIaoO0010915
        for <joris.at.lebbeke@skynet.be>; Wed, 19 May 2004 20:36:50 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx012.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i4JIacoB028433
        for <joris.at.lebbeke@skynet.be>; Wed, 19 May 2004 20:36:39 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4JIXbn09217;
	Wed, 19 May 2004 14:33:37 -0400
Received: from sabre.velocet.net (postfix@sabre.velocet.net [216.138.209.205])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4JIWDn09170
	for <tiff@remotesensing.org>; Wed, 19 May 2004 14:32:14 -0400
Received: from pobox.com (H156.C195.tor.velocet.net [216.138.195.156])
	by sabre.velocet.net (Postfix) with ESMTP
	id E19A713A648; Wed, 19 May 2004 12:56:27 -0400 (EDT)
Message-ID: <40AB91BC.1030408@pobox.com>
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ben Harper <ben@gls.co.za>
Cc: tiff@remotesensing.org
Subject: Re: [Tiff] Images larger than 2 gigabytes
References: <003601c43dab$dd099070$0d01a8c0@host>
In-Reply-To: <003601c43dab$dd099070$0d01a8c0@host>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Wed, 19 May 2004 12:56:28 -0400
X-UIDL: b2b215a132fb5f0dac3211a9a03c6682

Ben Harper wrote:
> Hi All-
> I'm trying to use libtiff to handle images that exceed 2 gigabytes,
> but it appears that the library is unable to read files of that size.
> Is this true? I cannot find any postings or documentation
> on the limits of the library. Could somebody please clarify this
> for me so that I can either fix the problem or abandon this effort.
> I do believe that I could try redefining toff_t and some others to
> __int64, and replacing GetFileSize with GetFileSizeEx, etc, etc,
> but I'm not certain if the whole library is geared for that.

Ben,

TIFF only supports files up to 4GB.  Libtiff should support files of up to
4GB on most platforms, using an "unsigned long" for toff_t.  It is required
that an appropriate low level 64 bit file access API be used as is done in
tif_win32.c.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
