https://github.com/bodleian/iiif-static-choices

A IIIF static tile and manifest generator built using Python to generate IIIF tiled images and manifests. This application was put together to de-mystify the process of creating and hosting IIIF content and allow implementations without the need for specialist infrastructure such as imaging servers (iip) and manifest servers.

https://github.com/bodleian/iiif-static-choices

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary
Last synced: 7 months ago · JSON representation

Repository

A IIIF static tile and manifest generator built using Python to generate IIIF tiled images and manifests. This application was put together to de-mystify the process of creating and hosting IIIF content and allow implementations without the need for specialist infrastructure such as imaging servers (iip) and manifest servers.

Basic Info
  • Host: GitHub
  • Owner: bodleian
  • License: mpl-2.0
  • Language: JavaScript
  • Default Branch: main
  • Size: 198 MB
Statistics
  • Stars: 10
  • Watchers: 5
  • Forks: 0
  • Open Issues: 2
  • Releases: 3
Created almost 2 years ago · Last pushed 8 months ago
Metadata Files
Readme License

README.md

iiif-static-choices

A IIIF static tile and manifest generator built using Python to generate IIIF tiled images and manifests.

This application was put together to de-mystify the process of creating and hosting IIIF content and allow implementations without the need for specialist infrastructure such as imaging servers (iip) and manifest servers.

It also includes the Bodleian Libraries Mirador plug-in written as part of the ARCHiOx project and the Mirador image-tools plug-in and is also intended as a vehicle to test the capabilities of using 2D images to encode and present 3D information.

A simple Python server application is included to serve the Mirador or Openseadragon via your local browser, it is not intended for a production environment and would need replacing with something else more suitable for the job.

Licensing

This project is covered by the Mozilla Public License except for the bundled Mirador and Openseadragon builds which are covered by their own licenses.

The tile generation part of this project is based on and translated from the work of Glen Robson in his Java iiif-tiler

Dependencies

  • Python 3.9
  • Poetry

Installation Instructions

Install the project after installing Python and Poetry, as follows:

bash poetry install --no-root

Basic Instructions

For this quick guide we'll be using the existing example images and manifest-config.yml files present in the image directory.

  1. Run the tile generation as follows, this will generate v3 static tiles in the iiif/image folder:

    bash poetry run python iiif_generator.py tiles -t 256 -v 3.0 Note: for Windows/WSL users: Add -i http://localhost:8000/iiif/ -d image to the command to avoid connection issues.

  2. Run the manifest generator as follows, this will generate a v3 manifest in the iiif/manifest folder:

    bash poetry run python iiif_generator.py manifest -f ammonite-config.yml -o pyritised-ammonite.json Note: for Windows/WSL users: Add -s http://localhost:8000 -d image to the command to avoid connection issues.

  3. Run the basic server application as follows:

    bash poetry run python server 8000

Using your own images and manifest-config.yml

To use your own images and manifest-config.yml do the following:

  1. Copy your image files into the project directory called image.

  2. Create a manifest_config.yml file from the template provided, add real values to this and copy this to the image directory too. You can find a populated one in image for reference. Or skip ahead and use the examples already there.

  3. Run through the steps in Basic Instructions again.

What should it look like?

If you've done the above set up correctly and the server is running, you can go to your browser and enter the address: http://localhost:8000/ and you will see the following. Click the buttons like the cursor does in the animated gif to play around in 2.5D in Mirador.

Animated picture showing a pyritised ammonite and someone interacting with it using the ARCHiOx Mirador plug-in

Todo

  • add in thumbnail generation for the choices layers in Mirador, this could be done during manifest generation
  • add in logo generation
  • add in multi-page manifests
  • add some unit tests to prevent development breaking

Docker Support

A Docker container with web interface is available for easier deployment and usage without Python installation. See docker-gui/README.md for complete Docker documentation and GUI usage instructions.

Owner

  • Name: Bodleian Libraries
  • Login: bodleian
  • Kind: organization
  • Location: Oxford, UK

The Bodleian Libraries of the University of Oxford

GitHub Events

Total
  • Create event: 2
  • Issues event: 2
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 2
  • Member event: 2
  • Push event: 20
  • Pull request review comment event: 5
  • Pull request review event: 7
  • Pull request event: 9
  • Fork event: 1
Last Year
  • Create event: 2
  • Issues event: 2
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 2
  • Member event: 2
  • Push event: 20
  • Pull request review comment event: 5
  • Pull request review event: 7
  • Pull request event: 9
  • Fork event: 1

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 2
  • Total pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.75
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 days
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.75
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • BeebBenjamin (2)
Pull Request Authors
  • BeebBenjamin (7)
  • jcanofuentes (2)
Top Labels
Issue Labels
enhancement (1) bug (1)
Pull Request Labels
enhancement (4) bug (2)

Dependencies

poetry.lock pypi
  • imageio 2.34.1
  • numpy 2.0.0
  • pillow 10.3.0
  • pyyaml 6.0.1
pyproject.toml pypi
  • imageio ^2.34.0
  • python ^3.9
  • pyyaml ^6.0.1