-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
81 lines (48 loc) · 1.57 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
=================================
PyLibTiff - a Python tiff library
=================================
:Authors:
Pearu Peterson <pearu.peterson AT gmail DOT com>
:Website:
http://pylibtiff.googlecode.com/
:License:
New BSD License
History
=======
* Started numpy.memmap wrapper of tiff files in April 2010.
* Project published on April 22, 2009.
Download
========
The latest release can be downloaded from pylibtiff website.
The latest development code is available via SVN. To check it out,
run::
svn checkout http://pylibtiff.googlecode.com/svn/trunk/ pylibtiff-svn
cd pylibtiff-svn
Installation
============
To use pylibtiff, the following is required:
* Python 2.5 or newer
* libtiff library
* nose for running pylibtiff tests
To install pylibtiff, unpack the archive file, change to the
pylibtiff source directory ``pylibtiff-?.?*`` (that contains setup.py
file and pylibtiff module), and run::
python setup.py install
Testing
=======
To test pure Python pylibtiff from source directory, run::
nosetests libtiff/tests/
Basic usage
===========
Import pylibtiff with
>>> from libtiff import *
that will provide a class TIFF to hold a tiff file:
>>> tiff = TIFF.open('filename')
>>> image = tiff.read_image()
The TIFF class provides ctypes based wrapper to the C libtiff library.
Additional documentation is available online in Pylibtiff website.
Help and bug reports
====================
You can report bugs at the pylibtiff issue tracker:
http://code.google.com/p/pylibtiff/issues/list
Any comments and questions can be sent also to the authors.