Skip to content

Instantly share code, notes, and snippets.

@benizi
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benizi/53636df4af811316d622 to your computer and use it in GitHub Desktop.
Save benizi/53636df4af811316d622 to your computer and use it in GitHub Desktop.
just-a-test svg=>png
- created SVG in Inkscape with text flowed along spiral
- ran `convert svg.svg just-a-test.png`
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819"
height="1052.3622047"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="New document 1">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="197.71429"
inkscape:cy="520"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1552"
inkscape:window-height="869"
inkscape:window-x="0"
inkscape:window-y="1106"
inkscape:window-maximized="0" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
sodipodi:type="spiral"
style="fill:none;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path2985"
sodipodi:cx="188.57143"
sodipodi:cy="335.21933"
sodipodi:expansion="1"
sodipodi:revolution="3"
sodipodi:radius="369.72134"
sodipodi:argument="-18.069622"
sodipodi:t0="0"
d="m 188.57143,335.21933 c 13.17923,13.03599 -11.07008,24.19684 -21.66667,21.90476 -28.7161,-6.21141 -33.52755,-42.92339 -22.14285,-65.2381 20.36455,-39.91578 73.78621,-44.87078 108.80952,-22.38094 51.39813,33.00475 56.5475,105.06673 22.61903,152.38096 C 230.96914,484.94843 139.69507,490.25215 80.238079,444.74312 5.4175201,387.47465 -0.02009722,276.7485 57.142876,205.21931 126.3749,118.58789 256.67649,113.02662 340.23811,181.88602 438.71259,263.03444 444.392,412.9834 363.80949,508.55269 270.7738,618.89121 101.13181,624.68556 -6.4285983,532.36215 -128.64557,427.45844 -134.5529,238.09256 -30.476157,118.55264 86.282223,-15.55309 295.39383,-21.572139 426.90479,94.266988 572.90688,222.87037 579.0368,451.74375 451.42853,595.21936"
transform="translate(134,148)" />
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
id="text2989"
sodipodi:linespacing="125%"><textPath
xlink:href="#path2985"
id="textPath3001"><tspan
id="tspan2997">Just a test</tspan></textPath></text>
</g>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment