Git Product home page Git Product logo

test-server's Introduction

test-server

This a test server to test iiif clients.

It contains test cases of Image API (v2 and v3), Presentation API (v2 and v3) abd Auth API (v1).

Installation

  1. Install Node.js
  2. Install yarn or npm
  3. Copy env.example to .env and set up the parameters
  4. yarn install or npm install
  5. yarn run start or npm run start

Demo

https://iiif-testing.sozialarchiv.ch

test-server's People

Contributors

dependabot[bot] avatar sozialarchiv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

test-server's Issues

Add missing test case

  • Missing file
  • Missing info.json
  • Missing manifest upper level
  • Missing manifest lower level

universal viewer and ImageService3

Universal viewer is not rendering an ImageServer3 manifest.

It just shows the title and the unscaled image, but it is not using the image service.

image

With mirador and our viewer the manifest works.

It also work if I am using the presenter API v3 and ImageService2 service with universal viewer.

{
  "id": "http://localhost:3333/iiif/v3/manifest/ariel",
  "type": "Manifest",
  "label": {
    "none": [
      "Ariel_-_LoC_4a15521.jpg"
    ]
  },
  "@context": "http://iiif.io/api/presentation/3/context.json",
  "items": [
    {
      "id": "http://localhost:3333/iiif/v3/manifest/ariel/1/canvas",
      "type": "Canvas",
      "width": 1840,
      "height": 1450,
      "items": [
        {
          "id": "http://localhost:3333/iiif/v3/manifest/ariel/1/annotationPage",
          "type": "AnnotationPage",
          "items": [
            {
              "id": "http://localhost:3333/iiif/v3/manifest/ariel/annotation",
              "type": "Annotation",
              "motivation": "painting",
              "body": {
                "id": "http://localhost:3333/image-service/v3/ariel/full/!100,100/0/default.jpg",
                "type": "Image",
                "format": "image/jpg",
                "service": [
                  {
                    "id": "http://localhost:3333/image-service/v3/ariel",
                    "type": "ImageService3",
                    "profile": "level2"
                  }
                ]
              },
              "target": "http://localhost:3333/iiif/v3/manifest/ariel/1/canvas"
            }
          ]
        }
      ]
    }
  ],
  "partOf": [
    {
      "id": "http://localhost:3333/iiif/v3/collection/image",
      "type": "Collection"
    }
  ],
}
{
  "id": "http://localhost:3333/image-service/v3/ariel",
  "type": "ImageService3",
  "protocol": "http://iiif.io/api/image",
  "width": 1840,
  "height": 1450,
  "profile": "level2",
  "@context": "http://iiif.io/api/image/3/context.json",
  "preferredFormats": [
    "jpg"
  ],
  "extraFormats": [
    "jpg",
    "png",
    "gif",
    "webp"
  ],
  "extraFeatures": [
    "canonicalLinkHeader",
    "profileLinkHeader",
    "mirroring",
    "rotationArbitrary",
    "regionSquare"
  ],
  "extraQualities": [
    "default",
    "color",
    "gray",
    "bitonal"
  ]
}

@kerim1 Do you see a mistake in the manifests?

Otherwise I will open an issue at the unverversal viewer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.