mirador
Version:
An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
8 lines (6 loc) • 353 B
JavaScript
import { Utils } from 'manifesto.js';
/** @returns an IIIF image service for the given resource */
export function getIiifResourceImageService(resource) {
return resource.getServices().find(service => (
(service.getProfile && Utils.isImageProfile(service.getProfile() || '')) || Utils.isImageServiceType(service.getIIIFResourceType() || '')));
}