-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathREADME
120 lines (88 loc) · 3.71 KB
/
README
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
====
iiif
====
.. image:: https://travis-ci.org/zimeon/iiif.png?branch=main
:target: https://travis-ci.org/zimeon/iiif?branch=main
:alt: Build status
.. image:: https://coveralls.io/repos/zimeon/iiif/badge.png?branch=main
:target: https://coveralls.io/r/zimeon/iiif?branch=main
:alt: Test coverage
*iiif* - IIIF Image API reference implementation and Python library.
Supports the `International Image Interoperability Framework
<http://iiif.io/>`_: Image API
`2.1
<http://iiif.io/api/image/2.1/>`_ and
`3.0
<http://iiif.io/api/image/3.0/>`_ (as well as legacy versions
`2.0
<http://iiif.io/api/image/2.0/>`_,
`1.1
<http://iiif.io/api/image/1.1/>`_,
`1.0
<http://iiif.io/api/image/1.0/>`_).
Also includes a test server using the library to implement the Image
API transformations dynamically, and a static file generator to
pre-compute tiles necessary for OpenSeadragon which may then be
stored a static files.
Installation
------------
The library, test server, static file generator are all designed to
work with recent versions of Python 3 and Python 2.7. Manual installation
is necessary to get the demonstration documentation and examples.
**Automatic installation from PyPI**
The *iiif* library code and scripts are available from `PyPI
<http://pypi.python.org/pypi/iiif>`_ and can be installed with
``pip``, e.g.::
pip install iiif
The PyPI version does not include all demonstration documentation and
examples.
**Manual installation from github**
First, clone the code and examples from the `Github repository
<https://github.com/zimeon/iiif>`_::
cd /tmp
git clone git://github.com/zimeon/iiif.git
cd iiif/
Second, install ``Pillow`` (a fork of ``PIL``)::
pip install Pillow
You may need ``sudo`` if installing system-wide as opposed to in a user-space
environment.
After installation of ``Pillow`` there will be be a summary of image formats
supported. Addition libraries may be require to get all formats depending
on your platform.
The scripts and demonstrations can then be run from the `iiif` directory.
Finally, you may install the library code and scripts locally in the
appropriate places within your python setup using::
python setup.py build
python setup.py install
- You may need ``sudo`` to if installing system-wide as opposed to in a user-space environment
The source code is maintained on `Github
<https://github.com/zimeon/iiif>`_
Contributing
------------
Bug reports welcome as `github issues
<https://github.com/zimeon/iiif/issues>`_.
See `CONTRIBUTING.md
<https://github.com/zimeon/iiif/blob/main/CONTRIBUTING.md>`_
for guidelines for contributing, and the `list of contributors
<https://github.com/zimeon/iiif/graphs/contributors>`_
See also
--------
- https://github.com/zimeon/iiif -- git repository
- https://github.com/zimeon/iiif/tree/main/demo-static -- Static File Demo with OpenSeadragon
- https://github.com/zimeon/iiif/tree/main/demo-auth -- IIIF Authentication API Demo
Copyright and License
---------------------
iiif library and programs implementing the IIIF API
Copyright (C) 2012--2021 Simeon Warner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
See `LICENSE.txt
<LICENSE.txt>`_