Skip to content

Commit

Permalink
Add partial IIIF 2.1 compliance
Browse files Browse the repository at this point in the history
Now support `max` size parameter, but keeps it backwards compatible
with `full`.
  • Loading branch information
Andy Foster committed Apr 24, 2024
1 parent 174248d commit a1df5e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loris/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ def route(self, request):
return BadRequestResponse('"%s" is not a supported format' % (fmt,))
quality = params['quality']
rotation = params['rotation']
size = params['size']
if params['size'] == 'max':
size = 'full'
else:
size = params['size']
region = params['region']

return self.get_img(request, ident, region, size, rotation, quality, fmt, base_uri)
Expand Down

0 comments on commit a1df5e3

Please sign in to comment.