Skip to content

Instantly share code, notes, and snippets.

@argv-minus-one
Created September 15, 2014 09:25
Show Gist options
  • Save argv-minus-one/78778110f41a7d6e6788 to your computer and use it in GitHub Desktop.
Save argv-minus-one/78778110f41a7d6e6788 to your computer and use it in GitHub Desktop.
moveGroupAttrsToElems breaks this SVG
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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"
id="svg2"
version="1.1"
inkscape:version="0.91pre2 r13516"
viewBox="0 0 200 200"
sodipodi:docname="input.svg"
height="100%"
width="100%">
<metadata
id="metadata6621">
<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>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="640"
inkscape:window-height="480"
id="namedview6619"
showgrid="false"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-page="true"
inkscape:zoom="1"
inkscape:cx="99.353479"
inkscape:cy="77.097061"
inkscape:current-layer="svg2" />
<defs
id="defs6532">
<path
id="path5231"
style="fill:none;stroke:currentColor;stroke-width:1.32869995;stroke-dasharray:1.3286678, 15.94401363"
sodipodi:revolution="6.4000001"
sodipodi:type="spiral"
d="m 197.14285,393.79074 c 0.48684,0.75543 -0.77812,1.02895 -1.25558,0.80915 -1.29388,-0.59563 -1.13596,-2.38375 -0.36272,-3.32031 1.38315,-1.67529 3.96364,-1.34864 5.38504,0.0837 2.08597,2.10202 1.57271,5.5668 -0.53013,7.44977 -2.80276,2.50971 -7.17847,1.80194 -9.51451,-0.97656 -2.93967,-3.49647 -2.0339,-8.79424 1.42299,-11.57924 4.18677,-3.37301 10.41235,-2.26746 13.64398,1.86942 3.80836,4.87518 2.50202,12.0319 -2.31586,15.70871 -5.56242,4.24501 -13.65242,2.73724 -17.77343,-2.76229 -4.68255,-6.24891 -2.97295,-15.27363 3.20871,-19.83816 6.93488,-5.12072 16.89534,-3.20898 21.9029,3.65513 5.55934,7.62047 3.44526,18.51742 -4.10157,23.96764 -8.30578,5.99832 -20.13978,3.68174 -26.03236,-4.548 -6.43757,-8.99087 -3.91838,-21.76237 4.99442,-28.0971 9.6758,-6.87702 23.38514,-4.15513 30.16183,5.44086 7.31666,10.36059 4.39198,25.00805 -5.88728,32.22656 -11.04529,7.75643 -26.6311,4.62891 -34.2913,-6.33371 -8.19632,-11.72989 -4.86591,-28.25424 6.78015,-36.35603 12.41441,-8.63631 29.87746,-5.10297 38.42075,7.22657 9.07638,13.09888 5.34008,31.50077 -7.673,40.48549 -13.78329,9.51651 -33.12413,5.57722 -42.55022,-8.11943 -9.9567,-14.46766 -5.8144,-34.74754 8.56586,-44.61495 15.15199,-10.39695 36.37101,-6.05161 46.67969,9.01229 10.83724,15.83628 6.28884,37.99451 -9.45872,48.74441 -16.52056,11.27758 -39.61806,6.52611 -50.80915,-9.90514 -6.75811,-9.92255 -8.31896,-22.77331 -4.26178,-34.05738"
transform="matrix(0.60557999,0.67980999,-0.47621,0.81238999,130.44001,-319.45)"
sodipodi:argument="-17.851219"
sodipodi:cy="393.79074"
sodipodi:cx="197.14285"
sodipodi:t0="0"
sodipodi:radius="38.239311"
sodipodi:expansion="1" />
<linearGradient
inkscape:collect="always"
id="linearGradient5271">
<stop
offset="0"
style="stop-color:#333333"
id="stop5273" />
<stop
offset="1"
style="stop-color:#000000;stop-opacity:0"
id="stop5275" />
</linearGradient>
<radialGradient
inkscape:collect="always"
r="135.32001"
gradientTransform="matrix(-0.058063,1.4252,-1.2962,-0.052808,497.41,-297.691)"
cx="220.77"
cy="278.37"
gradientUnits="userSpaceOnUse"
id="radialGradient3680">
<stop
offset="0"
style="stop-color:#e6e6e6"
id="stop3750" />
<stop
offset="1"
style="stop-color:#808080"
id="stop3752" />
</radialGradient>
<radialGradient
inkscape:collect="always"
r="13.812"
gradientTransform="matrix(0.99484,3.7233,-12.214,3.2635,4834.69,-2299.55)"
cx="263.57001"
cy="405.45001"
gradientUnits="userSpaceOnUse"
id="radialGradient3746">
<stop
offset="0"
style="stop-color:#ffffff"
id="stop3742" />
<stop
offset="1"
style="stop-color:#999999"
id="stop3744" />
</radialGradient>
<radialGradient
inkscape:collect="always"
r="11.929"
gradientTransform="matrix(1.0932,-0.077157,0.22879,3.2415,-66.683,-1218.6)"
cx="93.392998"
cy="551.71997"
gradientUnits="userSpaceOnUse"
xlink:href="#linearGradient5271"
id="radialGradient4442" />
<radialGradient
inkscape:collect="always"
r="11.929"
gradientTransform="matrix(1.0941,-0.064164,0.19026,3.244,56.419,-1199.6)"
cx="93.392998"
cy="551.71997"
gradientUnits="userSpaceOnUse"
xlink:href="#linearGradient5271"
id="radialGradient4446" />
<filter
style="color-interpolation-filters:sRGB"
inkscape:collect="always"
x="-0.02885"
y="-0.14624"
width="1.0577"
height="1.2925"
id="filter4478">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="1.7850086"
id="feGaussianBlur4480" />
</filter>
<radialGradient
inkscape:collect="always"
gradientTransform="matrix(1.0941,-0.064164,0.19026,3.244,174,-1202.8)"
r="11.929"
cy="551.71997"
cx="93.392998"
gradientUnits="userSpaceOnUse"
id="radialGradient5186">
<stop
offset="0"
style="stop-color:#333333"
id="stop4438-1" />
<stop
offset="1"
style="stop-color:#000000"
id="stop4440-2" />
</radialGradient>
<filter
style="color-interpolation-filters:sRGB"
inkscape:collect="always"
x="-0.051206999"
y="-0.39142001"
width="1.1023999"
height="1.7828"
id="filter5261">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="6.0132666"
id="feGaussianBlur5263" />
</filter>
<filter
style="color-interpolation-filters:sRGB"
inkscape:collect="always"
x="-0.10985"
y="-0.10621"
width="1.2197"
height="1.2124"
id="filter5309">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.79147749"
id="feGaussianBlur5311" />
</filter>
<radialGradient
inkscape:collect="always"
r="58.702999"
gradientTransform="matrix(-0.0054747,-1.4455,1.1794,-0.0044677,-199.754,628.07001)"
cx="329.76001"
cy="340.73001"
gradientUnits="userSpaceOnUse"
id="radialGradient4491">
<stop
offset="0"
style="stop-color:#ffffff"
id="stop4487" />
<stop
offset="1"
style="stop-color:#ffffff;stop-opacity:0"
id="stop4489" />
</radialGradient>
<filter
inkscape:collect="always"
x="-0.17778"
y="-0.15843"
width="1.3556"
height="1.3169"
id="filter3664"
style="color-interpolation-filters:sRGB">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="1.7328167"
id="feGaussianBlur3666" />
</filter>
<linearGradient
gradientTransform="translate(-118.91,-240.95)"
inkscape:collect="always"
x1="317.14001"
y1="410.92999"
x2="314.29001"
gradientUnits="userSpaceOnUse"
y2="584.65997"
id="linearGradient5213">
<stop
offset="0"
style="stop-color:#ffffff"
id="stop5209" />
<stop
offset="1"
style="stop-color:#808080"
id="stop5211" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5271"
id="linearGradient6911"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(117.26,-3.4949)"
x1="268.20001"
y1="595.27002"
x2="270.32001"
y2="603.83002" />
</defs>
<g
id="g6857"
transform="matrix(0.53074105,0,0,0.53074105,35.105272,0.00316027)">
<g
style="display:inline"
inkscape:label="Shadow"
id="layer1">
<path
id="path5251"
style="fill:#4d4d4d;filter:url(#filter5261)"
d="m 14.43,331.08 140.41,31.315 141.42,-7.5762 -25.254,-12.627 -160.61,-16.668 -95.964,5.5558 z"
inkscape:connector-curvature="0"
transform="translate(7.613198e-6,0)" />
</g>
<g
style="display:inline"
inkscape:label="Feet"
id="layer2">
<g
transform="translate(-118.90999,-240.95)"
id="g4902">
<use
height="100%"
width="100%"
transform="translate(-219.26,-18.5)"
id="use4892"
xlink:href="#path5317"
y="0"
x="0" />
<path
d="m 159.71,558.86 c 1.8519,1.9692 2.673,10.607 2.3186,13.212 l 0.68022,0.39722 c 2.6412,1.3489 6.9063,0.31732 8.6484,0.16744 l 0.67059,-0.41326 c 0.0895,-6.2316 1.5787,-11.341 4.9309,-17.081 l -17.249,3.7176 z"
style="fill:url(#radialGradient4442);stroke:black;stroke-width:0.75651002px"
id="path4434"
inkscape:connector-curvature="0" />
</g>
<g
transform="translate(-118.90999,-240.95)"
id="g4898">
<use
height="100%"
width="100%"
transform="translate(-117.26,3.5)"
id="use4890"
xlink:href="#path5317"
y="0"
x="0" />
<path
d="m 261.68,580.4 c 1.8284,1.991 2.5468,10.638 2.1614,13.239 l 0.67545,0.40527 c 2.625,1.3802 6.902,0.39934 8.6458,0.27017 l 0.67545,-0.40527 c 0.16352,-6.23 1.7133,-11.321 5.1335,-17.021 l -17.292,3.5124 z"
style="fill:url(#radialGradient4446);stroke:black;stroke-width:0.75651002px"
id="path4444"
inkscape:connector-curvature="0" />
</g>
<g
transform="translate(-118.90999,-240.95)"
id="g4894">
<path
d="m 379.25,577.21 c 1.8284,1.991 2.5468,10.638 2.1614,13.239 l 0.67545,0.40527 c 2.625,1.3802 6.902,0.39934 8.6458,0.27017 l 0.67545,-0.40527 c 0.16352,-6.23 1.7133,-11.321 5.1335,-17.021 l -17.292,3.5124 z"
style="fill:url(#radialGradient5186);stroke:black;stroke-width:0.75651002px"
id="path4448"
inkscape:connector-curvature="0" />
<path
d="m 378.94,605.76 c 1.8284,-1.991 2.5468,-10.638 2.1614,-13.239 l 0.67545,-0.40527 c 2.625,-1.3802 6.902,-0.39934 8.6458,-0.27017 l 0.67545,0.40527 c 0.16352,6.23 1.7133,11.321 5.1335,17.021 l -17.292,-3.5124 z"
style="fill:url(#linearGradient6911);filter:url(#filter5309)"
id="path5317"
inkscape:connector-curvature="0" />
</g>
</g>
<g
inkscape:label="Body"
id="layer3">
<path
id="path3672"
sodipodi:nodetypes="ccccccccccc"
style="fill:url(#radialGradient3680);stroke:gray;stroke-width:1px"
d="m 170.38,352.84 -11.385,-4.1466 -138.62,-27.996 2.1429,-287.14 149.73,-30.804 108.8,9.1964 c 7.1327,2.5893 7.1566,5.3571 8.9643,7.9464 l -3.91,313.66 c -0.57656,2.3662 -1.8517,4.44 -3.2336,6.5377 -2.5722,2.6442 -4.9197,3.9754 -8.4406,4.248 l -104.04,8.5 z"
inkscape:connector-curvature="0"
transform="translate(7.613198e-6,0)" />
<path
id="path4452"
style="fill:white;filter:url(#filter4478)"
d="M 157.87,17.41 21.5,33.572 169.99,4.278 160.8986,9.3288 157.8681,17.41 Z"
inkscape:connector-curvature="0"
transform="translate(7.613198e-6,0)" />
<g
inkscape:label="Side"
id="layer6"
inkscape:groupmode="layer">
<g
id="g6149"
transform="translate(1.5226396e-5,0)">
<use
width="100%"
x="0"
y="0"
xlink:href="#path5231"
id="use6142"
style="color:black;opacity:0.55171982"
height="100%" />
<use
transform="translate(0,0.357)"
height="100%"
width="100%"
style="color:#b3b3b3;opacity:0.55171982"
id="use6153"
xlink:href="#path5231"
y="0"
x="0" />
</g>
<path
id="path3718"
sodipodi:nodetypes="ccccccccccc"
style="fill:url(#radialGradient3746)"
d="m 168.18,3.58 -18.844,3.875 c -2.736,2.2942 -4.75,5.536 -4.75,8.5 l 0,322.69 c 0,2.8959 2.6751,6.0908 6,8.375 l 8.4062,1.6875 11.375,4.125 1.8438,-0.15625 c -5.42,-0.2 -11.62,-6.38 -11.62,-11.65 l 0,-326.94 c 0,-3.9688 3.5404,-8.4345 7.5938,-10.5 z"
inkscape:connector-curvature="0"
transform="translate(2.2839594e-5,0)" />
<g
transform="translate(-118.90997,-240.95)"
id="g4951">
<g
id="g4906">
<path
id="path5249"
sodipodi:nodetypes="cc"
style="fill:#ccc;stroke:#ccc;stroke-width:2;stroke-dasharray:2, 4"
d="M 255.71,556.3 141.86,533.51"
inkscape:connector-curvature="0" />
<path
id="path5229"
sodipodi:nodetypes="cc"
style="fill:none;stroke:#4d4d4d;stroke-width:2;stroke-dasharray:2, 4"
d="M 255.71,555.54 141.86,532.75"
inkscape:connector-curvature="0" />
</g>
<use
height="100%"
width="100%"
transform="translate(0.05,4)"
id="use4914"
xlink:href="#g4906"
y="0"
x="0" />
<use
height="100%"
width="100%"
transform="translate(0.1,8)"
id="use4920"
xlink:href="#g4906"
y="0"
x="0" />
<use
height="100%"
width="100%"
transform="translate(0.14,12)"
id="use4928"
xlink:href="#g4906"
y="0"
x="0" />
<use
height="100%"
width="100%"
transform="translate(0.19,16)"
id="use4934"
xlink:href="#g4906"
y="0"
x="0" />
<use
height="100%"
width="100%"
transform="translate(0.24,20)"
id="use4940"
xlink:href="#g4906"
y="0"
x="0" />
</g>
</g>
<g
inkscape:label="Front"
id="layer5"
inkscape:groupmode="layer">
<path
id="rect2830"
sodipodi:nodetypes="ccccccccc"
style="opacity:0.54082001;fill:white"
d="m 175.8,11.409996 98.857,8 c 5.1443,0 9.2857,4.1414 9.2857,9.2857 l -4,297.710004 c 0,5.1443 -4.1414,9.2857 -9.2857,9.2857 l -94.857,8 c -5.1443,0 -9.2857,-4.1414 -9.2857,-9.2857 l 0,-313.710004 c 0,-5.1443 4.1414,-9.2857 9.2857,-9.2857 z"
inkscape:connector-curvature="0" />
<path
id="path2835"
sodipodi:nodetypes="ccccccccc"
style="opacity:0.54082001;fill:white"
d="m 172.51,2.4099964 106.17,8.9977996 c 5.4877,0 11.602,5.6552 11.602,11.016 L 285.6043,332.6838 c 0,5.361 -4.4179,11.677 -9.9055,11.677 l -103.19,8.337 c -5.4876,0 -11.906,-6.3159 -11.906,-11.677 l 0,-326.930004 c 0,-5.3609995 6.4179,-11.6769996 11.906,-11.6769996 z"
inkscape:connector-curvature="0" />
<path
id="path2833"
sodipodi:nodetypes="ccccccccc"
style="fill:black;stroke:white;stroke-width:1.5"
d="m 173.11,6.4099964 104.24,8.2407996 c 5.4243,0 9.7911,4.2661 9.7911,9.5652 L 282.9234,330.886 c 0,5.2991 -4.3668,9.5652 -9.7911,9.5652 l -100.02,8.2408 c -5.4242,0 -9.7911,-4.2661 -9.7911,-9.5652 l 0,-323.160004 c 0,-5.2991 4.3668,-9.5651996 9.7911,-9.5651996 z"
inkscape:connector-curvature="0" />
<path
id="path2873"
sodipodi:nodetypes="ccccccccccc"
style="opacity:0.69795999;fill:url(#linearGradient5213)"
d="m 256.15,169.99 -55.5,0.34375 -6.0625,6.0938 -28.062,-0.3125 0,158.31 c 0,5.1443 4.137,9.2812 9.2812,9.2812 l 94.844,-8 c 5.1443,0 9.2812,-4.137 9.2812,-9.2812 l 2.0312,-150.94 -20.812,1.2812 -5,-6.7812 z"
inkscape:connector-curvature="0" />
<path
id="path2837"
style="fill:#999"
d="m 175.81,11.429996 c -5.1443,0 -9.2812,4.137 -9.2812,9.2812 l 0,58.438001 116.69,3.4062 0.71875,-53.844001 c 0,-5.1443 -4.137,-9.2812 -9.2812,-9.2812 l -98.844,-8 z"
inkscape:connector-curvature="0" />
<path
id="path2868"
style="fill:gray"
d="m 166.53,79.139997 0,96.969003 28.062,0.3125 6.0625,-6.0938 55.5,-0.34375 5,6.7812 20.812,-1.2812 1.25,-94.000003 -116.69,-2.3438 z"
inkscape:connector-curvature="0" />
<g
id="g5866"
transform="translate(-8.4392712e-6,-3.6386891e-6)">
<ellipse
transform="translate(7.613198e-6,0)"
ry="13.125"
rx="11.696428"
cy="209.71574"
cx="226.715"
style="fill:aqua;stroke:aqua;filter:url(#filter3664)"
id="path2878" />
<ellipse
transform="translate(7.613198e-6,0)"
ry="13.125"
rx="11.696428"
cy="209.71574"
cx="226.715"
style="fill:black;stroke:aqua"
id="path2876" />
<ellipse
transform="translate(7.613198e-6,0)"
ry="4.4552813"
rx="3.9703526"
cy="209.71849"
cx="224.7124"
style="fill:black;stroke:aqua;stroke-width:2.00000548"
id="path3668" />
<rect
transform="translate(7.613198e-6,0)"
x="222.84"
y="202.28999"
width="3.8131001"
height="8.6689997"
ry="1.875"
style="fill:aqua;stroke:black;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
id="rect3670" />
</g>
<path
id="path5132"
sodipodi:nodetypes="ccccccccccccccc"
style="opacity:0.54082001;fill:black"
d="m 252.87,166.04 -56.217,0.59629 -6.0625,6.0938 -24.062,-0.3125 0,2 28.062,0.3125 6.0625,-6.0938 55.5,-0.34375 5,6.7812 20.781,-1.2812 0.0312,-2 -22.09771,1.20307 -4.57789,-6.45057 -2.4194,-0.50508 z"
inkscape:connector-curvature="0" />
<path
id="path3690"
sodipodi:nodetypes="cccccccccccccc"
style="opacity:0.54082001;fill:#999"
d="m 252.87,167.73 -56.217,0.59629 -6.0625,6.0938 -24.062,-0.3125 0,2 28.062,0.3125 6.0625,-6.0938 55.5,-0.34375 5,6.7812 20.781,-1.2812 0.0312,-2 -22.812,1.2812 -3.8636,-6.5287 -2.4194,-0.50508 z"
inkscape:connector-curvature="0" />
<path
id="path3708"
style="opacity:0.57639998;fill:black"
d="m 166.53,79.139997 0,2 116.66,3.4062 0.0312,-3.0625 -116.69,-2.3438 z"
inkscape:connector-curvature="0" />
<path
id="path3716"
sodipodi:nodetypes="ccccc"
style="fill:#999"
d="m 166.53,79.139997 116.66,3.4062 0.0312,-1.0625 -116.62,-3.7124 -0.0631,1.3686 z"
inkscape:connector-curvature="0" />
<path
id="path3735"
style="opacity:0.52490001;fill:url(#radialGradient4491)"
d="m 175.81,11.429996 c -5.1443,0 -9.2812,4.137 -9.2812,9.2812 l 0,58.438001 0,70.750003 c 43.645,-16.117 66.349,2.1896 116.53,-56.094003 l 0.15625,-11.25 0,-1.0625 0.71875,-52.781001 c 0,-5.1443 -4.137,-9.2812 -9.2812,-9.2812 l -98.844,-8 z"
inkscape:connector-curvature="0" />
</g>
</g>
</g>
</svg>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment