Skip to content
jpstroop edited this page Oct 8, 2012 · 7 revisions

Design

Given an IIIF URI:

http://example.edu/loris/<id>/<region>/<size>/<rotation>/<quality>.<format>

The region, size, and rotation parameters are handled by custom subclasses of Werkzeug's BaseConverter class. These all these converters require is a regex to determine what how to match a part of the URI (for routing) and two methods: one for turning it into a [slice of] a URI, and one for turning the URI segment into a Python object. The latter is our only concern.

Clone this wiki locally