Sha256: 9cc7696159efc088486df9d6e069312ca79954716d176e7eb627a4e060e1d099

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module GeoblacklightAdmin
  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/max/0/default.jpg"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight_admin-0.6.0 app/services/geoblacklight_admin/image_service/iiif.rb
geoblacklight_admin-0.5.1 app/services/geoblacklight_admin/image_service/iiif.rb
geoblacklight_admin-0.5.0 app/services/geoblacklight_admin/image_service/iiif.rb
geoblacklight_admin-0.4.2 app/services/geoblacklight_admin/image_service/iiif.rb