[iipmooviewer 1.1] Initial zoom @ full height

  • Michael

    Michael - 2010-11-09


    I'm interested in having the initial zoom load at the full height of the
    canvas...can someone point me in the right direction?


  • Ruven

    Ruven - 2010-11-10

    If you are using IIPMooViewer, there is the "zoom" parameter which can set the
    initial zoom level. Otherwise for the flash client, iipzoom, there is no way
    to set the initial zoom level, but in any case it should load to the full
    height on start up.

  • DGSL

    DGSL - 2010-11-10

    I might be wrong but from the days I was trying to look at the iipzoom source
    code, I am pretty sure I had found a way to pass flashvars to the iipzoom
    viewer so it could be loaded focused to a specific RGN of the image. I
    discovered this while chatting with you (Ruven) so it should be in IRC log
    files. Do you keep them?

    The shame is that I use a webchat client and I didn't kept that info since I
    assumed you were going to document it, but you probably forgot.
    I suppose I found this option somewhere in openzoom source code ... but dont
    remember where

  • DGSL

    DGSL - 2010-11-10

    For more info, I know I was dealing with this by these dates (just in case you
    keep irc logs):
    7-8 march 2010
    1-4 april 2010
    1-2 may 2010
    ... later I decided modifying iipzoom viewer was a bit beyond my capabilities

  • DGSL

    DGSL - 2010-12-02

    I just discovered that some numbers do appear at top left corner of iipzoom
    viewer after pressing M key (if you type M again, they dissapear).

    M option does not appear on menu (right clicking on the viewer) so I am not
    sure what they mean.
    They are followed by "MiB" string; looks like they mean image size but they
    actually change as you move or zoom in/out. The number usually grows up but
    sometimes it gets lower.

    Does anyone have idea?
    Perhaps this is something also inherited from openzoom source code?

  • Ruven

    Ruven - 2010-12-02

    I just discovered that some numbers do appear at top left corner of iipzoom
    viewer after pressing M key (if you type M again, they dissapear).

    This shows the memory used by iipzoom. Yes, it's something from the openzoom

  • DGSL

    DGSL - 2010-12-04

    Finally I got it !!

    Play attention to these links:


    ... where it says "0.9.1 (2009-11-29) Added support for setting intial
    viewport bounds through viewportBounds HTML FlashVars"

    <param name="flashvars" value="source=...&viewportBounds=0.2,0.5,0.5,0.4" />


    ... where the last comment adds an usage example: "coordinates mean (20% left,
    50% right, 50% width, 40% height)"

    So I think this is equivalente to IIP protocol RGN parameter

  • DGSL

    DGSL - 2010-12-06

    Well not exactly RGN (where IIP should apply limits strictly, even if the
    image aspect ratio has to be distorted).
    In this case the viewer zooms to an extent that includes all the selected
    area, I guess

    An usage example here:
    (Put a latitude value between -90 and 90 and longitude between -180 to 180; it
    calculates the viewportBounds parameter and passes it to the viewer, so it
    zooms into Blue Marble sample served from iipimage.sf.net)



Cancel  Add attachments

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

Sign up for the SourceForge newsletter:

No, thanks