Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx7.public.one.com ([10.246.18.27])
	by mail6.local.one.com (Dovecot) with LMTP id v8GODdUXD1irHgAAsyOMew
	for <filtered@awaresystems.be>; Tue, 25 Oct 2016 08:54:18 +0000
X-HalOne-ID: 9cde7c62-9a90-11e6-92ff-549f350a6292
Received: from mail-qt0-f174.google.com (unknown [209.85.216.174])
	by mx7.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Tue, 25 Oct 2016 08:54:17 +0000 (UTC)
Received: by mail-qt0-f174.google.com with SMTP id 12so5235952qtm.3
        for <filtered@awaresystems.be>; Tue, 25 Oct 2016 01:54:17 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=MofzBVZL+Q3xkUUH+Q6RfY2/6S2Mr4mJLCXSWoirL8c=;
        b=gLAko8BUv8DyISuatPDPFbedKdqyr6yjluiNscKEhXXqoFni9MIgsPccF7zVG2Z8k/
         WwIllM//In0K9DPMQzKN4Q4UerbIGx7mTZpkUct2i7RkXdqP/9LFJkqZMBSUdg5kM2yo
         Aw/yNOZ1XtYk6sG2DYhezC4LGoGS4uo0I/foKsseiJJMWOE4sYLyN0ME3RC+wOUUOqpM
         cPZL9VgcKfDQPXgnN/vpTi8SiCk3utP5aJffOIim3pYs7QAJ7pQknZNAtlAImyz5zqyL
         PQELv0PgC0UFK8VN5unnwOW7qJq18O1sfyTIaJ4OWJW2jNRvW7jZVtY/LPVytq4vSR36
         SuLQ==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: ABUngvecdG1Ess4LA/5OpLg+VNEjSEsTozTHPgCjIRvQg4LP86iPfmwKkwaAFazNwJ75kE3CD88NCwWTlkFxyyyoEvdvuQE=
X-Received: by 10.200.46.43 with SMTP id r40mr19006966qta.145.1477385656277;
        Tue, 25 Oct 2016 01:54:16 -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.55.201.67 with SMTP id q64csp1927066qki;
        Tue, 25 Oct 2016 01:54:15 -0700 (PDT)
X-Received: by 10.28.4.16 with SMTP id 16mr2229760wme.39.1477385655134;
        Tue, 25 Oct 2016 01:54:15 -0700 (PDT)
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id q8si21057497wjq.171.2016.10.25.01.54.14;
        Tue, 25 Oct 2016 01:54:15 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 6455F35C038;
	Tue, 25 Oct 2016 03:53:20 -0500 (EST)
Received: from achilles.binarus.de (achilles.binarus.de [176.9.5.60])
	by lists.maptools.org (Postfix) with ESMTPS id EE05F35C036
	for <tiff@lists.maptools.org>; Tue, 25 Oct 2016 03:53:06 -0500 (EST)
X-Envelope-To: <tiff@lists.maptools.org>
Received: from [192.168.20.100] (p4FEFE45E.dip0.t-ipconnect.de [79.239.228.94])
	(authenticated bits=0)
	by achilles.binarus.de (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id
	u9P8r58O005024
	(version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128
	verify=NOT)
	for <tiff@lists.maptools.org>; Tue, 25 Oct 2016 10:53:05 +0200
To: tiff@lists.maptools.org
References: <7571e8e0-f9f5-28c0-f1da-c18f5c9166a1@binarus.de>
	<580DE9F0.20205@osa.pri.ee>
	<c03aff7c-e11d-715c-bd3a-6e5c72d9cd07@binarus.de>
	<580E5664.6020209@osa.pri.ee>
From: Recursive <lists@binarus.de>
Message-ID: <cb346f39-1aac-a130-177a-637eec87a116@binarus.de>
Date: Tue, 25 Oct 2016 10:53:04 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
	Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <580E5664.6020209@osa.pri.ee>
Subject: Re: [Tiff] Question regarding tag StripOffsets when there is only
 one strip
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On 24.10.2016 20:43, Paavo Helde wrote:

> Out of curiosity, what is the operation on TIFF files which cannot be 
> done via LibTIFF? Maybe the LibTIFF library should be enhanced to 
> include this operation?

I am not sure if I should tell that exactly right now because I am seriously thinking about selling that software for a small fee if it works :-) But maybe it will never work because I have understood something horribly wrong and at a very basic level. I promise I will describe the problem and the function of the software when the first version is ready. I am hoping to come up with it in one or two weeks.

> If your software is meant for public use and work on TIFF files from 
> unknown origin, then you cannot ignore BigTIFF. There is at least one 
> large company which produces all TIFF-s as BigTIFF even if they are only 
> 10 kB in size. The format will certainly become more popular in the future.

This is a very valuable hint. Thank you very much. Indeed, until now, I was hoping that I could ignore BigTIFF.

I will now finish the first version of my software which will only support TIFF; this is merely a proof of concept. Then, I will look for the BigTIFF specification and hope that I understand it as easily as the TIFF 6.0 specification (which is written very well and clearly IMHO) and that I can change my software accordingly to add BigTIFF support.

> You need also support tiled TIFF-s. You need also support all the 
> different compression schemes. Do you really want to implement LZW and 
> JPEG decompression from scratch? And are you prepared for upgrading your 
> software when new compression schemes or other features are added in the 
> future?
> 
> Are you prepared to handle RowsPerStrip tags which are missing or have 
> invalid value (happens in many TIFF files)? Are you prepared to handle 
> the missing or duplicate zero terminators in the end of string values? 
> Etc, etc.
> 
> There is a reason why software libraries exist.

You are completely right. But I think that LibTIFF can't be changed easily to provide what I need; it seems to be a problem of LibTIFF's API architecture / paradigm. Adding to my own impression, I already have asked in the forum of ImageMagick if they could incorporate what I need, but got the answer that there are no chances due to the nature of LibTIFF and how ImageMagick has to use it.

I would be more than happy if my software could use LibTIFF under the hoods. Therefore, I have thoroughly studied its API before trying to do things myself, but unfortunately, I see absolutely no way to achieve what I want.

Furthermore, before beginning my software, I already had set up a development environment for tests with LibTIFF (Eclipse CDT, Cygwin64, cygwin-gcc, LibTIFF from Cygwin). I have made a very simple test program which used LibTIFF; that ended with a segmentation fault although I didn't use pointers, arrays or other dangerous things myself. That was the point where I gave up, especially because I already was convinced that LibTIFF currently does not implement what I need anyway.

Thank you very much again,

Recursive

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