Class Util

java.lang.Object
org.dspace.iiif.canvasdimension.Util

public class Util extends Object
Utilities for IIIF canvas dimension processing.
Author:
Michael Spalti mspalti@willamette.edu
  • Method Summary

    Modifier and Type
    Method
    Description
    static int[]
    checkDimensions(int[] dims)
    IIIF Presentation API version 2.1.1: If the largest image’s dimensions are less than 1200 pixels on either edge, then the canvas’s dimensions SHOULD be double those of the image.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • checkDimensions

      public static int[] checkDimensions(int[] dims)
      IIIF Presentation API version 2.1.1: If the largest image’s dimensions are less than 1200 pixels on either edge, then the canvas’s dimensions SHOULD be double those of the image.
      Parameters:
      dims -
      Returns: