Just getting up and running... I am using the iipsrv.fcgi with apache2 +
iipmooviewer and all is well except that when the image is first loaded, or
zoomed out fully, the image loading hangs and two tiles that are from the left
side of the image are "appended" to the right of the image. (I made the images
using vips.)
Yes, sorry, this is due to a rounding error bug in the calculation of the
resolution sizes! I hope to release a new version of IIPMooViewer soon.
Otherwise I will try to patch the current version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Try looking in the iipmooviewer-1.1.js file for the loadGrid() function. Then
simply replace the equivalent lines with this:
// If our size is smaller than the display window, only get these tiles!
var len = this.rgn_w;
if( this.wid < this.rgn_w ) len = this.wid;
var endx = Math.ceil( ((len + this.rgn_x)/this.tileSize) - 1 );
len = this.rgn_h;
if( this.hei < this.rgn_h ) len = this.hei;
var endy = Math.ceil( ( (len + this.rgn_y)/this.tileSize) - 1 );
I hope that fixes it!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Just getting up and running... I am using the iipsrv.fcgi with apache2 +
iipmooviewer and all is well except that when the image is first loaded, or
zoomed out fully, the image loading hangs and two tiles that are from the left
side of the image are "appended" to the right of the image. (I made the images
using vips.)
I have a demo at https://rapd.nec.aps.anl.gov/rapd/iipimage/iipmooviewer.html
Thanks in advance!
Frank
Yes, sorry, this is due to a rounding error bug in the calculation of the
resolution sizes! I hope to release a new version of IIPMooViewer soon.
Otherwise I will try to patch the current version.
Thanks for the quick reply. Is there any way I can alleviate the problem by
choosing appropriate image dimensions, etc?
Frank
Try looking in the iipmooviewer-1.1.js file for the loadGrid() function. Then
simply replace the equivalent lines with this:
// If our size is smaller than the display window, only get these tiles!
var len = this.rgn_w;
if( this.wid < this.rgn_w ) len = this.wid;
var endx = Math.ceil( ((len + this.rgn_x)/this.tileSize) - 1 );
len = this.rgn_h;
if( this.hei < this.rgn_h ) len = this.hei;
var endy = Math.ceil( ( (len + this.rgn_y)/this.tileSize) - 1 );
I hope that fixes it!
Ruven
Thanks for the fix - it solved the problem.
Frank