Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
X-Original-To: filtered@awaresystems.be
Delivered-To: filtered@awaresystems.be
Received: from mx-q.one.com (mx-q.one.com [91.198.169.248])
	by mail9.b-one.net (Postfix) with ESMTP id 97A63400A1D
	for <filtered@awaresystems.be>; Tue, 28 Feb 2012 17:41:26 +0100 (CET)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-q: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.210.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pz0-f48.google.com (mail-pz0-f48.google.com [209.85.210.48])
	by mx-q.one.com (Postfix) with ESMTP id 137D823E550
	for <filtered@awaresystems.be>; Tue, 28 Feb 2012 16:41:25 +0000 (UTC)
Received: by dadp13 with SMTP id p13so6911098dad.21
        for <filtered@awaresystems.be>; Tue, 28 Feb 2012 08:41:24 -0800 (PST)
Received: from mr.google.com ([10.68.219.130])
        by 10.68.219.130 with SMTP id po2mr55703959pbc.140.1330447284844 (num_hops = 1);
        Tue, 28 Feb 2012 08:41:24 -0800 (PST)
Received: by 10.68.219.130 with SMTP id po2mr46813921pbc.140.1330445921089;
        Tue, 28 Feb 2012 08:18:41 -0800 (PST)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.142.101.7 with SMTP id y7csp55968wfb;
        Tue, 28 Feb 2012 08:18:40 -0800 (PST)
Received: by 10.68.201.196 with SMTP id kc4mr39935997pbc.141.1330445920239;
        Tue, 28 Feb 2012 08:18:40 -0800 (PST)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.249 as permitted sender) client-ip=91.198.169.249;
Received: by 10.68.141.168 with POP3 id rp8mf1566111pbb.13;
        Tue, 28 Feb 2012 08:18:40 -0800 (PST)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-r.one.com (mx-r.one.com [91.198.169.249])
	by mail9.b-one.net (Postfix) with ESMTP id BC013400A1D
	for <info@awaresystems.be>; Tue, 28 Feb 2012 17:05:47 +0100 (CET)
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-r.one.com (Postfix) with ESMTP id 3F8D71AE37F
	for <info@awaresystems.be>; Tue, 28 Feb 2012 16:05:47 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 7FE261CC06D;
	Tue, 28 Feb 2012 11:04:09 -0500 (EST)
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com
	[209.85.212.172])
	by lists.maptools.org (Postfix) with ESMTPS id 1A5671BCA7D
	for <tiff@lists.maptools.org>; Tue, 28 Feb 2012 10:59:18 -0500 (EST)
Received: by wicr5 with SMTP id r5so1529507wic.3
	for <tiff@lists.maptools.org>; Tue, 28 Feb 2012 07:59:17 -0800 (PST)
Received-SPF: pass (google.com: domain of cipper82@gmail.com designates
	10.216.82.141 as permitted sender) client-ip=10.216.82.141; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of cipper82@gmail.com
	designates 10.216.82.141 as permitted sender)
	smtp.mail=cipper82@gmail.com;
	dkim=pass header.i=cipper82@gmail.com
Received: from mr.google.com ([10.216.82.141])
	by 10.216.82.141 with SMTP id o13mr6905182wee.2.1330444757073 (num_hops
	= 1); Tue, 28 Feb 2012 07:59:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.82.141 with SMTP id o13mr5438758wee.2.1330444757016; Tue,
	28 Feb 2012 07:59:17 -0800 (PST)
Received: by 10.223.112.194 with HTTP; Tue, 28 Feb 2012 07:59:16 -0800 (PST)
Date: Tue, 28 Feb 2012 17:59:16 +0200
Message-ID: <CA+7Z1rwm1pORDFayP9-RPuP9EqbXB4S7O_Sg5nr+PefBq2uP3Q@mail.gmail.com>
From: Cip Cipper <cipper82@gmail.com>
To: tiff@lists.maptools.org
Subject: [Tiff] BigTiff support (libtiff 4.0.1 vs libtif f4.1)
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>
Content-Type: multipart/mixed; boundary="===============2112407970=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============2112407970==
Content-Type: multipart/alternative; boundary=001636d3471922a17704ba084fe9

--001636d3471922a17704ba084fe9
Content-Type: text/plain; charset=ISO-8859-1

Hello!



I have implemented a solution for saving big tiff files using libtiff
library.



While developing I have used in the beginning the library provided here:
http://www.aperio.com/bigtiff/



It was more than I needed as the output was depending on the size of the
file. If it did not exceed 4 GB the result was a standard Tiff (version 42)
and if it was larger than 4GB the library managed to save it as a large
Tiff (version 43) without any "external" intervention.



Unfortunately, it was crashing while trying to save palette images so I
have decided to use the stable libTiff4.0.1 lib



As I have discovered this library saves bigTiff files only if "w8" argument
is passed. This is ok until you save a compressed image and you can not
foresee the output size of the image. It would have been perfect to keep
smaller files as a standard (vers 42) tiff files.



Is there a solution to save a file as a standard tiff if it's less than 4GB
and as a bigTiff otherwise? Like I have described the functionality in tiff
4.1?



Thank you,

Ciprian

--001636d3471922a17704ba084fe9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">Hello!</span><span style=3D"font-s=
ize:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"></spa=
n></p>


<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">I have implemented a
solution for saving big tiff files using libtiff library.</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">While developing I have
used in the beginning the library provided here:=A0<a href=3D"http://www.ap=
erio.com/bigtiff/"><span style=3D"color:blue">http://www.aperio.com/bigtiff=
/</span></a></span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">It was more than I
needed as the output was depending on the size of the file. If it did not
exceed 4 GB the result was a standard Tiff (version 42) and if it was large=
r
than 4GB the library managed to save it as a large Tiff (version 43) withou=
t
any &quot;external&quot; intervention.</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">Unfortunately, it was crashing
while trying to save palette images so I have decided to use the stable
libTiff4.0.1 lib</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">As I have discovered
this library saves bigTiff files only if &quot;w8&quot; argument is passed.
This is ok until you save a compressed image and you can not foresee the ou=
tput
size of the image. It would have been perfect to keep smaller files as a
standard (vers 42) tiff files.</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">Is there a solution to
save a file as a standard tiff if it&#39;s less than 4GB and as a bigTiff o=
therwise?
Like I have described the functionality in tiff 4.1?</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">=A0</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">Thank you,</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:Arial,sans-serif">Ciprian</span></p>

<p class=3D"MsoNormal">=A0</p>

--001636d3471922a17704ba084fe9--

--===============2112407970==
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/
--===============2112407970==--
