Hi, I was just wondering, while we're waiting for Mozilla and Firefox to implement full svg support, is there any plugin available for Linux to see svg drawings inside a web page? Of course I know of the Adobe svg plugin, but it seems to be available only for RedHat 7.1 (quite far away in time by now).
Would it be very difficult to adapt the inkview code to act as a plugin and not as an external viewer?
Just asking, not actually proposing an "inkscape svg plugin" ;-)
Thanks for your time.
On Fri, Aug 27, 2004 at 09:45:12AM +0200, Lucas Vieites wrote:
Hi, I was just wondering, while we're waiting for Mozilla and Firefox to implement full svg support, is there any plugin available for Linux to see svg drawings inside a web page?
konqueror/ksvg is claimed to work. I haven't tried using ksvg from inside konqueror; let us know how you go.
Would it be very difficult to adapt the inkview code to act as a plugin and not as an external viewer?
mozplugger with mozilla may do the job:
Description: Plugin allowing external viewers to be launched inside Mozilla mozplugger allows you to seamlessly integrate external applications to view files downloaded from the web that Mozilla can not normally handle. The application is embedded within a Mozilla window as to act like and feel like a true plugin. . This allows to you view PDFs, Postscript files, animations and movies, amongst other file types all from within Mozilla (with supporting applications).
Again, I haven't tried this.
pjrm.
On Fri, 27 Aug 2004, Peter Moulder wrote:
On Fri, Aug 27, 2004 at 09:45:12AM +0200, Lucas Vieites wrote:
Hi, I was just wondering, while we're waiting for Mozilla and Firefox to implement full svg support, is there any plugin available for Linux to see svg drawings inside a web page?
konqueror/ksvg is claimed to work. I haven't tried using ksvg from inside konqueror; let us know how you go.
Yeah, I use konqueror for looking at svg's. It works fairly well, although for large SVG's it doesn't provide scrollbars, which is a bit annoying. It's also a tad buggy and crashes Konqueror, although this may have been fixed in the newer version.
I haven't tested its ability to render SVG embedded in an HTML page; my gut guess is that it won't work, but who knows. For my purposes being able to browse individual svg's is enough.
Would it be very difficult to adapt the inkview code to act as a plugin and not as an external viewer?
mozplugger with mozilla may do the job:
Description: Plugin allowing external viewers to be launched inside Mozilla mozplugger allows you to seamlessly integrate external applications to view files downloaded from the web that Mozilla can not normally handle. The application is embedded within a Mozilla window as to act like and feel like a true plugin. . This allows to you view PDFs, Postscript files, animations and movies, amongst other file types all from within Mozilla (with supporting applications).
Again, I haven't tried this.
Sounds like it'd be worth an experiment.
There was also a server-side Apache mod_rsvg that I ran across a year or two ago; the guy that created it never provided it as a product but he gave me the code (GPL) if anyone's interested. It lets Apache present PNG's of SVG's on the fly - i.e., if you have a set of svg's stored on a web server, this would allow browsing them (and scaling, by passing x/y parameters, e.g. myfile.svg?x=2.00&y=2.00.
There is also a program svg2png based on the Cairo codebase that could be considered. It's a standard svg-in, png-out tool. I've experimented with it a little, and so far so good, but I haven't tried complicated svg's on it yet.
Bryce
[bcc'ed the librsvg list to inform them of the broken link on their website, see below]
On Fri, 27 Aug 2004, Bryce Harrington wrote:
On Fri, 27 Aug 2004, Peter Moulder wrote:
On Fri, Aug 27, 2004 at 09:45:12AM +0200, Lucas Vieites wrote:
I haven't tested its ability to render SVG embedded in an HTML page; my gut guess is that it won't work, but who knows. For my purposes being able to browse individual svg's is enough.
Would it be very difficult to adapt the inkview code to act as a plugin and not as an external viewer?
mozplugger with mozilla may do the job:
Again, I haven't tried this.
Sounds like it'd be worth an experiment.
There was also a server-side Apache mod_rsvg that I ran across a year or two ago; the guy that created it never provided it as a product but he gave me the code (GPL) if anyone's interested. It lets Apache present PNG's of SVG's on the fly - i.e., if you have a set of svg's stored on a web server, this would allow browsing them (and scaling, by passing x/y parameters, e.g. myfile.svg?x=2.00&y=2.00.
The librsvg Web site has a link http://librsvg.sourceforge.net/links/ pointing to a freshmeat project page for mod_rsvg but the page seems to no longer be there http://freshmeat.net/projects/modrsvg/?topic_id=105 (this doesn't work either) http://freshmeat.net/projects/modrsvg/
Anyone any idea if mod_rsvg has been incorporated by another project? (I have a theory that it has become part of librsvg)
There is also a program svg2png based on the Cairo codebase that could be considered. It's a standard svg-in, png-out tool. I've experimented with it a little, and so far so good, but I haven't tried complicated svg's on it yet.
Sincerely
Alan Horkan http://advogato.org/person/AlanHorkan/ http://advogato.org/proj/OpenClipArt.org/
On Fri, 2004-08-27 at 00:45, Lucas Vieites wrote:
Hi, I was just wondering, while we're waiting for Mozilla and Firefox to implement full svg support, is there any plugin available for Linux to see svg drawings inside a web page? Of course I know of the Adobe svg plugin, but it seems to be available only for RedHat 7.1 (quite far away in time by now).
Would it be very difficult to adapt the inkview code to act as a plugin and not as an external viewer?
Just asking, not actually proposing an "inkscape svg plugin" ;-)
It would take some work, but I think that this could be done using the Mozilla-Bonobo package if we got our Bonobo support working again.
http://www.nongnu.org/moz-bonobo/
--Ted
El vie, 27-08-2004 a las 09:45, Lucas Vieites escribió:
Hi, I was just wondering, while we're waiting for Mozilla and Firefox to implement full svg support, is there any plugin available for Linux to see svg drawings inside a web page? Of course I know of the Adobe svg plugin, but it seems to be available only for RedHat 7.1 (quite far away in time by now).
I finally got Adobe's svg plugin working with Mozilla Firefox 0.9.3 (not that is was difficult, but I have a quite messed up firefox installation). Works fine, has some trouble rendering fonts, but that's a minor issue. Also has some trouble with sizes, for example: I have a 400x400 pts image created in Inkscape, but when I show it through the plugin with: <embed src="test.svg" width="400" height="400" align="center"> the image I see is about 325x325. Any obvious reason for that behaviour? It's not important for me, I just scale down the image a bit, but anyway...
Also, the plugin doesn't support transparency.
Thank you all for the alternatives. This SVG thing is going down success lane at quite a swift pace, at least for me ;-)
participants (5)
-
Alan Horkan
-
Bryce Harrington
-
Lucas Vieites
-
Peter Moulder
-
Ted Gould