Skip to content

Commit

Permalink
Updated IIIF info.json output to be compliant with changed IIIF 2.0 s…
Browse files Browse the repository at this point in the history
…pecification
  • Loading branch information
ruven committed Sep 5, 2014
1 parent 590cdc2 commit a47a95f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
05/09/2014:
- Updated IIIF info.json output to be compliant with changed IIIF 2.0 specification.


03/09/2014:
- Fix to IIPImage.cc for file type detection for multispectral sequences.

Expand Down
4 changes: 2 additions & 2 deletions src/IIIF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void IIIF::run( Session* session, const string& src ){
<< " \"height\" : " << height << "," << endl
<< " \"tiles\" : [" << endl
<< " { \"width\" : " << tw << ", \"height\" : " << th
<< ", \"scale_factors\" : [ 1"; // Scale 1 is original image
<< ", \"scaleFactors\" : [ 1"; // Scale 1 is original image

for( unsigned int i=1; i < numResolutions; i++ ){
infoStringStream << ", " << pow(2.0,(double)i);
Expand All @@ -189,7 +189,7 @@ void IIIF::run( Session* session, const string& src ){
<< " \"" << IIIF_PROFILE << "\"," << endl
<< " { \"formats\" : [ \"jpg\" ]," << endl
<< " \"qualities\" : [ \"native\",\"color\",\"gray\" ]," << endl
<< " \"supports\" : [\"region_by_pct\",\"size_by_forced_wh\",\"size_by_wh\",\"size_above_full\",\"rotation_by_90s\",\"mirroring\",\"gray\"] }" << endl
<< " \"supports\" : [\"regionByPct\",\"sizeByForcedWh\",\"sizeByWh\",\"sizeAboveFull\",\"rotationBy90s\",\"mirroring\",\"gray\"] }" << endl
<< " ]" << endl
<< "}";

Expand Down

0 comments on commit a47a95f

Please sign in to comment.