33A single-container deployment of [ IIPImage] ( https://iipimage.sourceforge.io ) ,
44running on [ nginx] ( http://nginx.org/en/ ) with FastCGI.
55
6- (Forked from [ iiip-nginx-single] ( https://git.lib.berkeley.edu/lap/iiip-nginx-single ) .)
7-
86## Configuration
97
108When using this image, either on its own or with the included
@@ -20,6 +18,13 @@ environment variables:
2018See the [ IIPImage docs] ( https://iipimage.sourceforge.io/documentation/server/#configuration )
2119for a full list of environment variables.
2220
21+ In addition, the Dockerfile uses the ` IIPSRV_VERSION ` and ` IIPSRV_BUILD_REF `
22+ build arguments to specify the version of IIPImage to compile for the image.
23+ ` IIP_VERSION ` assumes Git tags of the format ` iipsrv-${IIP_VERSION} ` are
24+ being created upstream; ` IIPSRV_BUILD_REF ` is used to specify an alternate
25+ branch or tag name that may not be in this format.
26+
27+
2328## Notes for developers
2429
2530### Default development configuration
@@ -41,7 +46,7 @@ Note that nginx/IIPImage runs on port 80, and is exposed on host port 80.
4146By default, the [ ` iipsrv-entrypoint.sh ` ] ( iipsrv-entrypoint.sh ) script will
4247cause files to be served from the ` test/data ` directory.
4348
44- You can override this mount by passing a ` $FILESYSTEM ` value to
49+ You can override this mount by passing a ` $FILESYSTEM_PREFIX ` value to
4550the container; see below under [ "Custom configuration"] ( #custom-configuration ) .
4651
4752#### Testing
@@ -53,13 +58,12 @@ To test that the container has come up correctly, using the image file
5358curl -v ' http://localhost/iiif/test.tif/info.json'
5459```
5560
56- This should produce a IIIF [ information response] ( https://iiif.io/api/image/2 .0/#information-request )
61+ This should produce a IIIF [ information response] ( https://iiif.io/api/image/3 .0/#51-image- information-request )
5762in JSON format, e.g.:
5863
5964``` json
6065{
61- "@context" : " http://iiif.io/api/image/2/context.json" ,
62- "@id" : " http://localhost/iiif/test.tif" ,
66+ "@context" : " http://iiif.io/api/image/3/context.json" ,
6367 "protocol" : " http://iiif.io/api/image" ,
6468 "width" : 2769 ,
6569 "height" : 3855 ,
@@ -72,15 +76,23 @@ in JSON format, e.g.:
7276 "tiles" : [
7377 { "width" : 256 , "height" : 256 , "scaleFactors" : [ 1 , 2 , 4 , 8 , 16 ] }
7478 ],
75- "profile" : [
76- " http://iiif.io/api/image/2/level1.json" ,
77- { "formats" : [ " jpg" ],
78- "qualities" : [ " native" ," color" ," gray" ," bitonal" ],
79- "supports" : [" regionByPct" ," regionSquare" ," sizeByForcedWh" ," sizeByWh" ," sizeAboveFull" ," rotationBy90s" ," mirroring" ],
80- "maxWidth" : 5000 ,
81- "maxHeight" : 5000
82- }
79+ "id" : " http://localhost/iiif/test.tif" ,
80+ "type" : " ImageService3" ,
81+ "profile" : " level1" ,
82+ "maxWidth" : 5000 ,
83+ "maxHeight" : 5000 ,
84+ "extraQualities" : [" color" ," gray" ," bitonal" ],
85+ "extraFormats" : [" tif" ," webp" ],
86+ "extraFeatures" : [" regionByPct" ," sizeByPct" ," sizeByConfinedWh" ," sizeUpscaling" ," rotationBy90s" ," mirroring" ],
87+ "service" : [
88+ {
89+ "@context" : " http://iiif.io/api/annex/services/physdim/1/context.json" ,
90+ "profile" : " http://iiif.io/api/annex/services/physdim" ,
91+ "physicalScale" : 0.00846667 ,
92+ "physicalUnits" : " cm"
93+ }
8394 ]
95+
8496}
8597```
8698
0 commit comments