X-Account-Key: account1
X-UIDL: 0f75efdcba43cdf9cd0b80a049845fb8
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (localhost [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id 70014C4212B
	for <faxguy@howardsilvan.com>; Fri,  3 Apr 2015 09:59:51 -0700 (PDT)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by fangorn.howardsilvan.com with SMTP (2.3.3); 3 Apr 2015 09:59:50 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 2371235C038;
	Fri,  3 Apr 2015 11:58:11 -0500 (EST)
Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com	[209.85.214.181])
	by lists.maptools.org (Postfix) with ESMTPS id CDCAF35C035
	for <tiff@lists.maptools.org>; Fri,  3 Apr 2015 11:58:05 -0500 (EST)
Received: by obbgh1 with SMTP id gh1so170461498obb.1
	for <tiff@lists.maptools.org>; Fri, 03 Apr 2015 09:58:16 -0700 (PDT)
X-Received: by 10.60.35.102 with SMTP id g6mr4026164oej.7.1428080296435;
 Fri,	03 Apr 2015 09:58:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.76.127.232 with HTTP; Fri, 3 Apr 2015 09:57:56 -0700 (PDT)
In-Reply-To: <alpine.GSO.2.01.1504030948160.4186@freddy.simplesystems.org>
References:
	<CANKEqfQGsHpK2rbA2bGo3ZbE294NdJ38wSjYgTuq-vBg-PyoGg@mail.gmail.com>
	<alpine.GSO.2.01.1504022052440.4186@freddy.simplesystems.org>
	<CANKEqfS_zkuXVTPmqx87+amBpqZquRu__y907M+d=hCVNnZXWg@mail.gmail.com>
	<alpine.GSO.2.01.1504030948160.4186@freddy.simplesystems.org>
From: Romain Franconville <romain.franconville@gmail.com>
Date: Fri, 3 Apr 2015 12:57:56 -0400
Message-ID: <CANKEqfQXVaBRNGhWRm5gVU11y85DDZTvHXruNov7jDeFfEOaWg@mail.gmail.com>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] problem reading directories past 2GB on a 64bits system
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-Assp-ID: fangorn.howardsilvan.com m1-80391-04189
X-Assp-Session: 7F06AFF35F80 (mail 1)
X-Assp-Detected-RIP: 209.85.214.181
X-Assp-Source-IP: 209.85.214.181
X-Assp-Envelope-From: tiff-bounces@lists.maptools.org
X-Assp-Intended-For: faxguy@howardsilvan.com
X-Assp-Version: 2.3.3(14029) on fangorn.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 3 Apr 2015 09:59:51 -0800
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: multipart/mixed;
	boundary="===============1789919451=="


--===============1789919451==
Content-Type: multipart/alternative; boundary=089e013c6f92c7a55a0512d4da1f


--089e013c6f92c7a55a0512d4da1f
Content-Type: text/plain; charset=UTF-8

One last thing I saw : for the last directory it can successfully read (but
not the ones before), I get the following warnings from TIFFReadDirectory :

   TIFFFetchNormalTag: Warning, ASCII value for tag "ImageDescription"
contains null byte in value; value incorrectly truncated during reading due
to implementation limitations.
   TIFFReadDirectory: Warning, Wrong "StripByteCounts" field, ignoring and
calculating from imagelength.

2015-04-03 10:51 GMT-04:00 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>:

> On Fri, 3 Apr 2015, Romain Franconville wrote:
>
>  No, the directory count is well below 64k. It seems to have to do with
>> the 2Gb limit, as I always get the error for
>> the first frame going over it. I'll try to check how the software
>> producing those tiff writes them, it's probably the
>> source of the problem : so far I haven't found a single tiff reading
>> library able to open them completely.
>>
>
> In addition to whatever software you are using to drive libtiff, it is
> possible that Ubuntu-provided libtiff includes patches/changes (usually due
> to security concerns) which causes it to differ from the original libtiff
> release.
>
> I was easily able to write TIFF files larger than 2GB, and BigTIFF files
> of 24GB under Ubuntu using GraphicsMagick, but I am using latest CVS
> libtiff and not the library provided by Ubuntu.  It is also not clear if
> the libtiff function calls are similar to your situation.
>
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>

--089e013c6f92c7a55a0512d4da1f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>One last thing I saw : for the last directory it can =
successfully read (but not the ones before), I get the following warnings f=
rom TIFFReadDirectory :</div><div><br></div><div>=C2=A0 =C2=A0TIFFFetchNorm=
alTag: Warning, ASCII value for tag &quot;ImageDescription&quot; contains n=
ull byte in value; value incorrectly truncated during reading due to implem=
entation limitations.</div><div>=C2=A0 =C2=A0TIFFReadDirectory: Warning, Wr=
ong &quot;StripByteCounts&quot; field, ignoring and calculating from imagel=
ength.</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"=
>2015-04-03 10:51 GMT-04:00 Bob Friesenhahn <span dir=3D"ltr">&lt;<a href=
=3D"mailto:bfriesen@simple.dallas.tx.us" target=3D"_blank">bfriesen@simple.=
dallas.tx.us</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=
=3D"">On Fri, 3 Apr 2015, Romain Franconville wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
No, the directory count is well below 64k. It seems to have to do with the =
2Gb limit, as I always get the error for<br>
the first frame going over it. I&#39;ll try to check how the software produ=
cing those tiff writes them, it&#39;s probably the<br>
source of the problem : so far I haven&#39;t found a single tiff reading li=
brary able to open them completely.=C2=A0<br>
</blockquote>
<br></span>
In addition to whatever software you are using to drive libtiff, it is poss=
ible that Ubuntu-provided libtiff includes patches/changes (usually due to =
security concerns) which causes it to differ from the original libtiff rele=
ase.<br>
<br>
I was easily able to write TIFF files larger than 2GB, and BigTIFF files of=
 24GB under Ubuntu using GraphicsMagick, but I am using latest CVS libtiff =
and not the library provided by Ubuntu.=C2=A0 It is also not clear if the l=
ibtiff function calls are similar to your situation.<div class=3D"HOEnZb"><=
div class=3D"h5"><br>
<br>
Bob<br>
-- <br>
Bob Friesenhahn<br>
<a href=3D"mailto:bfriesen@simple.dallas.tx.us" target=3D"_blank">bfriesen@=
simple.dallas.tx.us</a>, <a href=3D"http://www.simplesystems.org/users/bfri=
esen/" target=3D"_blank">http://www.simplesystems.org/<u></u>users/bfriesen=
/</a><br>
GraphicsMagick Maintainer,=C2=A0 =C2=A0 <a href=3D"http://www.GraphicsMagic=
k.org/" target=3D"_blank">http://www.GraphicsMagick.org/</a></div></div></b=
lockquote></div><br></div>

--089e013c6f92c7a55a0512d4da1f--

--===============1789919451==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
--===============1789919451==--


