Search code examples
unixpdftiff

TiFFReadDirectory: Warning, Unknown field with tag 293 (0x125) encountered


I have several tiff image files which I need to convert to pdf files. Some of the files get converted successfully and I'm able to get the expected output while some of the files are having the above error while I try to convert them and I get the output file as a complete black image. I'm trying to do the above task using Imagemagick.

I tried to find more about this problem on the internet. What I understood is that the problem is with the T6Options tag of the tiff file, which is (none) in my case. I'm not able to convert this file to any compression, I tried tiffcp, exiftool, tifftopdf but nothing works

Below is the information regarding the file, which I got using exiftool:

ExifTool Version Number : 11.01

File Name : 1000006_1_1007.tif

Directory : .

File Size : 105 kB

File Modification Date/Time : 2019:07:16 14:43:09+00:00

File Access Date/Time : 2019:07:16 14:43:20+00:00

File Inode Change Date/Time : 2019:07:16 14:43:09+00:00

File Permissions : rw-rw-r--

File Type : TIFF

File Type Extension : tif

MIME Type : image/tiff

Exif Byte Order : Little-endian (Intel, II)

Image Width : 1700

Image Height : 2200

Bits Per Sample : 1

Compression : T4/Group 3 Fax

Photometric Interpretation : WhiteIsZero

Orientation : Horizontal (normal)

Samples Per Pixel : 1

Rows Per Strip : 32

X Resolution : 200

Y Resolution : 200

Planar Configuration : Chunky

Resolution Unit : inches

Subfile Type : Single page of multi-page image

Fill Order : Normal

Strip Offsets : (Binary data 449 bytes, use -b option to extract)

Strip Byte Counts : (Binary data 249 bytes, use -b option to extract)

T4 Options : Fill bits added

T6 Options : (none)

Page Number : 1 0

Image Size : 1700x2200

Megapixels : 3.7


Solution

  • I was able to convert these files using "tifffile" python library