Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas012.isp.belgacom.be (localhost [127.0.0.1])
        by inav006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j7O558Gn010407
        for <joris.at.lebbeke@skynet.be>; Wed, 24 Aug 2005 07:05:08 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx006.isp.belgacom.be (inmx006.isp.belgacom.be [195.238.2.106])
        by inas012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j7O555JP006608
        for <joris.at.lebbeke@skynet.be>; Wed, 24 Aug 2005 07:05:05 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j7O54uQl025940
        for <joris.at.lebbeke@skynet.be>; Wed, 24 Aug 2005 07:04:56 +0200
        (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 j7O4xmLB017619;
	Wed, 24 Aug 2005 01:00:01 -0400
Received: from web60217.mail.yahoo.com (web60217.mail.yahoo.com
	[209.73.178.105])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id j7O4xjvo017616
	for <tiff@lists.maptools.org>; Wed, 24 Aug 2005 00:59:45 -0400
Received: (qmail 63099 invoked by uid 60001); 24 Aug 2005 04:59:44 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=m5hSTXIFw06qgQXiG77LxwSxN4HxkLANdq4khAnkSKL3py7otZQYazXN7Zv9E8QG33aW2JgrSm/pEXFiEKbFa4ZRvYpiF0fLlxiZBinZ+cwTtonjV6ZumbaNIDOvy2SulGWrCawIHDfGaCSjKysiwbT2TcTsWBEGnFShnhv0AbU=
	; 
Message-ID: <20050824045944.63097.qmail@web60217.mail.yahoo.com>
Received: from [192.146.101.26] by web60217.mail.yahoo.com via HTTP;
	Tue, 23 Aug 2005 21:59:43 PDT
Date: Tue, 23 Aug 2005 21:59:43 -0700 (PDT)
From: katrina maramba <ka3na_423@yahoo.com>
Subject: Re: [Tiff] TIFF Thumbnail
To: Joris <joris.at.lebbeke@skynet.be>
In-Reply-To: <003b01c5a497$e11b0af0$df9cf651@dfgrrxsknr4e>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Cc: TIFF mailing list <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.00000b2c
X-MSP-STORE: Wed, 24 Aug 2005 07:05:13 +0200
Status:   

Hello,

I encountered a problem on one of the thumbnails of
the images I have.. 
While parsing the thumbnail data through the API
TIFFReadRGBAStrip, it had an error in TIFFRGBAImageOK
that says "Sorry, can not handle images with 0-bit
samples."

I checked in AsTiffTagViewer, it displayed:

BitsPerSample   Short    3 (count)     8,8,8 (value)

But in Hex Workshop:

The value pointed by the offset in tag 102 of the
thumbnail IFD is indeed 0.  

How come the AsTiffTagViewer found the three 8's?  Is
there a behavior that the child (which is the
thumbnail) would inherit this particular
characteristic of the parent (main image)???  

Please help.  Thanks!

Katrina


--- Joris <joris.at.lebbeke@skynet.be> wrote:

> Katrina,
> 
> Your quoting style is defenetly improving. Thanks
> for posting a message
> that doesn't take so much effort to 'decode'!
> 
> However, you may or may not be aware, but there's
> still two problems
> left:
> - There is a HTML version included. Granted, we
> don't flame everyone
> posting HTML, that would otherwise be a lot of work.
> - In the HTML version, the complete mail is still
> marked as quote. That
> is confusing. Many readers will quickly skim it,
> used to visually
> skipping bad over-quotes, and think there's not
> actually anything of
> your own added to the quote, and thus not even read
> it. You may want to
> solve that, to ensure your messages to actually be
> noticed. It'll save
> those who do the additional effort of reading
> through to find your
> follow-up question some time, too.
> 
> The best solution, depending on your mail client,
> might be to not
> include a HTML version at all, thus being able to
> focus on the single
> plain text version and get that right. It is
> recommended to not post
> HTML to the mailing list anyway. Thanks again for
> caring!
> 
> katrina maramba wrote:
> > Assuming that I have determined that this image
> has a thumbnail
> > indeed, can I go and look for the thumbnail's IFD
> and and parse it
> > like the main image's directory (which is (for
> example) call
> > TIFFReadDirectory)?
> >
> > And if so, can I also go and look for the
> thumbnail's strip (using
> > strip offsets and strip byte count) and process
> the thumbnail using
> > TIFFReadRGBAStrip (which would generate RGB data)?
> >
> > If not, what would be the correct API to call to
> process the
> > thumbnail?
> 
> Yes, if the thumbnail is indeed a regular IFD (as
> opposed to private tag
> data as including in the Photoshop tag and such),
> then all normal IFD
> handling applies. There is no difference in actual
> format, nor in
> LibTiff decoding api, between a 'regular' image and
> a thumbnail thereof.
> 
> 
> Joris Van Damme
> info@awaresystems.be
> http://www.awaresystems.be/
> Download your free TIFF tag viewer for windows here:
>
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
