Skip to content

Instantly share code, notes, and snippets.

@widged
Last active January 3, 2016 07:18
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 widged/8428059 to your computer and use it in GitHub Desktop.
Save widged/8428059 to your computer and use it in GitHub Desktop.
svg resizing
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SVG resizing</title>
</head>
<body>
<svg viewBox="0 0 1000 1000" style="width: 32px;height:32px" xmlns="http://www.w3.org/2000/svg">
<path d="m 117.49678,1.6479 c -14.35645,7.8524 -14.78576,10.4977 -14.78576,91.10661 l 0,77.21615 62.70852,63.00916 62.70852,63.00913 -8.22682,26.0425 c -10.93085,34.60229 -15.33006,60.17339 -16.23053,94.34261 l -0.74504,28.27088 -82.14316,0.0821 c -88.982675,0.0892 -95.090572,1.13177 -102.975897,17.57719 -5.159433,10.76036 -0.437357,26.46541 9.567322,31.81976 3.359376,1.79789 43.918753,3.16015 94.088305,3.16015 l 88.1835,0 4.38439,18.89293 c 2.41141,10.39111 8.12715,28.25212 12.70164,39.69114 l 8.31724,20.79826 -66.169,66.45637 -66.16899,66.45638 0,78.00249 0,78.0025 8.06496,8.06496 c 12.95118,12.95118 31.5414,10.46328 39.69959,-5.31294 3.74436,-7.24078 4.80707,-23.68624 4.80707,-74.38945 l 0,-65.09362 53.75743,-53.68337 53.75744,-53.68337 7.72345,11.00627 c 4.2479,6.05345 15.78494,19.52589 25.63788,29.93876 l 17.91444,18.93248 0.72629,33.63914 c 0.73887,34.22226 7.9032,64.96475 21.25915,91.22409 11.86929,23.33639 37.26546,52.99945 58.11122,67.87468 71.16591,50.78293 162.02719,41.93436 221.97879,-21.6175 37.15516,-39.38642 54.99298,-85.42697 54.99298,-141.94042 0,-30.10247 0.42675,-32.06866 8.04342,-37.0593 4.4239,-2.89864 16.59805,-15.85812 27.05365,-28.79885 l 19.01023,-23.52859 53.37397,55.5282 53.37396,55.5282 0.0726,66.68532 c 0.0723,66.37641 0.11007,66.72267 8.13766,74.75027 12.95115,12.95118 31.54136,10.46328 39.69959,-5.31294 6.05356,-11.70633 7.05278,-146.9072 1.1715,-158.51731 -1.99953,-3.94728 -31.89987,-35.61283 -66.44518,-70.3679 l -62.80969,-63.19103 6.11034,-15.66641 c 3.36067,-8.61652 9.09962,-26.38609 12.75322,-39.48793 l 6.64291,-23.82151 91.69385,0 c 52.41677,0 94.22314,-1.35366 97.59863,-3.16015 10.00468,-5.35435 14.72676,-21.0594 9.56732,-31.81976 -7.93461,-16.54827 -13.68804,-17.49084 -107.08305,-17.54328 l -86.25025,-0.0484 -0.043,-27.10724 c -0.047,-29.60469 -8.71933,-76.8124 -18.86243,-102.67895 l -6.44219,-16.42864 62.78123,-63.28187 62.78123,-63.28185 0,-79.1103 0,-79.11031 -9.57182,-8.2333 c -7.43178,-6.3926 -11.83942,-7.796 -19.71436,-6.2771 -20.50608,3.9551 -21.64271,8.349 -21.64271,83.66331 l 0,67.85591 -49.22426,49.14218 c -29.15698,29.10838 -50.32481,47.84451 -51.92388,45.95906 -1.48482,-1.7507 -9.10471,-11.71013 -16.93312,-22.13206 -39.81732,-53.00879 -102.49019,-93.05982 -166.25859,-106.24741 -36.13182,-7.47221 -99.18051,-4.93756 -131.30456,5.27861 -26.14029,8.31322 -55.55231,22.47878 -77.21457,37.18845 -20.34908,13.81796 -57.3323,49.77557 -71.5712,69.58643 -6.49438,9.03575 -12.32156,17.09711 -12.94929,17.91414 -0.62773,0.81703 -23.26757,-20.60384 -50.31076,-47.60196 l -49.16944,-49.08744 0,-66.82981 0,-66.82981 -9.60443,-9.6044 c -10.17108,-10.1711 -17.46078,-11.6741 -28.18143,-5.8103 z"/>
</svg>
<svg viewBox="0 0 1000 1000" width="32" height="32" xmlns="http://www.w3.org/2000/svg">
<path d="m 117.49678,1.6479 c -14.35645,7.8524 -14.78576,10.4977 -14.78576,91.10661 l 0,77.21615 62.70852,63.00916 62.70852,63.00913 -8.22682,26.0425 c -10.93085,34.60229 -15.33006,60.17339 -16.23053,94.34261 l -0.74504,28.27088 -82.14316,0.0821 c -88.982675,0.0892 -95.090572,1.13177 -102.975897,17.57719 -5.159433,10.76036 -0.437357,26.46541 9.567322,31.81976 3.359376,1.79789 43.918753,3.16015 94.088305,3.16015 l 88.1835,0 4.38439,18.89293 c 2.41141,10.39111 8.12715,28.25212 12.70164,39.69114 l 8.31724,20.79826 -66.169,66.45637 -66.16899,66.45638 0,78.00249 0,78.0025 8.06496,8.06496 c 12.95118,12.95118 31.5414,10.46328 39.69959,-5.31294 3.74436,-7.24078 4.80707,-23.68624 4.80707,-74.38945 l 0,-65.09362 53.75743,-53.68337 53.75744,-53.68337 7.72345,11.00627 c 4.2479,6.05345 15.78494,19.52589 25.63788,29.93876 l 17.91444,18.93248 0.72629,33.63914 c 0.73887,34.22226 7.9032,64.96475 21.25915,91.22409 11.86929,23.33639 37.26546,52.99945 58.11122,67.87468 71.16591,50.78293 162.02719,41.93436 221.97879,-21.6175 37.15516,-39.38642 54.99298,-85.42697 54.99298,-141.94042 0,-30.10247 0.42675,-32.06866 8.04342,-37.0593 4.4239,-2.89864 16.59805,-15.85812 27.05365,-28.79885 l 19.01023,-23.52859 53.37397,55.5282 53.37396,55.5282 0.0726,66.68532 c 0.0723,66.37641 0.11007,66.72267 8.13766,74.75027 12.95115,12.95118 31.54136,10.46328 39.69959,-5.31294 6.05356,-11.70633 7.05278,-146.9072 1.1715,-158.51731 -1.99953,-3.94728 -31.89987,-35.61283 -66.44518,-70.3679 l -62.80969,-63.19103 6.11034,-15.66641 c 3.36067,-8.61652 9.09962,-26.38609 12.75322,-39.48793 l 6.64291,-23.82151 91.69385,0 c 52.41677,0 94.22314,-1.35366 97.59863,-3.16015 10.00468,-5.35435 14.72676,-21.0594 9.56732,-31.81976 -7.93461,-16.54827 -13.68804,-17.49084 -107.08305,-17.54328 l -86.25025,-0.0484 -0.043,-27.10724 c -0.047,-29.60469 -8.71933,-76.8124 -18.86243,-102.67895 l -6.44219,-16.42864 62.78123,-63.28187 62.78123,-63.28185 0,-79.1103 0,-79.11031 -9.57182,-8.2333 c -7.43178,-6.3926 -11.83942,-7.796 -19.71436,-6.2771 -20.50608,3.9551 -21.64271,8.349 -21.64271,83.66331 l 0,67.85591 -49.22426,49.14218 c -29.15698,29.10838 -50.32481,47.84451 -51.92388,45.95906 -1.48482,-1.7507 -9.10471,-11.71013 -16.93312,-22.13206 -39.81732,-53.00879 -102.49019,-93.05982 -166.25859,-106.24741 -36.13182,-7.47221 -99.18051,-4.93756 -131.30456,5.27861 -26.14029,8.31322 -55.55231,22.47878 -77.21457,37.18845 -20.34908,13.81796 -57.3323,49.77557 -71.5712,69.58643 -6.49438,9.03575 -12.32156,17.09711 -12.94929,17.91414 -0.62773,0.81703 -23.26757,-20.60384 -50.31076,-47.60196 l -49.16944,-49.08744 0,-66.82981 0,-66.82981 -9.60443,-9.6044 c -10.17108,-10.1711 -17.46078,-11.6741 -28.18143,-5.8103 z"/>
</svg>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment