Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas010.isp.belgacom.be (localhost [127.0.0.1])
        by inav028.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id jB688g9a006675
        for <joris.at.lebbeke@skynet.be>; Tue, 6 Dec 2005 09:08:43 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.5.90])
        by inas010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id jB688Ygm000984
        for <joris.at.lebbeke@skynet.be>; Tue, 6 Dec 2005 09:08:40 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id jB688VEj021502
        for <joris.at.lebbeke@skynet.be>; Tue, 6 Dec 2005 09:08:32 +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 jB67wc8H023554;
	Tue, 6 Dec 2005 03:00:08 -0500
Received: from mail.gmx.net (mail.gmx.de [213.165.64.20])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id jB67waJO023551
	for <tiff@lists.maptools.org>; Tue, 6 Dec 2005 02:58:36 -0500
Received: (qmail invoked by alias); 06 Dec 2005 07:58:34 -0000
Received: from dialin105128.justdsl.de (EHLO sirius.rasena) [85.25.105.128]
	by mail.gmx.net (mp019) with SMTP; 06 Dec 2005 08:58:34 +0100
X-Authenticated: #2969065
Received: by sirius.rasena (Postfix, from userid 500)
	id C28A01284E6; Tue,  6 Dec 2005 09:04:47 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by sirius.rasena (Postfix) with ESMTP id AE9B11284E5;
	Tue,  6 Dec 2005 09:04:47 +0100 (CET)
Date: Tue, 6 Dec 2005 09:04:47 +0100 (CET)
From: Kai-Uwe Behrmann <ku.b@gmx.de>
X-X-Sender: kuwe@sirius.rasena
To: John Engelke <john.engelke@gmail.com>
Subject: Re: [Tiff] how to split layers in tiff file
In-Reply-To: <464fbb2d0512051507h5d95b29bxfe666d6d018180ec@mail.gmail.com>
Message-ID: <Pine.LNX.4.61.0512060836230.8002@sirius.rasena>
References: <Pine.SOC.4.60.0512051524050.4804@blade.simplesystems.org>
	<20051205223028.7214.qmail@web54108.mail.yahoo.com>
	<464fbb2d0512051507h5d95b29bxfe666d6d018180ec@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Y-GMX-Trusted: 0
Cc: tiff@lists.maptools.org
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.00000f17
X-MSP-STORE: Tue, 06 Dec 2005 09:08:43 +0100
Status: RO

Am 05.12.05, 15:07 -0800 schrieb John Engelke:

> There is information about a Photoshop-specific Image Source Data tag
> in the March 22, 2002, posting of Adobe Photoshop TIFF Technical
> Notes. ( http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf
> ) It states that the tag "37724" contains "the layer and mask
> information found in a typical layered Photoshop file". So that is
> where the information on photoshop layers, not channels, is contained.
> 
> Does anyone know of a TIFF processing library, command-line tool, API

Try tiffsplit. It comes with libtiff and lays in the tool directory.

> or anything else that can deal with this Adobe tag. I know that
> Photoshop and GIMP deal with it, and I am just hoping for something

Grepping in the Gimp plug-in sources shows no support for this tag. The 
layer support is done without this infos provided by this specialised tag.

> server side, libtiff or otherwise. I am sorry I would develop this
> myself but there is just no time, that is why I am seeking a mature
> library that can handle these things. Please help ...

Did you search the libtiff email archive? I think this toppic was several 
times explained.

Look for something like: directory

The following code snippet should count the layers (IFDs) in a tiff file:
while (TIFFReadDirectory (tif)) { count++; }


> P.S. The handling of Photoshop layers would be a great addition to
> libtiff ... (that is if I'm not mistaken by now that it can't handle
> this ...)

I did not see photoshop originated tiffs yet. Curious for an example. Can 
you provide one?
 
regards
Kai-Uwe Behrmann
                                + development for color management 
                                + imaging / panoramas
                                + email: ku.b@gmx.de
                                + http://www.behrmann.name


> On 12/5/05, Brad Brock <brad_brock@yahoo.com> wrote:
> > In my last post, I mean layers in the context of Photoshop and GIMP. I
> > really need a help in this topic. In fact, not only tiff file but also psd
> > file, I think both of them are very similar. Please, any help would be
> > great. Thank you.
> >
> >
> > Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote:
> > On Mon, 5 Dec 2005, John Engelke wrote:
> >
> > > Please any further information on this topic would be helpful. I have
> > > a Photoshop Tiff file with embedded layers that I need to either break
> > > out and recombine or simply delete, similar to the poster's issue. My
> > > issue is about layers as opposed to channels. I would think that since
> > > Photoshop is used in like 90+ percent of publishing operations around
> > > the world (defacto standard) that this issue would have been
> > > addressed. Any guidance whatsoever is appreciated.
> >
> > As Joris says, TIFF has "channels" rather than "layers". However,
> > extra channels can be used to implement "layers". For example, an
> > associated alpha channel is called a "layer" by Photoshop.
> >
> > Bob
> > ======================================
> > Bob Friesenhahn
> > bfriesen@simple.dallas.tx.us,
> > http://www.simplesystems.org/users/bfriesen/
> > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
> 
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
