iiif image api @ ghent

19
IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08 The IIIF Image API http:// iiif.io / api /image/2.0/ Simeon Warner (Cornell University) With lots of help (& slides) from Jon Stroop , Rob Sanderson , Michael Appleby , Tom Crane ,...

Upload: simeon-warner

Post on 16-Jan-2017

687 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

The IIIF Image API

http://iiif.io/api/image/2.0/

Simeon Warner (Cornell University)

With lots of help (& slides) from Jon Stroop, Rob Sanderson, Michael Appleby, Tom Crane,...

Page 2: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

The Problem

Page 3: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

Without Standards We Have Silos

Application A

Server A

Application B

Server B

Application C

Server C

Application D

Server D

Page 4: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

Technology Becomes Interchangeable

Application A

Server D

Application B

Server C Server B

Application C

Server A

Application D

Page 5: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

Resources Become Shareable

Application A

Server D

Application B

Server C Server B

Application C

Server A

Application D

Page 6: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

The Solution... IIIF Image API

Image API v2.0Draft 2014-06Community reviewReleased 2014-08

Page 7: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

Syntax

(Just Enough) Technical Metadata

The Image

Server Capabilities

http(s)://{server}{/prefix}/{id}/info.json

http(s)://{server}{/prefix}/{id}/{region}/{size}/{rotation}/{quality}.{fmt}

http://iiif.io/api/image/2/level2.json

Page 8: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/full/full/0/default.jpg

5204 x 7200pixels

/full/full/ not practical for all images!

Page 9: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/full/400,/0/default.jpg

Page 10: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/3930,60,1230,3600/400,/0/default.jpg

Page 11: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/3930,60,1230,3600/400,/90/default.jpg

Page 12: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/3930,60,1230,3600/400,/90/gray.jpg

Page 13: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

{id}/full/150,/0/default.png

• png supports transparency• used for thumbnails etc.

Page 14: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

info.json{ "@context" : "http://iiif.io/api/image/2/context.json", "@id" : "http://libimages.princeton.edu/loris2/pudl0130%2F8555444%2F02%2F00000007.jp2", "height" : 7200, "width" : 5204, "profile":[ "http://iiif.io/api/image/2/level2.json", { "supports" : [ "canonicalLinkHeader", "profileLinkHeader", "mirroring" ], "qualities" : [ "default", "bitonal", "gray", "color" ], "formats" : [ "jpg", "png", "gif", "webp" ] } ], "protocol" : "http://iiif.io/api/image", "tiles" : [{ "width" : 1024, "scaleFactors" : [ 1, 2, 4, 8, 16, 32, 64, 128 ] }], "sizes":[ { "width" : 41, "height" : 57 }, { "width" : 82, "height" : 113 }, { "width" : 163, "height" : 225 }, { "width" : 326, "height" : 450 }, { "width" : 651, "height" : 900 }, { "width" : 1301, "height" : 1800 }, { "width" : 2602, "height" : 3600 }, { "width" : 5204, "height" : 7200 } ]}

Page 15: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

leveln.json

{ "@context" : "http://iiif.io/api/image/2/context.json", "@id" : "http://iiif.io/api/image/2/level2.json", "@type" : "iiif:ImageProfile",

"formats" : [ "jpg", "png" ], "qualities" : [ "default", "bitonal" ], "supports" : [ "baseUriRedirect", "cors", "jsonldMediaType", "profileLinkHeader", "regionByPx", "sizeByH", "sizeByPct", "sizeByW", "regionByPct", "rotationBy90s", "sizeByForcedWh", "sizeByWh" ]}

Page 16: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

level0 – static files

• IIIF supports static files, pre-generated tiles•Can still do pan & zoom•Can still have a set of thumnail sizes• Image Information (info.json) lets client know what is available

Demo:http://zimeon.github.io/iiif-static-mandlebrot/

Page 18: IIIF Image API @ Ghent

IIIF: Access to the World's Images – Ghent, Belgium, 2015-12-08

v2.1 nearing final draftNo breaking changes

Clarity++Adds attribution, license and logoAdds square regionTie to authentication