AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.07.30 21:53 "[Tiff] writing tiles to tiff file", by Pushkar Pradhan
2003.08.01 20:02 "[Tiff] problems using tiffwritetile", by Pushkar Pradhan
2003.08.03 01:52 "[Tiff] problems using tiffwritetile", by Frank Warmerdam
2003.08.03 02:41 "[Tiff] problems using tiffwritetile", by Pushkar Pradhan
2003.08.04 02:57 "[Tiff] Configure ZIP, JPEG, PIXARLOG", by Robin Rowe
2003.08.04 05:14 "[Tiff] Configure ZIP, JPEG, PIXARLOG", by Andrey Kiselev
2003.08.04 16:16 "[Tiff] Configure ZIP, JPEG, PIXARLOG", by Frank Warmerdam
2003.09.12 16:04 "[Tiff] writing out custom tags", by Chris Padwick
2003.09.15 07:45 "[Tiff] writing out custom tags", by Andrey Kiselev
2003.09.18 09:53 "[Tiff] color changes only with Windows Imaging (again)", by Takuya SATO
2003.09.18 12:26 "[Tiff] color changes only with Windows Imaging (again)", by Frank Warmerdam
2003.09.17 22:14 "[Tiff] is image tiled or striped?", by Pushkar Pradhan
2003.09.17 22:39 "[Tiff] is image tiled or striped?", by Frank Warmerdam

2003.09.18 09:53 "[Tiff] color changes only with Windows Imaging (again)", by Takuya SATO

Hello,

I posted the same problem before and some pointed that was Windows Imaging problem, but I still wonder if there is another reason.

  1. I develop a tiffcp (tiff-v3.5.5, 3.6-beta2) based tool which adds some tags.
  2. The result image color chenged when I open it with Imaging tool.
  3. A copy image which made with original tiffcp looks fine, so the problem is in my program.

Here are tiffinfo's header:

[A] tiffinfo funny_color_before.tif <----- original image: OK
TIFF Directory at offset 0xc008
   Image Width: 128 Image Length: 128

Resolution: 72, 72

Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color

   Software: "IrfanView"

   Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3

   Rows/Strip: 21

   Planar Configuration: single image plane

[B] tiffinfo funny_color.tif <----- converted image with my
program: Not OK
TIFF Directory at offset 0xc008
   Image Width: 128 Image Length: 128

Resolution: 72, 72

Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color

   FillOrder: lsb-to-msb
   Date & Time: "2003:09:18 15:49:07"
   Document Name: "SAMPLE IMAGE\n"
   Make: "UAP, Inc."
   Samples/Pixel: 3
   Rows/Strip: 21

   Planar Configuration: single image plane

[C] tiffinfo funny_color_tiffcp.tif <----- simply copied image with tiffcp: OK TIFF Directory at offset 0xc008

   Image Width: 128 Image Length: 128

Resolution: 72, 72

Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color

   Software: "IrfanView"

   Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3

   Rows/Strip: 21

   Planar Configuration: single image plane

Here are sample images:

[A] original image: http://www012.upp.so-net.ne.jp/ontheroad/funny_color_before.tif [B] result image: http://www012.upp.so-net.ne.jp/ontheroad/funny_color.tif [C] tiffcp image: http://www012.upp.so-net.ne.jp/ontheroad/funny_color_tiffcp.tif

I want to know:

  1. Tiff header info is correct? I dropped Orientation tag, for example.
  2. Is is possible to check / analyze binary color (data part) info? I'm not sure where to start from.
  3. I didn't change pickCopyFunc in my tiffcp-based program from tiffcp, but data part is not same with tiffcp'ed image. I think the pickCopyFunc args (bitspersample and samplesperpixelof) are same. Why?

TIA

======================
     T a k u y a S A T O

takuyasa@wa2.so-net.ne.jp
======================