iif映像api引用实现
iiif的Python项目详细描述
iif-iif映像api引用实现和python库。 支持International Image Interoperability Framework:图像api 2.1(和版本 3.0初步的, 2.0, 1.1, 1.0)。 还包括一个使用库实现映像的测试服务器 API动态转换,静态文件生成器 openseadragon所需的预计算块 存储了一个静态文件。
安装
库、测试服务器、静态文件生成器都设计为 使用Python2.7、3.5和3.6。手动安装是 获取演示文档和示例所必需的。
从pypi自动安装
iif库代码和脚本列在PyPI中,可以使用 pip或easy_install,例如:
easy_install iiif
pypi版本不包括所有演示文档和 例子。
从github手动安装
首先,从Github repository:
cd /tmp git clone git://github.com/zimeon/iiif.git cd iiif/
其次,安装Pillow(一个PIL的叉):
pip install Pillow
如果在系统范围内而不是在用户空间中安装,则可能需要sudo。 环境。
安装Pillow之后,将有图像格式摘要 支持。可能需要添加库来获取所有格式,具体取决于 在你的平台上。
然后可以从iif目录运行脚本和演示。
最后,您可以在 python设置中的适当位置,使用:
python setup.py build python setup.py install
- 如果在系统范围内而不是在用户空间环境中安装,则可能需要sudo到
源代码维护在Github
另请参见
- https://github.com/zimeon/iiif–git存储库
- https://github.com/zimeon/iiif/tree/master/demo-static–使用openseadragon的静态文件演示
- https://github.com/zimeon/iiif/tree/master/demo-auth-iif身份验证api演示
版权和许可
iiif library and programs implementing the IIIF API Copyright (C) 2012–2019 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/>.