2006.03.09 01:57 "[Tiff] tiff headers", by Jasmin Roohi

2006.03.09 01:57 "[Tiff] tiff headers", by Jasmin Roohi

Hello. I've been trying to alter the content of a tiff header. The tiff header contains the following information:

2 Images, TIFF (compressed)
Image Wavelengths=635, 635
Size=1500x3800, 1500x3800 pixels
Scaling=10, 10 µm per pixel
Image Format=16-bit grayscale
PMT Gain=0, 0
Laser Power=100, 100
Normalization Factor=1.000, 1.000

I used the following Linux code to change "Scaling=10, 10 µm per pixel" to "Scaling=5" but had no luck. The images "both layers combined.tif" and " test.tif" are identical except "both layers combined.tif" is compressed. I would be grateful for any help you could give me. Thanks.

[roohi@elipc2 roohi]$ ls

both layers combined.tif

[roohi@elipc2 roohi]$ tiffset

usage: tiffset [-s name value] filename

[roohi@elipc2 roohi]$ man tiffset

No manual entry for tiffset

[roohi@elipc2 roohi]$ env | grep MAN

[roohi@elipc2 roohi]$ tiffset -s Scaling 5 both\ layers\ combined.tif

both layers combined.tif: Can't open a compressed TIFF file with compression for update..

[roohi@elipc2 roohi]$ tiffset -s Scaling 5 test.tif

test.tif: Warning, unknown field with tag 700 (0x2bc) ignored.

test.tif: Warning, unknown field with tag 34665 (0x8769) ignored.

TIFFSetField: test.tif: Unknown pseudo-tag 4294967295.

Failed to set Scaling=5

[roohi@elipc2 roohi]$

[roohi@elipc2 roohi]$