teletiffinfo

Fetch metadata from remote (https) tiff.


License
MIT
Install
pip install teletiffinfo==0.0.2

Documentation

teletiffinfo

Read metadata of remote TIFF according to TIFF6 spec (currently only reads width and height.)

Requirements

server must support RANGE request.

Why?

For large TIFF files, it is often not feasible to download the full TIFF file in order to access the metadata.

Installation

  • via pip
pip install teletiffinfo

Usage

from teletiffinfo import try_tiff
try_tiff("https://file-examples-com.github.io/uploads/2017/10/file_example_TIFF_10MB.tiff") # returns (1950, 1301)

One could also add any custom header

from teletiffinfo import try_tiff
try_tiff("https://my.example.com/protected_tiff.tiff", {
    "Authorization": "Bearer ey..."
})

License

MIT