docs: def iiif_image_api_info(request, identifier_param):
      """
      Image Information endpoint for IIIF Image API 2.1, see
      http://iiif.io/api/image/2.1/#image-information
      """
      # TODO Add support for 'application/ld+json' response when requested
      accept_header = request.environ.get('HTTP_ACCEPT')
      if accept_header == 'application/ld+json':
          return HttpResponseNotImplemented(
              "JSON-LD response is not yet supported")
  
      ik_image, __ = _get_image_or_404(identifier_param)
      info = {
          "@context": "http://iiif.io/api/image/2/context.json",
          "@id": request.get_full_path(),
          "@type": "iiif:Image",
          "protocol": "http://iiif.io/api/image",
          "width": ik_image.width,
          "height": ik_image.height,
      }
      # TODO Return more complete info.json response per spec
  
      if ik_image.license:
          info['license'] = [ik_image.license]
  
      attribution_value = u' '.join([
          u"Credit: %s." % ik_image.credit if ik_image.credit else '',
          u"Provided by: %s." % ik_image.source if ik_image.source else '',
      ]).strip()
      if attribution_value:
          info['attribution'] = [{
              "@value": attribution_value,
              "@language": "en",
          }]
  
      # TODO Send header "Access-Control-Allow-Origin: *" per spec?
      return JsonResponse(info)