Creating a web viewer
Ok, you have created and uploaded your deep zoom image tiles to your own cloud storage. Now you would like to actually view them. More precisely, you would like to create a web page with a viewer, so that your colleagues can also take a look. Even better would be to create a multi-image viewer.
We first need to check which images are available in the cloud storage using the DeepZoomBucket.list_names()
) method.
from deepzoomup import DeepZoomBucket
dzb = DeepZoomBucket(application_key_id, application_key, bucket_name)
dzb.list_names()
Now, we can create a html snippet for the images we want to include.
html_snippet = dzb.make_html_snippet(['RP-T-1898-A-3689_Recto', 'RP-T-1898-A-3689_Trans-Recto'])
print(html_snippet)
And here is the result when embedded in a web page:
Susanna and the Elders (c.1650-c.1655) Rembrandt van Rijn, Rijksmuseum RP-T-1898-A-3689
For more information about this javascript code see: openseadragon.