Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: <filtered@awaresystems.be>
Received: from mx4.public.one.com ([10.246.18.24])
	by mail6.local.one.com (Dovecot) with LMTP id M8YcEZh/41dZiAEAsyOMew
	for <filtered@awaresystems.be>; Thu, 22 Sep 2016 07:13:41 +0000
X-HalOne-ID: 16cba14e-8094-11e6-9067-b82a72d0454d
Received: from mail-qk0-f174.google.com (unknown [209.85.220.174])
	by mx4.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Thu, 22 Sep 2016 07:13:40 +0000 (UTC)
Received: by mail-qk0-f174.google.com with SMTP id g67so8266989qkd.0
        for <filtered@awaresystems.be>; Thu, 22 Sep 2016 00:13:40 -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:from:message-id:date:user-agent:mime-version:cc:subject
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:mime-version:sender:errors-to;
        bh=WoWSfYJenvwUKGn/e/CYh0+U1OzcShUWrqrw1eTN1+0=;
        b=h/JT4ryvXaefEatKW0idtbpgnY5AuEm+8ugbX00D9jxFJpNEnS5qLI4z8anybbIyPp
         3Qm16SpgfMj6JG/bAXkq0cRzrHq3tM5zv2kxfFT2COS/xkJXDzNRrxq69kbiRo/EFcE+
         I+Z2YsV9GjiNW3QAIB/V2tZgfSrFIOyPt4wJU9xoKHFGLRbPJVPfkvykjbts6lH4y8yL
         csp/BHbgzaTPo3sxDqGOse9fj2WE075xp7zKGUdElVtlzxgR8BrSjtEiSHHZrR00WVyV
         G/3pv9AXVXHJfOI1s7P42Bs/TWAlAdZew4cfGBZHw58u0v4jr3jGS8O2im5XJ3pVnaWH
         iiuw==
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: AA6/9Rkby26bqC6zTuR8zmaPwc8CQ+LM3WOpGCxbcsG5M/22/ArLOXqlwxvnsI86GIcnp3GRxR+AydOQQl6V+kkDr8cObVs=
X-Received: by 10.55.154.20 with SMTP id c20mr403370qke.25.1474528419205;
        Thu, 22 Sep 2016 00:13:39 -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.161.4 with SMTP id k4csp2442527qke;
        Thu, 22 Sep 2016 00:13:38 -0700 (PDT)
X-Received: by 10.194.75.227 with SMTP id f3mr531990wjw.2.1474528418405;
        Thu, 22 Sep 2016 00:13:38 -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 n64si37324496wmn.41.2016.09.22.00.13.30;
        Thu, 22 Sep 2016 00:13:38 -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 6714835C055;
	Thu, 22 Sep 2016 02:12:44 -0500 (EST)
Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de
	[129.206.100.212])
	by lists.maptools.org (Postfix) with ESMTPS id B308535C053
	for <tiff@lists.maptools.org>; Thu, 22 Sep 2016 02:07:07 -0500 (EST)
Received: from serv25.ub.uni-heidelberg.de (serv25.ub.uni-heidelberg.de
	[147.142.186.75])
	by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id u8M7772e007863
	for <tiff@lists.maptools.org>; Thu, 22 Sep 2016 09:07:07 +0200
Received: from localhost (localhost [127.0.0.1])
	by serv25.ub.uni-heidelberg.de (Postfix) with ESMTP id 47B9E3FFE9;
	Thu, 22 Sep 2016 09:07:07 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ub.uni-heidelberg.de
Received: from serv25.ub.uni-heidelberg.de ([127.0.0.1])
	by localhost (serv25.ub.uni-heidelberg.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 7mgnk7NqpIHX; Thu, 22 Sep 2016 09:07:07 +0200 (CEST)
Received: from [147.142.85.36] (pers16.ub.uni-heidelberg.de [147.142.85.36])
	by serv25.ub.uni-heidelberg.de (Postfix) with ESMTP id 2770E3FF96;
	Thu, 22 Sep 2016 09:07:07 +0200 (CEST)
To: tiff@lists.maptools.org
From: Jochen Barth <barth@ub.uni-heidelberg.de>
Message-ID: <1838192f-b8d2-ff40-9560-edab4786fd5b@ub.uni-heidelberg.de>
Date: Thu, 22 Sep 2016 09:07:07 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
	Thunderbird/45.2.0
MIME-Version: 1.0
Cc: Leonhard Maylein <Maylein@ub.uni-heidelberg.de>
Subject: [Tiff] tiffcp - skipped tags
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="===============1980557616=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

This is a multi-part message in MIME format.
--===============1980557616==
Content-Type: multipart/alternative;
 boundary="------------CB75E33B43512A7E988392EE"

This is a multi-part message in MIME format.
--------------CB75E33B43512A7E988392EE
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Dear list members,

when using tiffcp to decompress lzw-tiffs,
the tags
TIFFTAG_XMLPACKET,
TIFFTAG_RICHTIFFIPTC,
TIFFTAG_PHOTOSHOP
and
TIFFTAG_EXIFIFD (including contents of EXIFIFD)
are not copied.

For the first 3 ones I've added this lines to tools/tiffcp.c:
diff -r b39624c02bfb -r 72eecadbc278 tools/tiffcp.c
--- a/tools/tiffcp.c    Wed Sep 21 13:20:13 2016 +0200
+++ b/tools/tiffcp.c    Wed Sep 21 15:03:02 2016 +0200
@@ -767,6 +767,30 @@
         {
                 uint32 len32;
                 void** data;
+               if (TIFFGetField(in, TIFFTAG_XMLPACKET, &len32, &data))
+                       TIFFSetField(out, TIFFTAG_XMLPACKET, len32, data);
+       }
+       {
+               uint32 len32;
+               void** data;
+               if (TIFFGetField(in, TIFFTAG_RICHTIFFIPTC, &len32, &data))
+                       TIFFSetField(out, TIFFTAG_RICHTIFFIPTC, len32, 
data);
+       }
+       {
+               uint32 len32;
+               void** data;
+               if (TIFFGetField(in, TIFFTAG_PHOTOSHOP, &len32, &data))
+                       TIFFSetField(out, TIFFTAG_PHOTOSHOP, len32, data);
+       }
+       {
+               uint32 len32;
+               void** data;
                 if (TIFFGetField(in, TIFFTAG_ICCPROFILE, &len32, &data))
                         TIFFSetField(out, TIFFTAG_ICCPROFILE, len32, data);
         }

Is this something which could be added to tiffcp permanently?

Kind regards,
Jochen

-- 
J. Barth * IT, Universitaetsbibliothek Heidelberg * 06221 / 54-2580


--------------CB75E33B43512A7E988392EE
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear list members,<br>
    <br>
    when using tiffcp to decompress lzw-tiffs,<br>
    the tags <br>
    TIFFTAG_XMLPACKET,<br>
    TIFFTAG_RICHTIFFIPTC,<br>
    TIFFTAG_PHOTOSHOP<br>
    and<br>
    TIFFTAG_EXIFIFD (including contents of EXIFIFD)<br>
    are not copied.<br>
    <br>
    For the first 3 ones I've added this lines to tools/tiffcp.c:<br>
    diff -r b39624c02bfb -r 72eecadbc278 tools/tiffcp.c<br>
    --- a/tools/tiffcp.c    Wed Sep 21 13:20:13 2016 +0200<br>
    +++ b/tools/tiffcp.c    Wed Sep 21 15:03:02 2016 +0200<br>
    @@ -767,6 +767,30 @@<br>
            {<br>
                    uint32 len32;<br>
                    void** data;<br>
    +               if (TIFFGetField(in, TIFFTAG_XMLPACKET, &amp;len32,
    &amp;data))<br>
    +                       TIFFSetField(out, TIFFTAG_XMLPACKET, len32,
    data);<br>
    +       }<br>
    +       {<br>
    +               uint32 len32;<br>
    +               void** data;<br>
    +               if (TIFFGetField(in, TIFFTAG_RICHTIFFIPTC,
    &amp;len32, &amp;data))<br>
    +                       TIFFSetField(out, TIFFTAG_RICHTIFFIPTC,
    len32, data);<br>
    +       }<br>
    +       {<br>
    +               uint32 len32;<br>
    +               void** data;<br>
    +               if (TIFFGetField(in, TIFFTAG_PHOTOSHOP, &amp;len32,
    &amp;data))<br>
    +                       TIFFSetField(out, TIFFTAG_PHOTOSHOP, len32,
    data);<br>
    +       }<br>
    +       {<br>
    +               uint32 len32;<br>
    +               void** data;<br>
                    if (TIFFGetField(in, TIFFTAG_ICCPROFILE, &amp;len32,
    &amp;data))<br>
                            TIFFSetField(out, TIFFTAG_ICCPROFILE, len32,
    data);<br>
            }<br>
    <br>
    Is this something which could be added to tiffcp permanently?<br>
    <br>
    Kind regards,<br>
    Jochen<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
J. Barth * IT, Universitaetsbibliothek Heidelberg * 06221 / 54-2580
</pre>
  </body>
</html>

--------------CB75E33B43512A7E988392EE--

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