Islandora Large_Image

  • Islandora_OpenSeadragon
cd /var/www/asaisla.to.cnr.it/sites/all/modules/
git clone git://github.com/Islandora/islandora_openseadragon.git
cd /var/www/asaisla.to.cnr.it/
drush -u 1 en islandora_openseadragon
  • Redirect Openseadragon tile source to fedora

By default tile source point to front-end server to download JP2. In some case pointing directly to fedora may result in better performance.
To modify how this works you can add to your theme template.php this functions to override tile source URL for islandora openseadragon (Many thanks Nigel!!):

function beginning_preprocess_islandora_openseadragon_viewer(array &$variables) {
  module_load_include('inc', 'islandora_openseadragon', 'includes/utilities');
  $pid =  $variables['settings']['pid'];
  $matches = array();
  preg_match('/datastream%2[fF](.*)%2[fF]view/', $variables['settings']['options']['tileSources'][0], $matches);
  $dsid = isset($matches[1]) ? $matches[1] : NULL;
  $identifier = "http://FEDORA_IP_or_FQDN:8080/fedora/objects/".$pid."/datastreams/".$dsid."/content";
  $variables['settings']['options']['tileSources'] = islandora_openseadragon_identifier_tile_source($identifier);
}

This function replaces tile source URL and remove token, so IIIF server download directly from fedora avoiding network loop with front-end.

  • Islandora large image
cd /var/www/asaisla.to.cnr.it/sites/all/modules/
git clone git://github.com/Islandora/islandora_solution_pack_large_image
cd /var/www/asaisla.to.cnr.it/
drush -u 1 en islandora_large_image

Browse to admin/islandora/solution_pack_config/large_image:

 Create Lossless Derivatives = YES
 Use Kakadu for image compression = YES
 Uncompress TIFF files prior to creating JP2 datastreams =YES
 Path to Kakadu: /usr/local/bin/kdu_compress
 Viewers: OpenSeadragon

Browse to admin/islandora/solution_pack_config/solution_packs and verify required objects:

  Islandora Large Image Content Model	islandora:sp_large_image_cmodel	 	Up-to-date
  Large Image Collection		islandora:sp_large_image_collection	Up-to-date



  • Test SP Large Image

Browse to Large Image Collection: islandora/object/islandora:sp_large_image_collection.
Manage → Add an object to this Collection: islandora/object/islandora:sp_large_image_collection/manage/overview/ingest
Datastreams:

 
 
isla7x/limage.txt · Last modified: 2017/08/01 17:23 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
ASA@TO.CNR is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki