Skip to main content

Questions tagged [svg]

Scalable Vector Graphics (SVG) is an XML-based two-dimensional vector graphics format that can also be used in HTML. Do not add this tag just because your project uses SVG. Instead, add the tag if your question is either about SVG or closely related, like how to achieve something with SVG.

svg
2 votes
2 answers
1k views

SVG to JPEG via PHP4

I am currently struggling with a side project I hope you can help me with. I am trying to convert SVG images to JPEG with PHP4. Originally I tried to interface java with php via the php_java.dll and ...
graham.reeds's user avatar
  • 16.4k
3 votes
3 answers
2k views

Using JavaScript to model 3D polyhedra

Is there a JavaScript library that models 3D polyhedra using the canvas tag or SVG? Say I wanted to produce renderings of the Platonic solids, how would I best achieve this? FWIW, I'm only concerned ...
Andrew Hedges's user avatar
6 votes
1 answer
6k views

Calculating SVG paths

I have a quite complex image map (made up of over 150 pieces) and I want to convert the coords within the map to SVG path standard format. The reason why is I want to use the following instead of an ...
vdh_ant's user avatar
  • 13k
2 votes
1 answer
851 views

Hyperlink over embedded SVG

I have a page with an object tag that contains a SVG. Is there an easy method to make it clickable (in order to show a larger version in a popup when clicked)?
rslite's user avatar
  • 83.7k
5 votes
3 answers
3k views

Can I use mixed units with 'path' element?

SVG has a rectangle element which dimensions could be specified in percent of dimensions of its owner and radius in pixels. So by doing the following <div style="position: relative;"> ...
Евгений's user avatar
1 vote
1 answer
3k views

web link in svg

I need to have a linked text inside a svg graph. Here is what I did <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="138pt" height="188pt" viewBox="0.00 0.00 138.00 188.00" ...
Stefano Borini's user avatar
4 votes
1 answer
1k views

Rotating 3D cube perspective problem

Since I was 13 and playing around with AMOS 3D I've been wanting to learn how to code 3D graphics. Now, 10 years later, I finally think I have have accumulated enough maths to give it a go. I have ...
Andreas Jansson's user avatar
12 votes
4 answers
14k views

Simplest way to clear a container using raphaeljs javascript graphical library

I have to clear and redraw a raphael javascript main container. I've tried with var paper = Raphael(10, 50, 320, 200); paper.remove(); // Doesn't work paper.node.removeNode(); //this neither ...
Emilio's user avatar
  • 3,961
12 votes
7 answers
18k views

Inline SVG in HTML, with Firefox 3.5

I'm trying to create some mixed HTML/SVG content and having some trouble. The HTML content shows up as expected, but the inline SVG does not. So, I do some experiments. I find sites which have ...
user avatar
34 votes
5 answers
47k views

SVG draggable using JQuery and Jquery-svg

I have an HTML 5 page where I load an svg circle. When I click on the circle I create another small circle where I click. I want to be able to drag the second circle but cant seem to do it with jquery-...
skyfoot's user avatar
  • 20.7k
3 votes
1 answer
898 views

SVG Linear Gradient Scale and Translation Question

I have the following radial gradient: <radialGradient inkscape:collect="always" xlink:href="#linearGradient2454" id="radialGradient2460" cx="4022.8572" cy="5451.2656" fx="4022....
jsight's user avatar
  • 28.2k
5 votes
2 answers
3k views

Gradient servers as external files in SVG [duplicate]

Possible Duplicate: Include SVG file in SVG the fill property in SVG accepts an url to point to a gradient/pattern element, an instance of a so-called 'paint server'. The Question: Is it ...
Boldewyn's user avatar
  • 82.3k
3 votes
4 answers
4k views

How to show a subsection or "slice" of an SVG graphic?

Is there any way to slice an SVG . I mean any already available lib . I need to implement this slicing component in Java. I mean , I have single SVG file and based rulers/scales i choose graphically ,...
Jijoy's user avatar
  • 12.6k
2 votes
4 answers
7k views

Is there a script available to resize SVG?

Is there a way to script the rescaling of a .SVG from its current size (thousands of pixels) to a much smaller size? I've tried ImageMagick, but its support for SVG gradients is far too weak to be ...
jsight's user avatar
  • 28.2k
2 votes
4 answers
2k views

What types of SVG gradient fills are supported when using the Embed meta tag in ActionScript3

I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example: [Embed(source = "assets/image.svg")] private var Image : Class; However when displaying these ...
gmj's user avatar
  • 191

15 30 50 per page