CitableImage.LocalImageFilesType

An instance of an IIIF image service.

  • basedirectory is the root directory of image files organized either in a single flat directory, or in a subdirectory tree mirroring image URN components.
  • expandpath True if paths to images should be expanded to mirror components of an image URN.
CitableImage.TLHWRectRoiType

A rectangular region of interest defined by top y, left x, height and width of rectangle.

CitableImage.TLHWpctRectRoiType

A rectangular region of interest defined by top y, left x, height and width of rectangle in percentages. x and y are the dimensions in pixels of the image.

Base.:==Method

Override Base.== for ImageCollection.

==(c1, c2)
Base.:==Method

Override == for ImageRecord

==(img1, img2)
Base.eltypeMethod

An ImageCollection is a collection of ImageRecords.

eltype(imgcoll)
Base.filterMethod

Filter the list of images in an ImageCollection.

filter(f, imgcoll)
Base.iterateMethod

Iterate an ImageCollection with array index at state.

iterate(imgcoll, state)
Base.iterateMethod

Initial state of iterator for an ImageCollection.

iterate(imgcoll)
Base.iterateMethod

Iterate pages of a Lightbox from page given in state.

iterate(lb, state)
Base.iterateMethod

Begin iterating pages of a Lightbox with page 1.

iterate(lb)
Base.lengthMethod

Number of images in collection.

length(imgcoll)
Base.reverseMethod

Reverse the order of images in an ImageCollection.

reverse(imgcoll)
Base.showMethod

Override Base.show for ImageCollection.

show(io, imgcoll)
Base.showMethod

Override show for ImageRecord

show(io, img)

Required for CitableTrait.

CitableBase.cexMethod

Serialize imgcoll to delimited text in CEX format.

cex(imgcoll; delimiter)
CitableBase.cexMethod

Serialize image record img to delimited text.

cex(img; delimiter)

Required for CexTrait.

CitableBase.fromcexMethod

Instantiate aν ImageRecordfrom delimited text.

fromcex(
    traitvalue,
    cexsrc,
    T;
    delimiter,
    configuration,
    strict
)
CitableBase.fromcexMethod

Instantiate an ImageCollection from cexsrc.

fromcex(trait, cexsrc, T; delimiter, configuration, strict)

If strict is true, then the function uses data model declarations to find relevant data blocks. If strict is false, then it treats citedata blocks as source for a single ImageCollection.

CitableBase.labelMethod

Label for img.

label(img)

Required function for Citable abstraction.

CitableBase.urnMethod

Find collection-level URN for collection.

urn(imgcoll)
CitableBase.urnMethod

URN identifying img.

urn(img)

Required function for Citable abstraction.

CitableBase.urntypeMethod

Type of URN identifying an ImageRecord.

urntype(_)

Required function for Citable abstraction.

CitableImage.hMethod

Catch subtypes of AbstractRectRoi that fail to implement h

CitableImage.htmlImageMethod

Compose HTML img element for image retrieved from an IIIF service.

htmlImage(img, service; w, caption)
CitableImage.imagefloatsMethod

Extract region-of-interest string from an image URN, and convert to a vector of floats rounded to digits significant places. It is an error if the syntax of the URN's subreference is invalid.

imagefloats(imgu; digits)
CitableImage.imgpathMethod

Compose full path to the image file imgurn.

imgpath(imgsrc, imgurn; extension)
CitableImage.leftMethod

Minimum X value in pixels for region of interest.

left(r)
CitableImage.leftMethod

Catch subtypes of AbstractRectRoi that fail to implement left

CitableImage.lightboxMethod

Construct a Lightbox from an ImageCollection.

lightbox(imgcoll; cols, rows)
CitableImage.linkedHtmlImageMethod

Compose markdown wrapping IIIF URL for image linked to an image citation tool installation.

linkedHtmlImage(ict, img, service; w, caption)
CitableImage.linkedMarkdownImageMethod

Compose markdown wrapping IIIF URL for image linked to an image citation tool installation.

linkedMarkdownImage(
    ict,
    img,
    service;
    w,
    caption,
    extension
)

Arguments

  • ict URL of an instance of the CiteArchitecture ImageCitationTool.
  • img Cite2Urn for an image.
  • service IIIFService
  • w Width of resulting image in pixels.
  • caption Caption to embed in resulting linked markdown string.
CitableImage.load_rgbMethod

Instantiate an Image from a URN. Returns a matrix of RGB values.

load_rgb(imgurn)
CitableImage.load_rgbaMethod

Instantiate an Image from a URN. Returns a matrix of RGBA values.

load_rgba(imgurn; alpha)
CitableImage.localimagesMethod

Convenience function to create a LocalImageFiles that will expand paths from URNs by default.

localimages(basedir; expandpath)
CitableImage.markdownImageMethod

Compose markdown wrapping an IIIF URL for retrieving an image.

markdownImage(img, service; w, caption)

Arguments

  • img Cite2Urn for an image.
  • service IIIFService
  • ht Height of resulting image in pixels.
CitableImage.mdtableFunction

Compose a markdown table for page page of lb thumbnail image size in pixels == thumbsize.

mdtable(lb)
mdtable(lb, page; iiif, ict, thumbsize)
CitableImage.mdtableMethod

Compose a markdown table for imgtable with thumbnail image size in pixels == thumbsize.

mdtable(imgtable; iiif, ict, thumbsize)
CitableImage.mdtablesMethod

Compose a markdown table for all pages in lb.

mdtables(lb; iiif, ict, thumbsize)
CitableImage.pctStringMethod

Given a region-of-interest string, compose percent expression for IIIF.

pctString(s)

Argument

  • s string with four comma-separated ROI values
CitableImage.pctStringMethod

Given a CITE2 URN with region-of-interest subreference, compose percent expression for IIIF.

pctString(u)
CitableImage.rgb_dataMethod

Retrieve RGB data for an image identified by URN from a IIIF service.

rgb_data(src, img; extension, w)
CitableImage.rgb_dataMethod

Retrieve binary image data cited by img from src.

rgb_data(src, img; extension, ht)
CitableImage.rgba_dataMethod

Retrieve RGBA data for an image identified by URN from a IIIF service. Optionally set alpha channel on the resulting image.

rgba_data(src, img; extension, w, alpha)
CitableImage.rightMethod

Catch subtypes of AbstractRectRoi that fail to implement right

CitableImage.roiFloatsFunction

Given a region-of-interest string, compute percent values, with result rounded to a given number of digits.

roiFloats(s)
roiFloats(s, digits)

Arguments

  • s string with four comma-separated ROI values
  • digits precision of resulting float
CitableImage.topMethod

Minimum Y value in pixels for region of interest.

top(r)
CitableImage.topMethod

Catch subtypes of AbstractRectRoi that fail to implement top

CitableImage.urlMethod

Compose URL for retrieving an image from an IIIF service.

url(img, service; w, extension)

Arguments

  • url Cite2Urn for an image.
  • service IIIFService
  • ht Height of resulting image in pixels.
  • extension Extension for file name on server.
CitableImage.urnsliceMethod

Extract a slice from img defined by a list of four values giving left top, width and height of a rectangle to extract.

urnslice(img, rect)
CitableImage.wMethod

Catch subtypes of AbstractRectRoi that fail to implement w