Skip to main content

iiif_image_load

A python library for loading iiif images (IIIF Image Api Manifests).

How to Install

To install, just run pip install iiif_image_load.

About

This library makes it possible to submit the URL to a IIIF Image API manifest (along with optional cropping parameters) and receive a standard OpenCV Numpy (3D BGR) array containing the image.

The downloading process will access image tiles in accordance with the IIIF Image server's specifications. This makes download of image at full resolution possible on all IIIF compliant image servers and will potentially speed up the download process (and relieve stress on the IIIF image server).

Usage

To acquire an image with this library, the following examples should suffice:

from iiif_image_load import iiif_image_from_url
import cv2

img = iiif_image_from_url('https://ids.lib.harvard.edu/ids/iiif/47174896')

cv2.imshow('Demo Paul Gauguin', img)
cv2.waitKey(0)
cv2.destroyAllWindows()

It is also possible to specify a crop box for the image:

from iiif_image_load import iiif_image_from_url
from matplotlib.pyplot import imshow

img = iiif_image_from_url('https://ids.lib.harvard.edu/ids/iiif/47174896', 10, 20, 500, 500)

imshow(img[...,::-1])

Metadata

Release files for iiif-image-load 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iiif-image-load 0.4.2
File Size Uploaded Provenance
iiif-image-load-0.4.2.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iiif-image-load 0.4.2
File Interpreter ABI Platform
iiif_image_load-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / iiif-image-load-0.4.2.tar.gz

Download URL iiif-image-load-0.4.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8c540632cf9248fe344d93cc57eb98ea5cae0d32097d4ae3291ba4170baeff1f
BLAKE2b-256 checksum
How to use checksums
147245a6950d3752a826cf2e1eac6e235dc54ef517943dec646f1bafac4d23cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / iiif_image_load-0.4.2-py3-none-any.whl

Download URL iiif_image_load-0.4.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d3101927729903683260a08d73174bb6145b1cd2338cfabe1f9e1999e9e145
BLAKE2b-256 checksum
How to use checksums
d6deae0676236ae634712861f0da078339037f62ef53a6adbfdade41a18032e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for iiif-image-load 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page