Mercurial > hg > digilib
annotate doc/src/site/markdown/iiif-api.md @ 1528:08d64f3d1f76
beginning of auth documentation.
author | robcast |
---|---|
date | Thu, 08 Sep 2016 13:53:42 +0200 |
parents | 1616ea719290 |
children | cd45d49f438d |
rev | line source |
---|---|
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
1 # The digilib IIIF API |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
2 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
3 The Scaler servlet provides not only its native [Scaler API](scaler-api.html) but also an API compliant to the standards of the International Image Interoperability Framework http://iiif.io. |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
4 |
1458
1616ea719290
added colop=BITONAL for black-and-white images (no fancy algorithm).
robcast
parents:
1452
diff
changeset
|
5 As of version 2.3.7 digilib supports the [IIIF Image API version 2](http://iiif.io/api/image/2.0/) at [compliance level 2](http://iiif.io/api/image/2.0/compliance.html). You can switch between API version 1.1 and 2.0 support with the `iiif-api-version` parameter in [digilib-config](digilib-config.html), |
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
6 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
7 IIIF Image API URLs for an image request have the form: |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
8 |
1452
9429bb9c3a42
more IIIF API support (expose size of prescaled images).
robcast
parents:
1427
diff
changeset
|
9 http[s]://{server}/{digilib-webapp}/Scaler/{iiif-prefix}/{identifier}/{region}/{size}/{rotation}/{quality}.{format} |
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
10 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
11 where `digilib-webapp` is the name of the digilib web application in the servlet container. |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
12 |
1452
9429bb9c3a42
more IIIF API support (expose size of prescaled images).
robcast
parents:
1427
diff
changeset
|
13 The value of `iiif-prefix` is defined by the `iiif-prefix` parameter in [digilib-config](digilib-config.html). The default value is "IIIF". |
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
14 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
15 The `identifier` part of the URL must not contain slashes. Since the identifier is mapped to the digilib fn-parameter, which is a filesystem path that likely contains slashes separating subdirectories, all occurrences of a slash have to be replaced by the value of the `iiif-slash-replacement` parameter in [digilib-config](digilib-config.html). The default value of the replacement string is "!", so the fn-path "books/book1/page0002" becomes the identifier "books!book1!page0002". |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
16 |
1452
9429bb9c3a42
more IIIF API support (expose size of prescaled images).
robcast
parents:
1427
diff
changeset
|
17 For a definition of the other parameters `region`, `size`, `rotation`, `quality`, and `format` please see the [IIIF Image API docs](http://iiif.io/api/image/2.0/). |
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
18 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
19 A IIIF Image API image request URL could look like: |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
20 |
1452
9429bb9c3a42
more IIIF API support (expose size of prescaled images).
robcast
parents:
1427
diff
changeset
|
21 http://www.example.org/digilib/Scaler/IIIF/books!book1!page0002/full/!150,75/0/default.jpg |
1396
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
22 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
23 An info request URL for the same image looks like: |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
24 |
7a2de95a7b8e
documentation updated with Ubbo's codec tuning tips and IIIF API info.
robcast
parents:
diff
changeset
|
25 http://www.example.org/digilib/Scaler/IIIF/books!book1!page0002/info.json |