xMidYMid (the default) - Force uniform scaling.
Align the midpoint X value of the element's ?viewBox? with the midpoint X value of the viewport.
Align the midpoint Y value of the element's ?viewBox? with the midpoint Y value of the viewport.
So if a viewbox attribute is added, with no other restriction it will look center aligned and scaled proportionally.
Some examples here:
tavmjong.free.fr/SVG/VIEWPORT/ (http://tavmjong.free.fr/SVG/VIEWPORT/viewport.html)
This part needs that viewbox attribute to be added for the thumbnails, not sure how yet:
<a href="displayimage.php?album=........&pid=........#top_display_media"><div><object data="albums/userpics/.........svg" type="image/svg+xml" width="128" height="128">Your browser doesn't support svg files</object></div><br /></a>
:hd3: Haha -- check it out: http://inkscapecommunity.com/ic_gallery/thumbnails.php?album=18 (http://inkscapecommunity.com/ic_gallery/thumbnails.php?album=18) Look at "viewbox attribute test" image
The thumbnail looks great, compared to the original ("starfire"): http://inkscapecommunity.com/ic_gallery/thumbnails.php?album=15 (http://inkscapecommunity.com/ic_gallery/thumbnails.php?album=15)
However, on the intermediate page, we have a huge version: http://inkscapecommunity.com/ic_gallery/displayimage.php?album=18&pid=129#top_display_media (http://inkscapecommunity.com/ic_gallery/displayimage.php?album=18&pid=129#top_display_media). It should be approx 168 x 168 px. My first guess is that I might need the viewport AND the viewbox attributes.
Comments?
This part needs that viewbox attribute to be added for the thumbnails, not sure how yet:
<a href="displayimage.php?album=........&pid=........#top_display_media"><div><object data="albums/userpics/.........svg" type="image/svg+xml" width="128" height="128">Your browser doesn't support svg files</object></div><br /></a>
Well that is HTML, isn't it? I know XML is similar to, or based on, or somehow related to HTML. But that looks like strictly html to me. (I have the feeling I'm about to have a big ah-ha, lol!)
Edit
Or maybe you're looking at the plugin's code?