Comment 12 for bug 18289

Revision history for this message
Michael R. Head (burner) wrote :

My brother emails me tiffs of magazine articles from work generated by the scanning system they have in place there. They always have this problem. He's not very tech-savvy, so he may not be able to configure the system to generate proper tiffs.

Anyway, I've gone through the trouble of compiling libtiff with the "old jpeg" support after patching and recompiling libjpeg. After doing this, I still can't view the file:
burner@firefighter:/tmp$ /tmp/jpg/bin/tiffinfo ~/Desktop/WELL\ LET\ ME.tif
TIFFReadDirectory: Warning, /home/burner/Desktop/WELL LET ME.tif: unknown field with tag 37679 (0x932f) encountered.
TIFFReadDirectory: Warning, /home/burner/Desktop/WELL LET ME.tif: unknown field with tag 37680 (0x9330) encountered.
TIFFReadDirectory: Warning, /home/burner/Desktop/WELL LET ME.tif: unknown field with tag 37681 (0x9331) encountered.
/home/burner/Desktop/WELL LET ME.tif: Invalid YCbCr subsampling.
TIFFReadDirectory: /home/burner/Desktop/WELL LET ME.tif: cannot handle zero strip size.

As you can see, the last 3 unknown fields are present, but I've managed to get libtiff to understand the takes 513 and 514. Sadly, I still can't get the data out.

I've collected information on this from the following links (for those that may find this bug report in the future):
http://bugzilla.remotesensing.org/show_bug.cgi?id=156
http://www.awaresystems.be/imaging/tiff/tifftags/jpeginterchangeformat.html
http://www.remotesensing.org/libtiff/TIFFTechNote2.html

I've gone so far as to run Windows' own tiff viewer, and that still couldn't extract the image data.

End result: if you get your hands on one of these "old style jpeg in tiff" files, you're pretty much out of luck. You'll have to negotiate with the file supplier to provide it in a different format.