Question About 'levelsizes' and 'multires' xml attribute

  • Hi,

    As part of my config, I have the levelsizes set to

    levelsizes=512,1024,2048,4096,8192


    e.g.:


    # multiresolution settings
    multires=true
    tilesize=512
    levels=auto
    levelstep=1.5
    levelsizes=512,1024,2048,4096,8192
    maxsize=auto
    maxcubesize=auto
    leveldownload=auto
    adjustlevelsizes=true

    In my xml file (used for all uploaded images) I then have this:


    <image>
    <cube url="/tile.php?id=<?php echo $id; ?>&amp;tile=l%l_%s_%0v_%0h.jpg" multires="512,8192,4096,2048,1024,512" />
    </image>


    This was working fine, but I generated tiles using 1.20.5 (using the same config) and I was getting an error because it was looking for tiles that didn't exist.

    I then generated the tiles manually on my local machine to check the generated xml and it's configured like this:

    <image prealign="0|0.0|0">
    <cube url="tiles/l%l_%s_%0v_%0h.jpg" multires="512,512,1024,2048,4096,8192" />
    </image>


    Using the multires attribute value fixes the issue, but also breaks previously generated tiles.

    Is there a way to configure it so that the behaviour is consistent regardless of the image?

    I'm not actually sure how this work as it's the same values but in different orders, does this effect how the tile requests are generated?

    Thanks,
    Martin

  • I've had a more in-depth read at the documentation so I've made the following changes


    # multiresolution settings
    multires=true
    tilesize=512

    # levels and levelstep are ignored when levelsizes is set
    #levels=auto
    #levelstep=1.5

    levelsizes=512,1024,2048,4096,8192
    minsize=512
    maxsize=8192

    maxcubesize=auto
    adjustlevelsizes=true

    and then in the xml

    multires="512,512,1024,2048,4096,8192"

  • Hi,

    that was a bug in the krpano tools, the levels were generated in the wrong order.
    It was fixed in 1.20.3:

    Zitat

    Fix: When using custom levelsizes for the multires tile generation, the level order was wrongly inverted.

    That means either change the order in the xml or in the config to keep it working as before.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!