X-Account-Key: account1
X-UIDL: bea22a285487b227a409e308fe416592
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Received: from lists.maptools.org (localhost [127.0.0.1])
	by mail.howardsilvan.com (Postfix) with ESMTPS id CAB31C4214C
	for <faxguy@howardsilvan.com>; Thu, 19 Feb 2015 12:27:55 -0800 (PST)
Received: from lists.maptools.org ([94.23.4.142] helo=lists.maptools.org)
	by fangorn.howardsilvan.com with SMTP (2.3.3); 19 Feb 2015 12:27:54 -0800
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 915F135C031;
	Thu, 19 Feb 2015 15:27:15 -0500 (EST)
Received: from cmta5.telus.net (cmta5.telus.net [209.171.16.78])
	by lists.maptools.org (Postfix) with ESMTP id 6999135C025
	for <tiff@lists.maptools.org>; Thu, 19 Feb 2015 15:27:07 -0500 (EST)
Received: from [192.168.0.124] ([66.183.197.4]) by cmta5.telus.net
	with TELUS	id uLTG1p00506AgfW01LTGad; Thu, 19 Feb 2015 13:27:17 -0700
X-Authority-Analysis: v=2.0 cv=fa9zPTsF c=1 sm=2
	a=1KGYXGvGT2U2M4UDLDpMUg==:17 a=BuSZqJz0X38A:10 a=aatUQebYAAAA:8
	a=i6yAs8m4AAAA:8 a=FC2v61J8nQw3suVp4JYA:9 a=QEXdDO2ut3YA:10
	a=C4SoQffdHqUA:10	a=X1fPynBK8x8A:10 a=NWVoK91CQyQA:10 a=ijbWBObEvQzR5iQx:21
	a=BwcQ2cAlRg5ruCc0:21 a=qJNVeH4v6e07p2iAKysA:9 a=_W_S_7VecoQA:10
	a=1KGYXGvGT2U2M4UDLDpMUg==:117
X-Telus-Outbound-IP: 66.183.197.4
Message-ID: <54E64724.30505@telus.net>
Date: Thu, 19 Feb 2015 12:27:16 -0800
From: Arnold <acorn12@telus.net>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64;	rv:31.0) Gecko/20100101
 Thunderbird/31.4.0
MIME-Version: 1.0
To: tiff@lists.maptools.org
Subject: [Tiff] Writing new tags to a TIFF file
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>
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-Assp-ID: fangorn.howardsilvan.com m1-77675-06571
X-Assp-Session: 7F06F6CDD8C8 (mail 1)
X-Assp-Detected-RIP: 66.183.197.4, 209.171.16.78
X-Assp-Source-IP: 66.183.197.4
X-Assp-Envelope-From: tiff-bounces@lists.maptools.org
X-Assp-Intended-For: faxguy@howardsilvan.com
X-Assp-Version: 2.3.3(14029) on fangorn.howardsilvan.com
X-Assp-Server-TLS: yes
X-Assp-Delay: not delayed (whitelisted); 19 Feb 2015 12:27:55 -0800
X-Assp-Whitelisted: Yes (whitelistdb)
Return-Path: tiff-bounces@lists.maptools.org
Content-Type: multipart/mixed;
	boundary="===============1971827272=="

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

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

Some time ago I ended up creating a number ( ~150- 200 ) TIFF files, but 
the software that created them did not include a creation date.

Is it possible, as part of other work with these tiff files, to write 
the data & time to these files?
My current attempts seem to fail, although there is no indication of any 
errors and TIFFSetField() returns 1
///
//  TIFF *tif=TIFFOpen( wsFilePathAndName.c_str(), "rw");//
//  // from http://www.awaresystems.be/imaging/tiff/tifftags/datetime.html//
//  // The format is: "YYYY:MM:DD HH:MM:SS", with hours like those on a 
24-hour clock, //
//  //and one space character between the date and the time. The length 
of the string, //
//  //including the terminating NUL, is 20 bytes. //
//  int i = TIFFSetField( tif, TIFFTAG_DATETIME, ///"2013:09:10 
14:53:42"/ );//
//  TIFFClose(tif);/

What am I missing?
TIA,
Arnold

--------------060409020806070408040302
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    Some time ago I ended up creating a number ( ~150- 200 ) TIFF files,
    but the software that created them did not include a creation date.<b=
r>
    <br>
    Is it possible, as part of other work with these tiff files, to
    write the data &amp; time to these files?<br>
    My current attempts seem to fail, although there is no indication of
    any errors and TIFFSetField() returns 1<br>
    <i>=C2=A0 </i><i><br>
    </i><i>=C2=A0 TIFF *tif=3DTIFFOpen( wsFilePathAndName.c_str(), "rw");=
</i><i><br>
    </i><i>=C2=A0 // from
      <a class=3D"moz-txt-link-freetext" href=3D"http://www.awaresystems.=
be/imaging/tiff/tifftags/datetime.html">http://www.awaresystems.be/imagin=
g/tiff/tifftags/datetime.html</a></i><i><br>
    </i><i>=C2=A0 // The format is: "YYYY:MM:DD HH:MM:SS", with hours lik=
e
      those on a 24-hour clock, </i><i><br>
    </i><i>=C2=A0 //and one space character between the date and the time=
.
      The length of the string, </i><i><br>
    </i><i>=C2=A0 //including the terminating NUL, is 20 bytes. </i><i><b=
r>
    </i><i>=C2=A0 int i =3D TIFFSetField( tif, TIFFTAG_DATETIME, </i><i><=
i>"2013:09:10
        14:53:42"</i> );</i><i><br>
    </i><i>=C2=A0 TIFFClose(tif);</i><br>
    <br>
    What am I missing?<br>
    TIA,<br>
    Arnold<br>
  </body>
</html>

--------------060409020806070408040302--

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


