Skip to content

Commit

Permalink
Removed the max size limit from IIIF info.json sizes array. This now …
Browse files Browse the repository at this point in the history
…provides the full list of resolution sizes with the maxWidth and maxHeight variables specifying the maximum available export size.
  • Loading branch information
ruven committed Sep 22, 2023
1 parent 37aebe6 commit dc9dd12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
22/09/2023:
- Removed the max size limit from IIIF info.json sizes array. This now provides the full list of resolution sizes
with the maxWidth and maxHeight variables specifying the maximum available export size.


21/09/2023:
- Major update of debug mode to allow requests to be made directly on the command line using standard input with
output sent directly to a file without the need for a web server or FCGI. Debug mode activated when DEBUG
Expand Down
7 changes: 2 additions & 5 deletions src/IIIF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,8 @@ void IIIF::run( Session* session, const string& src )
for ( int i = numResolutions - 2; i > 0; i-- ){
unsigned int w = (*session->image)->image_widths[i];
unsigned int h = (*session->image)->image_heights[i];
// Only advertise images below our max size value
if( (max == 0) || (w < max && h < max) ){
infoStringStream << "," << endl
<< " { \"width\" : " << w << ", \"height\" : " << h << " }";
}
infoStringStream << "," << endl
<< " { \"width\" : " << w << ", \"height\" : " << h << " }";
}

infoStringStream << endl << " ]," << endl
Expand Down

0 comments on commit dc9dd12

Please sign in to comment.