Skip to content Skip to sidebar Skip to footer

How To Resolve Tifffileerror: Not A Tiff File And Byte Problem With Keyerror: B'\x89p'

I am setting up a computer vision project to detect and process GFP proteins. I keep getting errors about my file not being a Tiff Image and a Byte Error. I don't quite understand

Solution 1:

Your file starting \x89P is a PNG file, not TIFF, as that is a PNG signature, whereas TIFF files start II if in Intel order, or MM if in Motorola order.

If on Linux/macOS, try running:

file cells1.tif

See Wikipedia for description of PNG signature, as suggested by Warren.

See Wikipedia for description of TIFF header.

Post a Comment for "How To Resolve Tifffileerror: Not A Tiff File And Byte Problem With Keyerror: B'\x89p'"