You are not logged in.

1

Friday, April 3rd 2020, 3:00pm

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

2

Friday, April 3rd 2020, 3:38pm

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"

3

Saturday, April 4th 2020, 11:04am

Hi,

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

Quoted

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

4

Tuesday, April 7th 2020, 5:13pm

Hi Klaus,

Ah, ok, sorry, must have missed that - apologies, but thanks for taking the time to post - much appreciated!

Cheers,
Martin