API documentation
Service interactions
Exported structures and functions
CitableImage.IIIFservice — TypeAn instance of an IIIF image service.
CitableImage.url — FunctionCompose URL for retrieving an image from an IIIF service.
url(img, service; w, extension)
Arguments
urlCite2Urnfor an image.serviceIIIFServicehtHeight of resulting image in pixels.extensionExtension for file name on server.
Markdown formatting
CitableImage.markdownImage — FunctionCompose markdown wrapping an IIIF URL for retrieving an image.
markdownImage(img, service; w, caption)
Arguments
imgCite2Urnfor an image.serviceIIIFServicehtHeight of resulting image in pixels.
CitableImage.linkedMarkdownImage — FunctionCompose markdown wrapping IIIF URL for image linked to an image citation tool installation.
linkedMarkdownImage(
ict,
img,
service;
w,
caption,
extension
)
Arguments
ictURL of an instance of the CiteArchitecture ImageCitationTool.imgCite2Urnfor an image.serviceIIIFServicewWidth of resulting image in pixels.captionCaption to embed in resulting linked markdown string.
Internal functions
CitableImage.pctString — FunctionGiven a region-of-interest string, compose percent expression for IIIF.
pctString(s)
Argument
sstring with four comma-separated ROI values
Given a CITE2 URN with region-of-interest subreference, compose percent expression for IIIF.
pctString(u)
CitableImage.roiFloats — FunctionGiven a region-of-interest string, compute percent values, with result rounded to a given number of digits.
roiFloats(s)
roiFloats(s, digits)
Arguments
sstring with four comma-separated ROI valuesdigitsprecision of resulting float