Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id E6EAC400107
	for <info@awaresystems.be>; Mon,  6 Apr 2009 20:48:47 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-k.b-one.net (Postfix) with ESMTP id 368FCC22402
	for <info@awaresystems.be>; Mon,  6 Apr 2009 20:48:47 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id C10331D0E5254;
	Mon,  6 Apr 2009 13:48:07 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id CEC721D0E4111
	for <tiff@lists.maptools.org>; Mon,  6 Apr 2009 13:45:04 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.13.8+Sun/8.13.8) with ESMTP id
	n36Ij2Sn006021; Mon, 6 Apr 2009 13:45:02 -0500 (CDT)
Date: Mon, 6 Apr 2009 13:45:02 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Christian Henning <chhenning@gmail.com>
In-Reply-To: <949801310904061110l46100831x4ca81e87b2855361@mail.gmail.com>
Message-ID: <Pine.SOC.4.64.0904061337240.29632@freddy.simplesystems.org>
References: <949801310904060835p31b40e63h37e6c4a2073124f6@mail.gmail.com>
	<Pine.SOC.4.64.0904061126010.29632@freddy.simplesystems.org>
	<949801310904061110l46100831x4ca81e87b2855361@mail.gmail.com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="-559023410-1618603250-1239043502=:29632"
Cc: libtiff - Liste <tiff@lists.maptools.org>
Subject: Re: [Tiff] Writing tiff to in-memory buffer
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1618603250-1239043502=:29632
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Mon, 6 Apr 2009, Christian Henning wrote:
>>
>> It should be useful to use contrib/stream/tiffstream.cpp from the libtif=
f
>> source distribution as a reference. =A0The version which will be include=
d in
>> libtiff4 is updated to standard C++.
>
> Seems I need to recompile libtiff and start debugging. Does the code
> work on your machine?

I don't know if your code would work on my machine and I have also=20
never actually tested contrib/stream/tiffstream.cpp.

I am now also reminded that there is a libtiff/tif_stream.cxx which is=20
included in libtiff's C++ library.  I have spent some time updating=20
this source file for libtiff4 (but without actually testing it).

As far as the viability of TIFFClientOpen() goes, GraphicsMagick has=20
been using it for many years without any problems.

The error message you are seeing suggests that libtiff requests to=20
read back from the file it is writing and perhaps your wrapper=20
functions do not adequately support this.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-1618603250-1239043502=:29632
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/
---559023410-1618603250-1239043502=:29632--
