Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas026.isp.belgacom.be (localhost [127.0.0.1])
        by inav005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id jBU061ff028196
        for <joris.at.lebbeke@skynet.be>; Fri, 30 Dec 2005 01:06:01 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx010.isp.belgacom.be (inmx010.isp.belgacom.be [195.238.4.73])
        by inas026.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id jBU05qj8024922
        for <joris.at.lebbeke@skynet.be>; Fri, 30 Dec 2005 01:05:53 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id jBU05h1m014664
        for <joris.at.lebbeke@skynet.be>; Fri, 30 Dec 2005 01:05:44 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jBU01O9I015727;
	Thu, 29 Dec 2005 19:01:31 -0500
Received: from cgp.spb.edu (vlan3.cgp.spb.edu [195.70.196.207])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jBU00FdT015689
	for <tiff@lists.maptools.org>; Thu, 29 Dec 2005 19:00:15 -0500
Received: from wg.pu.ru ([193.124.85.219] verified)
	by cgp.spb.edu (CommuniGate Pro SMTP 4.3c5)
	with ESMTP id 18853279 for tiff@lists.maptools.org;
	Fri, 30 Dec 2005 02:59:17 +0300
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id XAA12119
	for tiff@lists.maptools.org; Thu, 29 Dec 2005 23:59:58 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.13.5/8.13.5/Debian-3) with ESMTP id jBTNt9P6019887
	for <tiff@lists.maptools.org>; Fri, 30 Dec 2005 02:55:09 +0300
Received: (from dron@localhost)
	by ak4719.spb.edu (8.13.5/8.13.5/Submit) id jBTNt9x0019883
	for tiff@lists.maptools.org; Fri, 30 Dec 2005 02:55:09 +0300
Date: Fri, 30 Dec 2005 02:55:09 +0300
From: Andrey Kiselev <dron@ak4719.spb.edu>
To: tiff@lists.maptools.org
Subject: [Tiff] [ANNOUNCE]: Libtiff 3.7.3 released
Message-ID: <20051229235509.GA19805@ak4719.spb.edu>
Mail-Followup-To: tiff@lists.maptools.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="a8Wt8u1KmwUX3Y2C"
Content-Disposition: inline
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on ak4719
X-Virus-Status: Clean
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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
X-UIDL: 000000000023ceae.00001088
X-MSP-STORE: Fri, 30 Dec 2005 01:06:07 +0100
Status:   


--a8Wt8u1KmwUX3Y2C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello, folks,

The new version of the libtiff package has been released. You can grab
sources from the our FTP site:

 ftp://ftp.remotesensing.org/libtiff/tiff-3.8.0.tar.gz
 ftp://ftp.remotesensing.org/libtiff/tiff-3.8.0.zip

Release notes are here:

 http://www.remotesensing.org/libtiff/v3.8.0.html

The most important feature of the new release is a custom directory
support. This support is a bit limited for now (jus because of my time
constraints, but I am working on the full support for the custom
directories, it will be available very shortly with the next libtiff
release). For now read only support for custom directories should be
fully functional. You should read above as "read-only EXIF support has
been added to libtiff".

There is no documentation on new functionality (again, I am working on
it and it will be added in the next release), but the sample code has
been attached to this message.

I am very sorry that I can't write any additional comments to that peace
of code, so those, who do not understand how it works should wait for
the next release, it will be issued really shortly.

What is works for now: arbitrary custom directory reading should work,
you just should implement the TIFFFieldInfo array with the directory
structure and call the TIFFReadCustomDirectory() function. Note, that
TIFFReadCustomDirectory() can get any TIFFFieldInfo array, with any tag
numbering and this is the way to use separate tag namespace. For EXIF
directory there is hardcoded tag array and a special function
TIFFReadEXIFDirectory().

Sample image pack has been updated too:

 ftp://ftp.remotesensing.org/pub/libtiff/pics-3.8.0.tar.gz

Happy New Year!
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517

--a8Wt8u1KmwUX3Y2C
Content-Type: text/x-csrc; charset=us-ascii
Content-Disposition: attachment; filename="exif.c"

#include <tiffio.h>
#include <stdio.h>

#define MYTAG_EXIFVERSION 36864

static const TIFFFieldInfo
myFieldInfo[] = {
   { MYTAG_EXIFVERSION,	4, 4,		TIFF_UNDEFINED,	FIELD_CUSTOM,
      1,	0,	"ExifVersion" }
};

int
main(int argc, char **argv)
{
    TIFF    *tiff;
    char    szVersion[5];
    long    iOffset;

    tiff = TIFFOpen(argv[1], "r");

    if (!TIFFGetField(tiff, TIFFTAG_EXIFIFD, &iOffset))
        return 1;

    TIFFReadCustomDirectory(tiff, iOffset, myFieldInfo,
                            sizeof(myFieldInfo)/sizeof(myFieldInfo[0]));

    if (TIFFGetField(tiff, MYTAG_EXIFVERSION, szVersion)) {
        szVersion[4] = '\0';
        printf("EXIF version is: %.2x%.2x%.2x%.2x\n",
               szVersion[0], szVersion[1], szVersion[2], szVersion[3]);
    }

    TIFFClose(tiff);
    return 0;
}


--a8Wt8u1KmwUX3Y2C
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/
--a8Wt8u1KmwUX3Y2C--
