Module: GeoblacklightAdmin::ImageService::Iiif

Defined in:
app/services/geoblacklight_admin/image_service/iiif.rb

Class Method Summary collapse

Class Method Details

.image_url(document, _size) ⇒ String

Formats and returns a thumbnail url from an International Image Interoperability Framework endpoint.

Parameters:

  • (SolrDocument)
  • thumbnail (Integer)

    size

Returns:

  • (String)

    iiif thumbnail url



12
13
14
# File 'app/services/geoblacklight_admin/image_service/iiif.rb', line 12

def self.image_url(document, _size)
  "#{document.viewer_endpoint.gsub("info.json", "")}full/max/0/default.jpg"
end