Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas024.isp.belgacom.be (localhost [127.0.0.1])
        by inav009.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k7BEf5Fv001842
        for <joris.at.lebbeke@skynet.be>; Fri, 11 Aug 2006 16:41:06 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.4.216])
        by inas024.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k7BEf13u016979
        for <joris.at.lebbeke@skynet.be>; Fri, 11 Aug 2006 16:41:01 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx013.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k7BEew7H014561
        for <joris.at.lebbeke@skynet.be>; Fri, 11 Aug 2006 16:40:58 +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 k7BERdeW000520;
	Fri, 11 Aug 2006 10:28:42 -0400
Received: from scmze001.ssan.egs-seg.gc.ca (scmze001.ssan.egs-seg.gc.ca
	[205.194.19.85])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k7BERbtN000517
	for <tiff@lists.maptools.org>; Fri, 11 Aug 2006 10:27:37 -0400
Received: from bulwark1.ic.gc.ca ([192.197.178.1])
	by scmze001.ssan.egs-seg.gc.ca with ESMTP; 11 Aug 2006 10:27:36 -0400
Received: from msg-gate2.ic.gc.ca ([142.53.11.42]) by bulwark1.ic.gc.ca
	via smtpd (for scmze001.ssan.egs-seg.gc.ca [205.194.19.85]) with ESMTP;
	Fri, 11 Aug 2006 10:27:36 -0400
Received: from parapet11.ic.gc.ca (parapet11.ic.gc.ca [142.53.11.253])
	by msg-gate2.ic.gc.ca (Switch-3.1.8/Switch-3.1.7) with ESMTP id
	k7BERagG017444
	for <tiff@lists.maptools.org>; Fri, 11 Aug 2006 10:27:36 -0400 (EDT)
Received: from msg-con2.icent.ic.gc.ca by parapet11.ic.gc.ca
	via smtpd (for msg-gate2.ic.gc.ca [142.53.11.42]) with ESMTP;
	Fri, 11 Aug 2006 10:27:36 -0400
Received: from msg-con1.icent.ic.gc.ca ([142.53.28.148]) by
	msg-con2.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Fri, 11 Aug 2006 10:27:36 -0400
Received: from msg-mb2.icent.ic.gc.ca ([142.53.28.151]) by
	msg-con1.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Fri, 11 Aug 2006 10:27:36 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: [Tiff] EPS Tiff Preview.
Date: Fri, 11 Aug 2006 10:27:35 -0400
Message-ID: <F78E6BBD22A6FC4489EBE250454079080559256A@msg-mb2.icent.ic.gc.ca>
In-Reply-To: <200608111047421.SM01052@amitlap>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] EPS Tiff Preview.
Thread-Index: Aca9BX3I6IcKv5EgQnGRMYgHaVQDZwARuKGQ
From: "Pallek, Bernie: #CIPO - OPIC" <Pallek.Bernie@ic.gc.ca>
To: <tiff@lists.maptools.org>
X-OriginalArrivalTime: 11 Aug 2006 14:27:36.0323 (UTC)
	FILETIME=[4A9A4530:01C6BD52]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k7BERbtN000517
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.00001981
X-MSP-STORE: Fri, 11 Aug 2006 16:41:10 +0200
Status: RO

Amit wrote:
> The problem right now I am facing is that LibTiff api 
> TIFFOpen returns a NULL pointer when used with tiff images 
> extracted from 
> EPS files, whereas it returns a valid pointer for normal Tiff images.
[...]
> Is there any difference between a normal Tiff Image and Tiff 
> Preview Image Extracted from EPS. 

You could try running tiffinfo or tiffdump on your problem TIFF, but the most effective way to track down the problem is to build a debug version of your application, trace into TIFFOpen(), and dig down as deep as necessary until you find the root of the problem.

Some sanity checks (though you've probably already tried them):
- try viewing the problem image with another known-good TIFF viewer
- examine header with hex editor to verify magic code, etc
- filename/path okay?
- permissions okay?
- sharing problems?  (file already opened exclusively by another process)

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
