- loloof64 Mar 26, 2016 at 17:13 @user104317 I want to do this in Javascript because the use case is in a angular directive creation. The control point is an invisible coordinate towards which the line is bending, but not touching it. If I move a property outside that wrapper and set() it, we get an inline style. . Example You can try to run the following code to learn how to display an image inside SVG circle in HTML5 Live Demo And I nearly achieved. Unflagging tqbit will restore default visibility to their posts. That is a wonderful tutorial Peter. Thank you. I encourage you to check out any of the demos and adjust some of the variables to see how flexible they can be. How to add an image to a svg element in javascript? Inside the SVG itself External to the SVG (within the HTML document or as a separate file altogether). About Us; Donation Policy; What We Do; Refund Donation. The width and height property define how much space the image takes up in the browser. But then we would need to know each coordinate. Then drop that into the inner loop. Built on Forem the open source software that powers DEV and other inclusive communities. See how one has a fill attribute while the other has an inline style? <body> // Paste the SVG code here. For an external SVG, you can use the same code when adding the