Skip to main content

tiffutils

Various TIFF utility functions.

This module provide various functionality for working with TIFF files that is not available in other modules.

Currently, the primary functionality is the ability to load and save RAW Bayer images to and from DNGs and Numpy ndarrays.

Requirements

  • python-dev
    • This is a Python C API module, so the Python headers are required
    • Python 2 and Python 3 are supported
    • Tested on Python 3.6+
  • libtiff-dev > 4.0.3
    • libtiff with support for CFA (color filter array) tags is required
    • Support is merged into the libtiff trunk, and will be released with the version of libtiff following 4.0.3.
    • A patch for libtiff 4.0.3 is included as libtiff-4.0.3.patch
    • The latest version can be downloaded from the libtiff website.

Building and installing

First ensure that you have libtiff > 4.0.3. If not, you need to configure, build, and install a newer version. The CVS trunk already includes the required CFA tag support, so it can be used directly. Otherwise, download libtiff 4.0.3, apply the included patch, and configure, build, and install libtiff.

$ cd /path/to/libtiff
$ patch -p1 < /path/to/tiffutils/libtiff-4.0.3.patch

Once all dependencies are met, it is simple to build and install the module:

$ python setup.py install

Or, for Python 3:

$ python3 setup.py install

Of course, if the installation location requires root permissions, sudo may be necessary.

Tests

The test/ directory contains module unit tests, which can be run with nose. These tests are additionally dependent on GExiv2, for verifying image metadata.

$ pip install nose
$ nosetests

Release files for tiffutils 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiffutils 1.0.2
File Size Uploaded
tiffutils-1.0.2.tar.gz 7.6 kB Details

Release files / tiffutils-1.0.2.tar.gz

Download URL tiffutils-1.0.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
04e818a9c8c84bbb53fb4784ae1ef0008b28518d15886f24e0616402b0c85c8f
BLAKE2b-256 checksum
How to use checksums
b1bd31c873c804d119676b2277f13966dfe29496b5a68bdf52a9e230aecd13d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.40.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page