Hi Friends,
This is kind of crazy, the thought that I could actually fix the gallery's SVG plugin. But I want to try and understand how it works, in the first place. Honestly, it's doubtful that I could fix it. But maybe understanding it will allow me to explain the problem concisely to someone who could fix it.
So this topic has 2 purposes. 1 is just to document my questions for myself, and answers, if I find any. The other purpose is to get answers to my questions, if anyone else knows the answers. So after I post my questions, I'll go and try to find the answers myself. If I can't, I'll post a reply and ask for help. Hopefully, by putting all our heads together, we can come up with a fix. (Although still a bit crazy idea, for me, lol.)
I have 2 images to study, in this album:
http://inkscapecommunity.com/ic_gallery/thumbnails.php?album=15. They are both titled "starfire". The first is a PNG and the 2nd is the SVG. So I've started by looking at the source code for that page.
This appears to be the code for the starfire.png thumbnail:
<td valign="top" class="thumbnails" width ="20%" align="center">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<a href="displayimage.php?album=15&pid=7#top_display_media"><img src="albums/userpics/10001/thumb_starfire.png" class="image" width="128" height="128" border="0" alt="starfire.png" title="Filename=starfire.png
Filesize=26KiB
Dimensions=148x148
Date added=Sep 18, 2013" /><br /></a>
<span class="thumb_title">starfire</span><span class="thumb_title">1 views</span>
</td>
</tr>
</table>
</td>
And this appears to be the code for the starfire.svg thumbnail:
<td valign="top" class="thumbnails" width ="20%" align="center">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<a href="displayimage.php?album=15&pid=16#top_display_media"><div><object data="albums/userpics/10001/starfire.svg" type="image/svg+xml" width="128" height="128">Your browser doesn't support svg files</object></div><br /></a>
<span class="thumb_title">starfire</span><span class="thumb_title">2 views</span>
</td>
</tr>
</table>
</td>
The first thing that jumps out at me, is why does the PNG have Filename, Filesize, Dimensions, and Date Added, inside the img src and a href tags, while the SVG doesn't?
And the SVG doesn't use img src at all. Instead, it uses object data tag.
So now I'll visit the W3Schools site to sort that out. (And that's where I plan to learn about php as well.)