Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-w.one.com (mx-w.one.com [195.47.247.148])
	by mail6.local (Postfix) with ESMTP id 070DE300238320
	for <filtered@awaresystems.be>; Fri, 20 Jun 2014 18:26:25 +0000 (UTC)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-w: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.215.51 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51])
	by mx-w.one.com (Postfix) with ESMTP id CB88E20C7A658
	for <filtered@awaresystems.be>; Fri, 20 Jun 2014 18:26:24 +0000 (UTC)
Received: by mail-la0-f51.google.com with SMTP id mc6so2583030lab.24
        for <filtered@awaresystems.be>; Fri, 20 Jun 2014 11:26:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:delivered-to:delivered-to
         :mime-version:in-reply-to:references:date:message-id:from:to:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-type:mime-version:sender:errors-to;
        bh=CwHN4h3jwWFg+iuLS1VqsV9CDWuMjtgYdwWPIJoQYgQ=;
        b=euRSAjbWhmINs5+yGjAXUcPP+dm+XaPrCN09JeElblI7bQbjqwGe8bTXB58F7i2hJM
         bkQmSyNkx6VW6BqhvH/oA68uzafA12oJi/qUpGZlcwXGCDASNT99wnFdGrLHApcCEVHb
         Le93YEhtH5Fs1bYg+3JwCo/bbBk+//nXM9HvP0lK3tuN73iQ+HBw0zZQoYEq2bwAvZv9
         OvTT+dNu8drAD4z4aHXsEsfrrIiD7a/o1M1yk9ymE+/IXYpGfknU1XybSDlNsgC4jYSe
         Rk+Ym//RmrGksywMyAK2j4Zd9hK4wB+RNqrJcg8XZmHrDmwWAW+CUgP2nA9+N1qIZjzp
         VIYQ==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
X-Received: by 10.153.4.42 with SMTP id cb10mr2455166lad.83.1403288784507;
        Fri, 20 Jun 2014 11:26:24 -0700 (PDT)
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.114.18.137 with SMTP id w9csp188787ldd;
        Fri, 20 Jun 2014 11:26:24 -0700 (PDT)
X-Received: by 10.152.183.193 with SMTP id eo1mr31279lac.95.1403288783306;
        Fri, 20 Jun 2014 11:26:23 -0700 (PDT)
Authentication-Results: mx.google.com;
       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
Received-SPF: none (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) client-ip=195.47.247.150;
Received: by 10.112.18.74 with POP3 id u10mf1539771lbd.15;
        Fri, 20 Jun 2014 11:26:22 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-y.one.com (mx-y.one.com [195.47.247.150])
	by mail6.local (Postfix) with ESMTP id 37E29300238325
	for <info@awaresystems.be>; Fri, 20 Jun 2014 17:30:40 +0000 (UTC)
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 (ks365428.kimsufi.com [94.23.4.142])
	by mx-y.one.com (Postfix) with ESMTP id 0E0B82141A727
	for <info@awaresystems.be>; Fri, 20 Jun 2014 17:30:39 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id AD04135C023;
	Fri, 20 Jun 2014 12:29:45 -0500 (EST)
Received: from mail-qc0-f179.google.com (mail-qc0-f179.google.com
	[209.85.216.179])
	by lists.maptools.org (Postfix) with ESMTPS id 8444A35C023
	for <tiff@lists.maptools.org>; Fri, 20 Jun 2014 12:29:21 -0500 (EST)
Received: by mail-qc0-f179.google.com with SMTP id x3so3859410qcv.10
	for <tiff@lists.maptools.org>; Fri, 20 Jun 2014 10:29:22 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.140.49.76 with SMTP id p70mr6723514qga.86.1403285362512;
	Fri, 20 Jun 2014 10:29:22 -0700 (PDT)
Received: by 10.96.132.5 with HTTP; Fri, 20 Jun 2014 10:29:22 -0700 (PDT)
In-Reply-To: <trinity-42718f24-e251-4e52-9ac4-145ab0691709-1403270598852@3capp-gmx-bs36>
References: <trinity-402562ba-f539-4e48-8b23-f04357aa30b7-1402998363797@3capp-gmx-bs38>
	<CAAcuQeb-zYkKaHXxCzqmxvG-27eMjwVUMtcQ+EfCa_3uQtpQww@mail.gmail.com>
	<trinity-42718f24-e251-4e52-9ac4-145ab0691709-1403270598852@3capp-gmx-bs36>
Date: Fri, 20 Jun 2014 13:29:22 -0400
Message-ID: <CAAcuQea6knMkwV-fRLD6zSk1og1o25acVStu_+65hpT9FHdwhg@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: =?UTF-8?Q?Benedikt_F=C3=BChrer?= <Banshee999@gmx.de>
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] In-memory tiffs
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="===============1841786532=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1841786532==
Content-Type: multipart/alternative; boundary=001a11370a348d1a8604fc47d5ea

--001a11370a348d1a8604fc47d5ea
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Benedikt,

2014-06-20 9:23 GMT-04:00 "Benedikt F=C3=BChrer" <Banshee999@gmx.de>:
>
> And that I find, is somewhat strange because I doubt I'm the first person
> who wants to use it like that. How was this supposed to be done then?
>

I suspect it was simply never done with more than one directory. So it's a
bug / design issue with the libtiff C++ API. Given the way libtiff works,
the "output" API should probably have used a std::iostream. The easiest way
to fix this without breaking anything would be to add a 3rd TIFFStreamOpen
with just that. I'm a bit rusty on how the read and write parts interact
however (specifically, if they always, sometimes or never have separate
offsets in the stream). If you must use an already installed (older)
libtiff then you'll have to roll your own with TIFFClientOpen().

Olivier

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

<div dir=3D"ltr">Hi Benedikt,<br><div class=3D"gmail_extra"><br><div class=
=3D"gmail_quote">2014-06-20 9:23 GMT-04:00 &quot;Benedikt F=C3=BChrer&quot;=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:Banshee999@gmx.de" target=3D"_blan=
k">Banshee999@gmx.de</a>&gt;</span>:<span style=3D"font-family:Verdana;font=
-size:12px">=C2=A0</span><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);=
border-left-style:solid;padding-left:1ex">
<div><div style=3D"font-family:Verdana;font-size:12px"><div>

<div>And that I find, is somewhat strange because I doubt I&#39;m the first=
 person who wants to use it like that. How was this supposed to be done the=
n?</div>

<div></div></div></div></div></blockquote><div><br></div><div>I suspect it =
was simply never done with more than one directory. So it&#39;s a bug / des=
ign issue with the libtiff C++ API. Given the way libtiff works, the &quot;=
output&quot; API should probably have used a std::iostream. The easiest way=
 to fix this without breaking anything would be to add a 3rd TIFFStreamOpen=
 with just that. I&#39;m a bit rusty on how the read and write parts intera=
ct however (specifically, if they always, sometimes or never have separate =
offsets in the stream). If you must use an already installed (older) libtif=
f then you&#39;ll have to roll your own with=C2=A0TIFFClientOpen().</div>
<div><br></div><div>Olivier</div><div><br></div></div></div></div>

--001a11370a348d1a8604fc47d5ea--

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