You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [extra formats](https://iiif.io/api/image/3.0/#57-extra-functionality) your service can deliver.
34
-
35
-
### `:temp_dir` (default: Evaluates [System.tmp_dir!()](https://hexdocs.pm/elixir/System.html#tmp_dir!/0) and creates
36
-
a directory "iiif_image_plug" there.
37
-
38
-
Because of how the TIF file format is structured, the plug can not stream the image if tif was requested as the response
39
-
[format](https://iiif.io/api/image/3.0/#45-format). Instead, the image gets first written to a temporary file, which is then streamed
40
-
from disk and finally getting deleted.
41
-
42
-
If you want to forgo this file creation, you can set this option to `:buffer` instead of a file path. This will configure
43
-
the plug to write the complete image to memory instead of disk - which is faster but also may cause memory issues if
44
-
very large images are requested.
45
-
46
-
### `:scheme` (optional)
47
-
Callback function to override the scheme evaluated from the `%Plug.Conn{}`, useful if your Elixir app runs behind a proxy.
48
-
49
-
### `:host` (optional)
50
-
Callback function to override the host evaluated from the `%Plug.Conn{}`, useful if your Elixir app runs behind a proxy.
51
-
52
-
### `:port` (optional)
53
-
Callback function to override the port evaluated from the `%Plug.Conn{}`, useful if your Elixir app runs behind a proxy.
54
-
55
-
### `:identifier_to_rights_callback` (optional)
56
-
An arity 1 callback function that returns a [rights](https://iiif.io/api/image/3.0/#56-rights) statement for a given identifier.
57
-
58
-
### `:identifier_to_part_of_callback` (optional)
59
-
An arity 1 callback function that returns a list of [part of](https://iiif.io/api/image/3.0/#58-linking-properties) properties for a given identifier.
60
-
61
-
### `:identifier_to_see_also_callback` (optional)
62
-
An arity 1 callback function that returns a list of [see also](https://iiif.io/api/image/3.0/#58-linking-properties) properties for a given identifier.
63
-
64
-
### `:identifier_to_service_callback` (optional)
65
-
An arity 1 callback function that returns a list of [service](https://iiif.io/api/image/3.0/#58-linking-properties) properties for a given identifier.
66
-
67
-
### `:status_callbacks` (optional)
68
-
A map where each key is a HTTP status code (integer), and each value an arity 2 callback that can be used to replace the plug's default response. Each
69
-
callback should accept a plug as its first parameter and a Map (containing the error message) as its second parameter.
16
+
This plug implements the IIIF Image API version 3 (see also https://iiif.io/api/image/3.0).
0 commit comments