Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nakamura196/toji_iiif
東寺百合文書WEBで公開されている画像をIIIF形式で配信するプロジェクト
https://github.com/nakamura196/toji_iiif
iiif
Last synced: 13 days ago
JSON representation
東寺百合文書WEBで公開されている画像をIIIF形式で配信するプロジェクト
- Host: GitHub
- URL: https://github.com/nakamura196/toji_iiif
- Owner: nakamura196
- License: apache-2.0
- Created: 2024-05-29T08:16:51.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T23:52:26.000Z (7 months ago)
- Last Synced: 2024-11-05T16:38:15.119Z (2 months ago)
- Topics: iiif
- Language: Jupyter Notebook
- Homepage: https://nakamura196.github.io/toji_iiif/
- Size: 37.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
toji_iiif
================東寺百合文書WEBで公開されている画像をIIIF形式で配信するプロジェクト
## Demo
https://nakamura196.github.io/toji_iiif/
## Install
``` sh
pip install git+https://github.com/nakamura196/toji_iiif.git
```## How to use
Create IIIF manifests and collection files.
``` python
DATA_DIR = "../src/data"
DOCS_DIR = "../docs"
ORIGIN = "https://nakamura196.github.io/toji_iiif/iiif"TojiClient.main(DATA_DIR, DOCS_DIR, ORIGIN, size=1, is_skip_if_manifest_exists=True)
```Create index page from IIIF Collection file.
``` python
TojiClient.create_index(
f"{DOCS_DIR}/iiif/set/3/collection.json",
f"{DOCS_DIR}/index.html",
)
```