How Do I Prevent Loading of Very Small Deep Zoom Tiles?

Edited on 07/20/09
Daniel,

I've noticed that when using DeepZoom derived descriptors that Openzoom loads many seemingly unnecessary image levels at resolutions far smaller than the viewport dimensions -- the 1x1, 2x2, etc. pixel versions from the DZI pyramid.

This seems odd to me, but would be more of a curiosity if it weren't creating a big impact on certain aspects of our product. When we try to scale a 25,000 x 330,000 pixel image down to 1x2 or something, even with the magic of JPEG2000, my on-the-fly tile cutter chokes.

My custom descriptor, which implements IMultiScaleImageBase, implements the getMinLevelForSize method.

getMinLevelForSize returns the right level for the viewport, but lower levels are also queried. This uses bandwidth in all situations (I noticed the same behavior in your NYTimes inline image replacement demo), but also chokes my build process. It would seem that getMinLevelForSize ought to be setting the floor for the MultiScaleImageLevel to return.

My temporary hack may be to disable the image cutter when both requested dimensions are < 10px and return a blank image... but it would be nicer to know if there's a way to stop the client code from requesting these seemingly unneeded levels.

Thanks again!

-christian
 
silly I’m unsure
Inappropriate?
1 person has this question

The company marked this question as answered.

See the changes made to this question
User_default_medium