AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
February 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2004.02.09 17:02 "Photoshop 8.0 and libtiff", by Don Ellis
2004.02.09 17:46 "Re: Photoshop 8.0 and libtiff", by Bob Friesenhahn
2004.02.09 18:07 "Re: Photoshop 8.0 and libtiff", by Frank Warmerdam
2004.02.09 19:42 "Re: Photoshop 8.0 and libtiff", by Don Ellis
2004.02.09 19:51 "Re: Photoshop 8.0 and libtiff", by Bob Friesenhahn
2004.02.09 19:58 "Re: Photoshop 8.0 and libtiff", by Frank Warmerdam
2004.02.09 19:59 "Re: Photoshop 8.0 and libtiff", by Thomas J Kacvinsky
2004.02.09 20:18 "Re: Photoshop 8.0 and libtiff", by Chris Cox
2004.02.09 19:48 "Re: Photoshop 8.0 and libtiff", by Bob Friesenhahn
2004.02.09 19:59 "Re: Photoshop 8.0 and libtiff", by Frank Warmerdam
2004.02.09 20:12 "Re: Photoshop 8.0 and libtiff", by Bob Friesenhahn
2004.02.09 20:36 "Re: Photoshop 8.0 and libtiff", by Don Ellis
2004.02.09 20:25 "Re: Photoshop 8.0 and libtiff", by Don Ellis
2004.02.09 20:50 "Re: Photoshop 8.0 and libtiff", by Bob Friesenhahn
2004.02.11 18:39 "Re: Photoshop 8.0 and libtiff", by Don Ellis
2004.02.13 19:11 "Re: Photoshop 8.0 and libtiff", by Don Ellis

2004.02.09 17:02 "Photoshop 8.0 and libtiff", by Don Ellis

I have just come across a problem in libtiff with images created with
Photoshop 8.0. It seems as if Adobe broke their 30,000 pixel and 2 GByte
limits in version 8.0. Since Photoshop uses one strip for all images, this
causes a problem with tsize_t being defined as int32. A quick workaround is
to redefine tsize_t in tiffio.h from int32 to int64. This will give you lots
of complaints about possible loss of date, but it seems to work.

For Microsoft Visual change typedef in tiffio.h of tsize_t to
	typedef __ int64 tsize_t;

For Unix add the header file stdint.h to tiffio.h and change the typedef of
tsize_t to
	typedef int64_t tsize_t;

I have just done some minimal testing of this new compile of libtiff, so
there is no guaranty, but it seems to work. I believe this will work for
files up to 4 GB and then some of the variables that are defined as unsigned
int32 will break also.

Has anyone else encountered this? Do you have a different workaround?

Thanks