2009.05.07 08:14 "[Tiff] [Q] TIFFReadRGBAImage (about read COMPRESSION_JPEG imagefile) of libtiff.", by masui/増井 郁久

2009.05.08 12:30 "Re: [Tiff] [Q] TIFFReadRGBAImage (about read COMPRESSION_JPEG imagefile) of libtiff.", by masui/増井 郁久

Thank you for Mr. Frank

My PC environment is windows XP (SP2) - Visual Studio2005.

The following were put on the execution folder.

   libtiff3.dll
   jpeg62.dll
   zlib1.dll
     (<- download dll from http://gnuwin32.sourceforge.net/packages/tiff.htm)

The error message has not come out especially.

It holds out a little more.

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam@pobox.com]
Sent: Friday, May 08, 2009 12:52 PM

To: masui/増井 郁久
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] [Q] TIFFReadRGBAImage (about read COMPRESSION_JPEG imagefile) of libtiff.

masui/増井 郁久 wrote:

It becomes an error by "TIFFReadRGBAImage" at > "COMPRESSION_JPEG"-ImageFile(TIFF) though it is possible to read at > "COMPRESSION_CCITTFAX4"-ImageFile(TIFF) by the above-mentioned reading method.

How can I read at COMPRESSION_JPEG? <<<<<<<<

Masui,

There are many reasons that TIFFReadRGBAImage() might fail with a jpeg compressed TIFF and work ok for a CCITTFAX4 image. Was there a particular error message issued?

One possibility is that support for jpeg images (which requires libjpeg) was not built in when libtiff was built.

If you can be more specific about the error message - if any - or perhaps provide the image in question we might be able to help more.

---------------------------------------+--------------------------------
---------------------------------------+------

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    | Geospatial Programmer for Rent