AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2005

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



Valid HTML 4.01!



Thread

2005.04.29 22:52 "Color TIFF/JPEG compression questions", by Jason Frank
2005.04.29 23:16 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.04.30 15:51 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.04.30 07:08 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev
2005.05.02 13:44 "Re: Color TIFF/JPEG compression questions", by Ed Grissom
2005.05.02 14:16 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 16:12 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 16:29 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 17:55 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 18:17 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 18:43 "Re: Color TIFF/JPEG compression questions", by Joris Van Damme
2005.05.02 18:48 "Re: Color TIFF/JPEG compression questions", by Bob Friesenhahn
2005.05.02 18:48 "Re: Color TIFF/JPEG compression questions", by Jason Frank
2005.05.02 19:11 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev
2005.05.03 05:46 "Re: Color TIFF/JPEG compression questions", by Andrey Kiselev

2005.05.02 16:12 "Re: Color TIFF/JPEG compression questions", by Jason Frank

Interesting, since my vendor is having trouble producing conforming
images, I took one of the images out of the libtiff image test pack,
v3.4pics.tar.gz.  I converted it to what I need to test with by doing
the follwing:

tiff2rgba  -c jpeg -r 16 quad-jpeg.tif  quad-jpeg-rgb.tif

This gave me a file with the following tags:

tiffinfo quad-jpeg-rgb.tif
TIFF Directory at offset 0xdb28
  Image Width: 512 Image Length: 384
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: RGB color
  Extra Samples: 1<assoc-alpha>
  YCbCr Subsampling: 2, 2
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 4
  Rows/Strip: 16
  Planar Configuration: single image plane
  Software: LIBTIFF, Version 3.7.2
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
  JPEG Tables: (289 bytes)

My source image has these tags:
TIFF Directory at offset 0x5b6e
  Image Width: 512 Image Length: 384
  Position: 0, 0
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Rows/Strip: 16
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  JPEG Tables: (574 bytes)

It looks like tiff2rgba retained the YCbCr field.  And, for some reason
the source file has JPEG Tables, which I thought were used under Type 6
compressions.  I don't know if that's expected, but I thought I'd pass
it on.

I was able to convert it to PDF using pdflib3, and view it in Acrobat
Reader.  I can also view the converted TIF successfully in irfanView,
but not in MS' current viewer (whatever they're using now...)  I also
dropped the alpha channel, but that didn't appear to make any
difference.  I'm betting that MS might be having trouble with either the
YCbCr subampling or the JPEG tables.  Don't know much for sure anymore
though.

Jason