2005.08.29 16:57 "[Tiff] libTIFF and ImageMagick - Windows binaries; Turning on support for JPEG compressed TIFFs; Alternatives (TIFFCP, TIFF2BW, etc.) for JPEG TIFFs", by

2005.08.29 18:00 "Re: [Tiff] libTIFF and ImageMagick - Windows binaries; Turning on support for JPEG compressed TIFFs; Alternatives (TIFFCP, TIFF2BW, etc.) for JPEG TIFFs", by Morten Bagai

Dave,

I'm by no means an expert on this, but since I have been struggling with getting OJPEG support enabled for myself*, this might help you a little bit. It seems to me that the instructions in contrib/ojpeg may be a little out of sync with how the configuration process works for the current libtiff. In the current configure script there are actually options for the following that will generate the correct tifconf.h

--enable-jpeg (on by default)

--enable-old-jpeg (enable support for Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library) --with-jpeg-include-dir=DIR location of IJG JPEG library headers --with-jpeg-lib-dir=DIR location of IJG JPEG library binary

On MacOS X 10.4 I've managed to get to the point where all this compiles, but unfortunately I am still not able to process the the wang-jpegs in our library. I used to get a message to the effect of "Old-style JPEG compression not built/configured" from libtiff, but after the latest round of compiling, I get this:

color1.tif: Warning, incorrect count for field "StripOffsets" (1, expecting 3); tag ignored.

color1.tif: Warning, incorrect count for field "StripByteCounts" (1, expecting 3); tag ignored.

tiff2pdf: Missing JPEGProc field in OJPEG image color1.tif. tiff2pdf: No support for color1.tif with OJPEG compression and separated planar configuration.

I was going to post a separate topic on this list to see if anyone could help me explain this, but maybe someone will jump on it in this thread instead.

Regards,

Morten

On Aug 29, 2005, at 9:57 AM, Dave_Roberts@Farmfamily.com wrote:

We use ImageMagick (which contains a copy of libTIFF) to process images of various formats and compressions into either Group4 (B&W)TIFF or JPEGs depending on content. I got a "Sorry, Compression Method is Not Configured" error message in ImageMagick for JPEG compressed TIFFs, so I took a look at the source code distribution (for 6.2.4) for the Windows build.

I noticed that in the "tifconf.h" header file that the JPEG support was defined in the compression section but was in the feature section. I added the #DEFINE statement for JPEG support (and even turned on a setting in ImageMagick's "\tiff\configure" file) and recompiled ImageMagick but it still doesn't work - same error message.

Is there some "trick" to getting this to correcly compile? I suspect it might need OJPEG support, but when I turn that on (#DEFINE) in "tifconf.h" I get a compile error. One of my fallback plans would be to identify the file using ImageMagick and if it's a TIFF then use tiffcp or tiff2bw to do the work, but on trying them I get a "Old Style JPEG compression support not enabled message" in the latest binaries (3.73)

FYI - The old Wang/Kodak "Imaging for Windows" control can read this file without issue,

Any help would be appreciated.

Dave

Confidentiality / Privilege Notice: This transmission, including attachments, is intended solely for the use of the designated recipients(s). This transmission may contain information that is confidential and/or privileged or otherwise protected from disclosure. The use or disclosure of the information contained in this transmission for any purpose other than that intended by its transmittal is strictly prohibited. If you are not an intended recipient of this transmission, please immediately destroy all copies received and notify the sender.