svg

Loading SVG into SVGWeb dynamically with JQuery

Hello, I am trying to dynamically display some SVG content. This content is stored as a string in my data source. An example string would look like the following: <svg width="200" height="200" style="background-color:#D2B48C; margin-bottom:5px;" id="embeddedSVG"> <g id="myGroup" fill="blue" style="font-size:18px; text-anchor:middle; fo...

dynamic svg favicon?

i have an icon in the SVG format. i want to have it in different colors as favicon. how to reach this? since there isn't any toDataUrl() for SVG elements i don't see any solution without a server round trip. i would even say that it isn't possible, but hopefully i'm wrong any idea for a client side solution? it doesn't need to be cross...

SVG embed bug in Safari forces me to look for another option.

Hi, I'm building an interactive website for a touchscreen, which runs the latest version of Google Chrome. The user has to tap on, in this case, a series of buildings to get more information about it. The idea is to absolute position hyperlinks and place them on top of the buildings, which are combined in a single background image. But ...

svg won't display in firefox

Is there something wrong with this code? The picture displays fine in Safari but Firefox doesn't display anything: <div id="container"><img src="picture1.svg"/></div> ...

Create SVG / XML document without ns0 namespace using Python ElementTree

I'm building an SVG document with ElementTree in Python 2.7. Here is the code: from xml.etree import ElementTree as etree root = etree.XML('<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"&gt;&lt;/svg&gt;') root.append(etree.Element("path")) root[0].set("d", "M1 1 L2 2 Z") print etree.tostring(root, enco...

inkscape shell mode

I tried to run inkscape shell mode by writing these lines in a .bat file: inkscape --shell >2.svg -e 2.png But it doesn't work at all (no png files), more over I tried to open the current svg input and I found it damaged and I failed to open it at all. Could any one please tell me the right command lines to enter the SHELL mode and ...

How to get and send Data from/to an SVG document and use in PHP?

Anyone can give a Simple Example of Code that how to use SVG Data in PHP and also How to Send SVG data using PHP to the SVG Document to manipulate them (lets Suppose a Form having Values of an SVG Element and sending those values to Svg Doc)...!! ...

svg2css inkscape extention

I tried to use svg2css inkscape extension in python, which converts an svg file to its equivalent css+html, but it resulted in no output with a warning message: Source file C:\WINDOWS\Temp\ink_ext_XXXXXX.svg9EFDKV not an SVG. My svg file is very simple, it just contains one text tag, I tried to generate the css+html from these svg ...

Support for SMIL animation in libwebkt on Ubuntu 10.04

I'm just starting to explore the use of libwebkit in GTK+ applications on Ubuntu 10.04. I was curious about whether SVG with SMIL animation would be supported, so I created a small test using python-webkit: import gtk import webkit view = webkit.WebView() sw = gtk.ScrolledWindow() sw.add(view) win = gtk.Window(gtk.WINDOW_TOPLEVE...

Unable to generate file from ASP.NET with inkscape

Hello, I have an ASP.NET application on my local machine that works. This application takes an SVG file and creates a PNG from it using inkscape. I have tried to migrate that application to my production server. Oddly, the png creation is not working. The really strange part is, an Exception is not being thrown either. I have taken the ...

use batik-rasterizer without GTK

hi, i'm using the Apache Batik SVG Rasterizer Library in python, but when i try to convert a svg into png i get this error Gtk-WARNING **: cannot open display: How can i do to don't use GTK to convert the SVG file Thanks and sorry for my english! ...

Looking for simple 3D Java lib

Problem: I have to plot a simple 3D graph/diagram with x,y,z coordinates given for some points. My goal is to export this 3D diagramm to svg -> I will have to make a projection as svg is not (yet) able to handle 3D. So my input is a 3D diagramm with x,y,z coordinates and the output is a 2D view reduced to x,y coordinates. Does anyone ...

How to properly display multiline text in SVG 1.1?

Hi, I would like to take a multiline block of text and display it in SVG. I would like to keep the lines as lines. Is there a proper way to do this? I am using Inkscape for my base drawing and Batik for my rendering. It seems the two do not agree on how to do this. Inkscape is creating a structure like this: <flowRoot xml:spac...

SVG in IE6/7/8, how to make the SVG element capture mouse event before the other HTML elements

I embed a SVG(with adobe svg viewer) in html and browse in IE, and I add mouse listener on the svg element, but I always catch the event after other HTML elements, how to make the SVG element capture mouse event at first in IE, so that I can decide whether to cancel the event <html> <head> <meta http-equiv="Content-Type" content...

Why SVG is not rendering the font path I defined...?

i am trying to Render the Character "ٹ" according to my Font Style but its not working its rendering the default font not mine is there anything i am missing here is the code: <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"&gt; <svg widt...

How do I cause a cross-platform (IE and Chrome at least) popup from inside an SVG?

I have code that generates SVG that was developed for IE and the Adobe SVG Viewer. The Adobe SVG Viewer has a custom function called browserEval (see http://www.xml.com/lpt/a/994) that is being used to cause the browser to eval a window.open() call. This doesn't work in Chrome's native SVG renderer (and I haven't tried Firefox). How c...

SVG to SWF on Linux?

Any application or method can export SVG or any vector format to SWF from Ubuntu Linux? ...

Generating SVG Dynamically From PHP to Genrate a Urdu/Arabic Alphabet

Ok After lots of Time this question is asked (even i asked too :P) i find out a simplest way to do it and here i will answer it hope that will help for my Friends this not only will help specifcally to Arabic/Urdu Alphabets but anyone can Genrate any language word with this Answer (Just by Replacing the Paths and Decimal NCRs of the Alph...

Use an SVG for a marker in Google Maps?

i know it's possible to add svg overlays to google maps. i'm wondering if you can use svg files as markers. i tried setting it just like you would a png or jpg file, but nothing shows up. let me know if i should post my code, but i think i am probably approaching it in the wrong way. thanks. ...

How to convert this SVG file to an HTML map?

I want to convert this svg map to an HTML map (area coords). I have tried to do it by hand, but the coordinates don't match. I want every zone to be selectable (not just the one highlighted). I can't find a way to do it... ...