Skip to main content

No project description provided

Project description

IIIF Downgrade

A basic library for converting IIIF v3 manifests to v2.

Why on earth would one do such a thing?

Certain applications (Spotlight until very recently) expect a v2 manifest. This lets someone easily take a v3 manifest from elsewhere and convert it to v2.

Warnings and Other Notes

This only handles the simplest of use cases like images or compound works of images. IIIF Presentation v2 has a much more limited set of applications than v3. This will likely create v2 manifests that are often invalid if you give it things it can't handle.

How to Use

As a library:

from iiif_downgrade import IIIFv3toV2Converter
import json

with open("fixtures/0e9016f7-f9dd-413f-b671-f75d181cbb5e.json") as f:
    data = json.load(f)

converter = IIIFv3toV2Converter(
    manifest=data,
    manifest_id="https://example.org/manifest/v2/123.json"
)

v2 = converter.convert()
converter.save("manifest-v2.json")

As a command line utility:

Coming soon.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iiif_downgrade-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iiif_downgrade-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file iiif_downgrade-0.1.1.tar.gz.

File metadata

  • Download URL: iiif_downgrade-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.12 Darwin/23.6.0

File hashes

Hashes for iiif_downgrade-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2be4227ae2507f03edb95ee39131fc4add0fe817cad9bfeba946c288dfda889f
MD5 8926242d7ccf9a7cdf6888b22d9b688f
BLAKE2b-256 5b734b0d4186a9213d005e23cd4597f7fd2d9dff2f70b4d0a7e4460b980c3ad5

See more details on using hashes here.

File details

Details for the file iiif_downgrade-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iiif_downgrade-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.12 Darwin/23.6.0

File hashes

Hashes for iiif_downgrade-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85bffc5754d85e890ff4b987806127e8a0cad078c6453a4cbac048fed3ef3330
MD5 af5419efe982e2972ea22039517768bd
BLAKE2b-256 195ba776d09007f35625e68fb8c9457ed0ebb6f1fb74ade14ed455ada9c0ec48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page