Problem - loading hangs when at minimum zoom

Help
2010-02-25
2012-10-06
  • Frank Murphy

    Frank Murphy - 2010-02-25

    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

     
  • Ruven

    Ruven - 2010-02-26

    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.

     
  • Frank Murphy

    Frank Murphy - 2010-02-26

    Thanks for the quick reply. Is there any way I can alleviate the problem by
    choosing appropriate image dimensions, etc?

    Frank

     
  • Ruven

    Ruven - 2010-02-26

    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!

     
  • Frank Murphy

    Frank Murphy - 2010-02-26

    Ruven

    Thanks for the fix - it solved the problem.

    Frank

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks