.scripts/contentdm.php
/**
   * Step 3.x.2 - Image Dimension Retriever
   *
   * Determines the dimensions of the big image specifically for the given
   * record. This is done due to each image being different size, and will
   * reduce bandwidth stress between servers.
   *
   * @param  Array $record -- Manuscript
   * @return Array
   */
Step 3.x.2 - Image Dimension Retriever
Determines the dimensions of the big image specifically for the given
record. This is done due to each image being different size, and will
reduce bandwidth stress between servers.

@param  Array $record -- Manuscript
@return Array
Step 3 . x . 2 - Image Dimension Retriever Determines the dimensions of the big image specifically for the given record . This is done due to each image being different size and will reduce bandwidth stress between servers . @param Array $record -- Manuscript @return Array
private function retrieveImageDimensions($record) {
    $this->logger("Retrieving image dimensions for " . $record["pointer"]);
    $remote = json_decode(file_get_contents("http://digital.tcl.sc.edu/utils/ajaxhelper/?CISOROOT=" . $record["collection"] . "&CISOPTR=" . $record["pointer"]), true);
    return array(":image_height" => (string) $remote["imageinfo"]["height"], ":image_width" => (string) $remote["imageinfo"]["width"]);
  }
private function retrieveImageDimensions ( $ record ) { $ this -> logger ( " Retrieving image dimensions for  " . $ record [ " pointer " ] ) ; $ remote = json_decode ( file_get_contents ( " http://digital.tcl.sc.edu/utils/ajaxhelper/?CISOROOT= " . $ record [ " collection " ] . " &CISOPTR= " . $ record [ " pointer " ] ) , true ) ; return array ( " :image_height " => ( string ) $ remote [ " imageinfo " ] [ " height " ] , " :image_width " => ( string ) $ remote [ " imageinfo " ] [ " width " ] ) ; }
Step 3.x.2 - Image Dimension Retriever
 Determines the dimensions of the big image specifically for the given
 record.
Step 3 . x . 2 - Image Dimension Retriever Determines the dimensions of the big image specifically for the given record .