I need to add a background image to my SVG circle. But, nothing I've tried thus far has worked.
Here's what I've tried so far...
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px">
<defs>
<pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="40px" width="40px">
<image x="0" y="0"height="40px" width="40px" xlink:href="url.png"></image>
</pattern>
</defs>
<g transform="translate(40,40)">
<circle cx="0" cy="0" r="20" class="circle base" fill="url(#image)"></circle>
<circle cx="0" cy="0" r="20" class="circle progress" fill="url(#image)"></circle>
</g>
</svg>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px">
<g transform="translate(40,40)">
<defs>
<pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="40px" width="40px">
<image x="0" y="0" height="40px" width="40px" xlink:href="url.png"></image>
</pattern>
</defs>
<circle cx="0" cy="0" r="20" class="circle base" fill="url(#image)"></circle>
<circle cx="0" cy="0" r="20" class="circle progress" fill="url(#image)"></circle>
</g>
</svg>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px">
<filter id="this_image" x="0%" y="0%" width="100%" height="100%">
<feImage xlink:href="url.png"/>
</filter>
<g transform="translate(40,40)">
<circle cx="0" cy="0" r="20" class="circle base" fill="url(#this_image)"></circle>
<circle cx="0" cy="0" r="20" class="circle progress" fill="url(#this_image)"></circle>
</g>
</svg>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px" height="60px">
<g transform="translate(40,40)">
<filter id="this_image" x="0%" y="0%" width="100%" height="100%">
<feImage xlink:href="url.png"/>
</filter>
<circle cx="0" cy="0" r="20" class="circle base" fill="url(#this_image)"></circle>
<circle cx="0" cy="0" r="20" class="circle progress" fill="url(#this_image)"></circle>
</g>
</svg>
Here's a jsfiddle mockup.
Would appreciate any suggestions. Clearly, I'm unsure whether the filter/defs-pattern should go inside the SVG or the transform