Hymir is a Java based IIIF Server. It is based on "IIIF Image API Java Libraries" and "IIIF Presentation API Java Libraries" projects (see https://github.com/dbmdz)
MIT License
27
stars
7
forks
source link
Return status 400 if scaling results in zero height #211
A query like /iiif/image/v2/bsb00035009_00004/0,2048,1500,1/750,/0/default.jpg may result in a target image size with a zero height. This currently leads to an internal server error, but should return a response with status code 400 according to IIIF Image API 2.1.1 specification:
If the resulting height or width is zero, then the server should return a 400 (bad request) status code.
Determing the target size happens in ImageServiceImpl:253.
Request for testing:
GET localhost:9000/image/v2/bsb00035009_00004/0,2048,1500,1/750,/0/default.jpg
A query like
/iiif/image/v2/bsb00035009_00004/0,2048,1500,1/750,/0/default.jpg
may result in a target image size with a zero height. This currently leads to an internal server error, but should return a response with status code 400 according to IIIF Image API 2.1.1 specification:Determing the target size happens in
ImageServiceImpl:253
.Request for testing: