2022.03.21 15:10 "[Tiff] StropOffsets error on some TIFFs", by Cole Bourque
Hi all,
I have a collection of TIFFs from some microscope imaging, but several of them can't be opened or otherwise manipulated, showing instead this error when I investigate them using LibTIFF in MobaXterm:
MissingRequired: TIFF directory is missing required "StripOffsets" field.
These TIFFs were collected during one imaging session with the same program (SerialEM), and the StripOffsets error is distributed among the TIFFs seemingly randomly. As in 10 are OK, then 50 aren't, then 10 are OK, etc.
With the suggestion of our "IT guy", I am using LibTIFF to try to attempt a repair after he confirmed that the files weren't corrupted. It was recommended that I take the StripOffset values from the "working" TIFFs and move that value over to the "broken" TIFFs, but I can't figure out how to begin to approach that (if it is possible). I have attached some information from a "working" TIFF from the "tiffinfo" command as a txt file. I hope that helps.
To summarize, here is my question:
Is it possible to copy the StripOffset information from the "working" TIFFs to the "broken" TIFFs to (hopefully) allow them to be decompressed for viewing?
Best regards,
Cole Bourque
TIFF Directory at offset 0x14876848 (e300b0)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 217
Planar Configuration: single image plane
ImageDescription: SerialEMCCD: Dose frac. image, scaled by 1.00 r/f 7
DateTime: 2022:01:16 20:44:41
TIFF Directory at offset 0x29816374 (1c6f636)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 222
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:41
TIFF Directory at offset 0x44762274 (2ab04a2)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 227
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:42
TIFF Directory at offset 0x59708666 (38f14fa)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:42
TIFF Directory at offset 0x74659498 (47336aa)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:42
TIFF Directory at offset 0x89620200 (5577ee8)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:43
TIFF Directory at offset 0x104580340 (63bc4f4)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:43
TIFF Directory at offset 0x119545894 (7202026)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:44
TIFF Directory at offset 0x134514172 (80485fc)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:44
TIFF Directory at offset 0x149479512 (8e8e058)
Image Width: 4092 Image Length: 5760
Resolution: 3.80126e+07, 3.80126e+07 pixels/inch
Bits/Sample: 8
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 2
SMin Sample Value: 0
SMax Sample Value: 255
Planar Configuration: single image plane
DateTime: 2022:01:16 20:44:45