Ok, here's a little chart. I've added a 3rd category, in light of Lazur's comments. And after I get through with help topic in CPG support, I'll test using both plugins together, and if I get any helpful results, then I'll add a 4th category.
Comparing SVG plugin to Custom Thumbnail plugin to SVG plugin with viewBox attribute
original SVG plugin alone |
advantages | disadvantages |
none, that I can see | 1 - cropped display of thumbnail and intermediate 2 - poor navigation |
Custom Thumbnail plugin alone |
advantages | disadvantages |
1 - displays full size easily 2 - correct navigation 3 - correct thumbnail 4 - correct intermediate | 1 - extra step to upload PNG
|
SVG plugin with viewBox attribute |
advantages | disadvantages |
correct thumbnail | 1 - poor navigation 2 - no easy access to full size 3 - no intermediate size at all 4 - unless a plugin is written to automate it, it's an extra step to add viewBox attribute in text editor |
Ok, sorry I couldn't make those 3 options nicely spaced horizontally, but I just don't have the patience with this !!#*!$#%!! editor, today. But at least it's an organized overview of the situation.
Re Lazur's reply. I don't know what "IF cycle" is. But it sounds like a script could easily be written to add the viewBox automatically. The problem I see with that, is that we can't easily click through to view the full size. The only way to access the full size, with viewBox, is to know enough about the internet, to know how to retrieve the URL. And a lot of the users who may eventually start using the gallery, may not know how to do that.
And since the primary goal of a gallery is to display images, that seems like a long way around to view an image. And also, without that clickability, the number of views statistic won't work. As far as that statistic, no SVG images would ever have any views counted.
According to the person who tried to fix the plugin, even with what sounds like a relatively simple thing, to write a script to add the viewBox, that only provides the thumbnail. The intermediate image will requires the SVG be changed to PNG, which PHP can't do. They think ImageMagick can do that, which I do have on my server, but they still don't think the results would be very good. And even in such a frame as Lazur mentioned, the image still gets cropped to the frame - it just a slightly larger frame.
So that's why I think it will be easier for someone to code a whole new gallery software, designed to handle primarily SVG, and ideally, other vector formats, primarily (with raster being just secondary); than to try and wedge such capability into CPG. Although I have very little technical knowledge and would love to be proven wrong, lol.
But Lazur, if you can find a way to create the thumbnail with viewBox, intermediate in whatever way, AND make them clickable, that would fix the plugin, and then it would just have to be written in PHP. And I would LOVE it if that could happen!
Short of that happening, I think SVG support in the gallery will function best, by using the Custom Thumbnail plugin. I know it's an extra step for members, to upload the 2nd image. But within the current confines of Coppermine, I think it's the best we can do. Although it's still up for discussion, and I'd be glad to hear any and all thoughts, comments, opinions, etc.
And btw, if anyone knows of any gallery wares which can handle SVG, (and ideally play nice with SMF) I would love to know about it. I did test out an SMF gallery mod, that does handle SVG beautifully! (can't think of it's name at the moment) However, it only allows 1, 3 or 5 images to be displayed per page, vertically only, no thumbnails, no display of file info, no albums, no stats. Even confined to Coppermine, we are better off. But if there are others out there, please let me know!
Ok, so I hope I don't sound short tempered and final about all this. I have a lot going on today, and I'm trying to squeeze it all in. I'm still totally open to discussion, and especially if anyone has any new info to add to this discussion. What I want more than anything for this website, is to have a gallery that best promotes SVG and SVG students and artists. And whatever can be done towards this end, I'm in favor of, and will consider. If anyone has any info to contribute, please don't hesitate :D