Sha256: 1864d8c1f82cd0014c94b5f7b99a74cf2a58b8f5b7f8ae8e45e5d62f3af33015
Contents?: true
Size: 498 Bytes
Versions: 4
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true module GeoblacklightSidecarImages class ImageService module Iiif ## # Formats and returns a thumbnail url from an International Image # Interoperability Framework endpoint. # @param [SolrDocument] # @param [Integer] thumbnail size # @return [String] iiif thumbnail url def self.image_url(document, size) "#{document.viewer_endpoint.gsub("info.json", "")}full/#{size},/0/default.jpg" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems