using CitableImage
baseurl = "http://www.homermultitext.org/iipsrv"
root = "/project/homer/pyramidal/deepzoom"
service = IIIFservice(baseurl, root)IIIFservice("http://www.homermultitext.org/iipsrv", "/project/homer/pyramidal/deepzoom")
Package version: 0.7.2
October 11, 2024
You can use URN references to embed images in Web pages.
Instantiate a IIIF service:
Format the request for inclusion in a markdown document. Here, we’ll use the optional height parameter to set the result image’s size in pixels.
We need an additional parameter for the ImageCitationTool to link to. In this exmaple, we’ll opt to include both a height in pixels and a caption to embed in the markdown.
ict = "http://www.homermultitext.org/ict2/?"
embedwlink = linkedMarkdownImage(ict, img, service; w=100, caption="folio 12 recto")"[](http://www.homermultitext.org/ict2/?urn=urn:cite2:hmt:vaimg.2017a:VA012RN_0013)"
The output is linked to the configured image citation tool.
Format the request for inclusion in an HTML document. Here, we’ll use the optional height parameter to set the result image’s size in pixels.