Demo of Tiff incompatibility between Paint Shop Pro and LibTiff

I've used for the test below Paint Shop Pro 5.03 from Jasc.

I've written a small application that convert between .BMP and .TIF, using LibTif.
Paint Shop Pro 6.00 beta 19990810.13 don't crash, but say "this is not a valid TIFF file"
Somes other application, including Word 2000 or Acrobat 4.0 import correcly this file

You can download tiffdemo.zip.
There is a Visual C++ 6.0 project, the executable and the image file.

Release\TiffDemo.exe is the compiled Win32 console apps

image\tstimage.bmp is the original file
image\tstimage.tif is the result file, that crash Paint Shop Pro 5.0

You can also just download the Tiff image : tiffdemo.tif

If you run 
TiffDemo tstimage.bmp tiff 1
You'll have an uncompressed tstimage.tif (776 390 bytes) that don't crash PSP

If you run
TiffDemo tstimage.bmp tiff 50
You'll have an compressed LZW without predictor tstimage.tif (165 910 bytes) that don't crash PSP

If you run
TiffDemo tstimage.bmp tiff 5
or
TiffDemo tstimage.bmp tiff
You'll have an compressed LZW without predictor tstimage.tif (185 424 bytes) that DO CRASH PSP


When I save this image in TIFF LZW compressed with Paint Shop Pro, I've 124 032 bytes file


------

Usage of TiffDemo

Tiffdemo <source BMP file> TIF <Quality>
or
Tiffdemo <source TIF file> BMP

Where quality is :


COMPRESSION_NONE 1  
COMPRESSION_CCITTRLE 2  
COMPRESSION_CCITTFAX3 3  
COMPRESSION_CCITTFAX4 4  
COMPRESSION_LZW 5 LZW with predictor. Default value.
COMPRESSION_OJPEG 6  
COMPRESSION_JPEG 7  
COMPRESSION_LZW 50 LZW without predictor


If you have information, email me to info@winimage.com !