https://github.com/fabricesalvaire/pylibtiff
PyLibTiff is a Python binding to the TIFF reference library libtiff.
https://github.com/fabricesalvaire/pylibtiff
libtiff python python-wrapper tiff unmaintained
Last synced: 10 months ago
JSON representation
PyLibTiff is a Python binding to the TIFF reference library libtiff.
- Host: GitHub
- URL: https://github.com/fabricesalvaire/pylibtiff
- Owner: FabriceSalvaire
- License: gpl-3.0
- Created: 2013-05-01T20:00:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T17:02:32.000Z (about 8 years ago)
- Last Synced: 2025-01-11T13:25:40.993Z (12 months ago)
- Topics: libtiff, python, python-wrapper, tiff, unmaintained
- Language: C
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
**Unused and no longer maintained**
===================
PyLibTiff V0.1.0
===================
This Git repository contains a Python wrapper for the libtiff library.
It provides the following features:
* read and write TIFF images using the libtiff v4 reference implementation
* read and write scientific grade TIFF images
* support gray8, gray16, rgb8, rgb16 image formats
* interleaved and planar format for RGB composite format
* LZW compression
* Numpy array
The wrapper is generated by Swig and built using CMake.
The source code should be considered as a concrete example to read and write TIFF images using the
libtiff, but not as a clean Python module. A nice enhancement would be to use CFFI instead of Swig
and build using a standard *setup.py*. (I don't plan to do it soon.)
This Python module was written as an alternative to the unmaintained PIL library that provides a
partial TIFF implementation written in Python. In opposite this implementation could gives access to
the whole TIFF format.
Source Repository
-----------------
The PyLibTiff project is hosted at github
http://github.com/FabriceSalvaire/PyLibTiff
Requirements
------------
* libtiff (devel package)
* Python 2.7 (devel package)
* Numpy
* CMake
* Swig
* GCC
Building & Installing
---------------------
Run the following commands in a terminal::
git clone git@github.com:FabriceSalvaire/PyLibTiff.git
mkdir PyLibTiff-build
cd PyLibTiff-build
ccmake PyLibTiff
This procedure was tested on Fedora 18 x64, take care to compile against Python 2.7 library and not
Python 3.
Running Examples
----------------
See Python files in the *examples* directory.
.. End