Received: from mailgate008.isp.belgacom.be (mailgate008.isp.belgacom.be [195.238.6.1])
	by maildelivery010.isp.belgacom.be (Postfix) with ESMTP id 0C5E31DC01B
	for <joris.at.lebbeke@skynet.be>; Thu, 15 Nov 2007 16:58:39 +0100 (CET)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 15 Nov 2007 16:58:38 +0100
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 lAFFai6h011175;
	Thu, 15 Nov 2007 10:37:04 -0500
Received: from terra.csc.depauw.edu ([163.120.18.36])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id lAFFaHQF011171
	for <tiff@lists.maptools.org>; Thu, 15 Nov 2007 10:36:17 -0500
Received: from [163.120.18.135] ([163.120.18.135])
	by terra.csc.depauw.edu (8.13.8/8.13.8) with ESMTP id lAFFa4LZ010929;
	Thu, 15 Nov 2007 10:36:11 -0500
Message-ID: <473C676A.2010002@depauw.edu>
Date: Thu, 15 Nov 2007 10:36:10 -0500
From: Ron Croonenberg <ronc@depauw.edu>
Organization: DePauw University
User-Agent: Thunderbird 1.5.0.13 (Windows/20070809)
MIME-Version: 1.0
To: Frank Warmerdam <warmerdam@pobox.com>
Subject: Re: [Tiff] Simple code to write Tiff images from Raw data
References: <200710291603.l9TG3oJP019237@duke.maptools.org>
	<472696A4.1050408@qwest.net> <473BACAB.4010209@depauw.edu>
	<473BCD1A.1010308@pobox.com>
In-Reply-To: <473BCD1A.1010308@pobox.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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.000028ec
X-MSP-STORE: Thu, 15 Nov 2007 16:58:39 +0100
Status:   

Hello Frank,

here's the tiffinfo:

the first one is the one I built using the tifflib. The 2nd one is the 
same image but viewed and than saved as a tiff with irfanview.

After I built the tiff irfanview and vliv recognize the image but not 
too many other viewers (so far I only found irfanview and vliv to read 
them). After I opened the tiff and saved it again as a tiff all viewers 
so far can read it.

So I figured I must have done something wrong or forgot something.

btw: After irfanview saves the file below it's size grows
  from 4.96Mb to 8.71M (but that's due to compression. apparently 
irFanview doesn't create "deflated" files ?)

TIFF Directory at offset 0x4f6222 (5202466)
   Image Width: 4096 Image Length: 3072
   Bits/Sample: 8
   Compression Scheme: Deflate
   Photometric Interpretation: RGB color
   Orientation: row 0 top, col 0 lhs
   Samples/Pixel: 3
   Rows/Strip: 16
   Planar Configuration: single image plane
   ImageDescription: 3D Simulation
   Predictor: none 1 (0x1)
[ronc@wolf359 ~]$ tiffinfo fractal_3a.tif
TIFF Directory at offset 0x8b1f42 (9117506)
   Image Width: 4096 Image Length: 3072
   Resolution: 0, 0 pixels/inch
   Bits/Sample: 8
   Compression Scheme: LZW
   Photometric Interpretation: RGB color
   Orientation: row 0 top, col 0 lhs
   Samples/Pixel: 3
   Rows/Strip: 1
   Planar Configuration: single image plane
   Software: IrfanView


Frank Warmerdam wrote:
> Ron Croonenberg wrote:
>> Hello all,
>>
>> When I create a tiff file, not all viewers recognize it. However
>> IrFanview and vliv do. After I save the image as a tiff with IrFanview
>> other viewer do see it.
>> So I am probably missing a tag ?  or failed to set a field somewhere ?
>> What fields need to be set with 'TIFFSetField' so that all viewers can
>> recognize the image ?
> 
> Ron,
> 
> It would be more constructive to provide a tiffinfo report of the
> file you produced, and the file produced by IrFanview.
> 
> Best regards,
> 

-- 

=================================================================
  Ron Croonenberg                   |
                                    | Phone: 1 765 658 4761
  Lab Instructor &                  | Fax:   1 765 658 4732
          Technology Coordinator    |
                                    |
  Department of Computer Science    | e-mail: ronc@DePauw.edu
  DePauw University                 |
  275 Julian Science & Math Center  |
  602 South College Ave.            |
  Greencastle, IN  46135            |
=================================================================
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
