SVG support

I am looking for a galery software supporting SVG images.

My wish is a gallery that accept SVG upload, and shows SVG files converted in PNG, with a link to the SVG original image.

As zenphoto is really great, it would be really nice to use it as a SVG gallery.

Comments

  • Joen Member
    I'd like to bump this post and second the feature request.

    Some illustrations are simple enough to be shown in SVG. Having to convert these to a rasterbased format to show them on the web is tedious. SVG can solve that, but is unfortunately only supported in modern browsers.

    Having an SVG2PNG converter built-in to ZenPhoto would solve both problems.

    Also imagine the plugins and hacks that could be built around this feature. ZenPhoto becomes _the_ image engine for your CMS of choice. Upload a jpg, png or svg to your filebucket and show it in resized, compatible formats.

    Woo!
  • Joen Member
    Perhaps this will be of interest to developers:

    http://nick.panharmonicon.com/rasterize/
  • acrylian Administrator, Developer
    Feel free to open a ticket for that feature or try to write a plugin yourself.

    If I see it right both solutions on that site require the installation of extensions on the server itself which not all hosters (or hosting packages) allow or even not all users are able to.
  • Joen Member
    I'm afraid I'm one of them lazy ones just mooching off of other peoples code. I haven't the skill to write a plugin myself. As for opening a ticket, you're right -- the solution presented uses rsvg and convert extensions -- i'll see if I can find some code using gdlib first before I open any tickets.
  • Joen Member
    A tiny update on this.

    Apparently GD Lib doesn't support SVG at all, so there's no chance it'll be able to convert SVG images to PNGs.

    Here's a list of converters that can.

    http://www.mediawiki.org/wiki/Manual:$wgSVGConverters

    Bottomline: if Zenphoto is to ever support SVG with PNG and JPEG fallbacks, it'll likely be via ImageMagick.
  • acrylian Administrator, Developer
    I found out that with gd and svg, too. Thanks for the research. ImageMagick support is already on our list to add somewhere in the future.
Sign In or Register to comment.