Create Pivot collections much faster than DeepZoomTools CollectionCreator class

Posted by John Conwell on Geeks with Blogs See other posts from Geeks with Blogs or by John Conwell
Published on Fri, 23 Apr 2010 07:20:55 GMT Indexed on 2010/04/23 16:33 UTC
Read the original article Hit count: 302

Filed under:

I've been playing with Microsoft Live Labs Pivot to create a hierarchy of collections all linked together to allow someone to explore a hierarchy of data visually. The problem has been the generation time of the entire hierarchy. I end up creating 500 - 600 collections total and it takes hours and hours using the CollectionCreator class that comes with the DeepZoomTools. 

So digging around I found a way to make the actual DeepZoom collection creation wicked fast. Dont use the CollectionCreator! 

Turns out Pivot doesnt actually use the image pyramid generated by the CollectionCreator. Or if it does, its only when you open a new collection it shows all the images zooming in. But once the zoom in is complete, Pivot uses the individual DeepZoom images. What Pivot does need is the xml generated by the CollectionCreator, which is in a very simple format. 

So what i did was manually generate the xml for the collection image pyramid, and then create the folder structure required (one folder per level of the pyramid), and put a single pixel png file in each folder. 

Now, I can create the required files and folders for 500 collections in about 10 seconds. Sweet!

Now you still have to use the ImageCreator to create a DeepZoom image for each image in the collection and that still takes some time, but at least the total processing time is way better.

© Geeks with Blogs or respective owner