2007.10.29 15:21 "[Tiff] rookie question", by Ron Croonenberg

2007.11.15 15:45 "Re: [Tiff] Simple code to write Tiff images from Raw data", by Frank Warmerdam

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


The most obvious issue here is that you used the Deflate compression scheme which is relatively new, and not very widely supported while Irfanview used LZW which is more widely supported. I'd guess that is the source of the problem.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam

and watch the world go round - Rush    | President OSGeo, http://osgeo.org