AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2009.01.11 22:12 "[Tiff] Setting of BitsPerSample", by Wendell Dingus

I've got a bunch of TIFF images produced by a company out of my control which do not contain tag 258. As such it's causing me some grief in some other software, software that expects that tag to be there. So I've tried to manually set it, I know they're monochrome, but I can't seem to set the tag.

Thanks.

$ tiffinfo bps.tif

TIFF Directory at offset 0x2f406 (193542) Image Width: 6760 Image Length: 5273 Resolution: 300, 300 pixels/inch Compression Scheme: CCITT Group 4 Orientation: row 0 top, col 0 lhs Planar Configuration: single image plane ImageDescription: TIFF FILE

$ md5sum bps.tif e7202444bbf3643330908b85a09d7039 bps.tif

$ tiffset -s 258 1 bps.tif

$ tiffinfo bps.tif

TIFF Directory at offset 0x2f4aa (193706) Image Width: 6760 Image Length: 5273 Resolution: 300, 300 pixels/inch Compression Scheme: CCITT Group 4 Orientation: row 0 top, col 0 lhs Planar Configuration: single image plane ImageDescription: TIFF FILE

$ md5sum bps.tif d3f7e258c69bfa36874c8bc05deff076 bps.tif