Skip to main content

Fetch metadata from remote (https) tiff.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teletiffinfo-0.0.4.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distributions

teletiffinfo-0.0.4-py3.6.egg (6.5 kB view hashes)

Uploaded 0 0 4

teletiffinfo-0.0.4-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page