Skip to content

Instantly share code, notes, and snippets.

@yuxxxx
Last active December 16, 2015 17:00
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 yuxxxx/5467526 to your computer and use it in GitHub Desktop.
Save yuxxxx/5467526 to your computer and use it in GitHub Desktop.
defsとuseでSVG圧縮
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="303.402" height="467.144" viewBox="0 0 303.40 467.14" enable-background="new 0 0 303.40 467.14" xml:space="preserve">
<defs>
<path id="hoge" fill="#006432" fill-opacity="1" stroke-width="0.704" stroke-linejoin="round" stroke="#006432" stroke-opacity="1" d="M 39.0291,0.351971C 59.6037,0.351971 76.2788,10.2961 76.2788,22.5664C 76.2788,30.5353 69.2427,37.5248 58.6708,41.4445L 58.6708,83.1231C 68.5703,87.1152 75.0759,93.8717 75.0759,101.536C 75.0759,109.199 68.5703,115.956 58.6708,119.949L 58.6708,161.361C 68.906,165.319 75.6773,172.192 75.6773,180.011C 75.6773,192.28 59.0002,202.225 38.4266,202.225C 17.8551,202.225 1.17794,192.28 1.17794,180.011C 1.17794,171.596 9.02193,164.274 20.5872,160.505L 20.5872,121.233C 12.9799,118.86 6.91756,114.966 3.53603,110.228C 1.48922,107.547 0.35202,104.58 0.35202,101.459C 0.35202,97.319 2.35223,93.4507 5.82179,90.1622C 9.35044,86.6385 14.4692,83.7466 20.5872,81.8386L 20.5872,41.8709C 9.35233,38.0457 1.77942,30.8333 1.77942,22.5664C 1.77942,10.2961 18.4555,0.351971 39.0291,0.351971 Z M 32.4287,16.1106L 32.4221,16.1106L 32.4247,80.0211C 34.1185,79.8841 35.8489,79.8133 37.6077,79.8133C 39.9378,79.8133 42.2179,79.9375 44.4295,80.1753L 44.4269,16.1106C 44.4269,8.66044 32.2572,9.81266 32.4287,16.1106 Z M 32.4289,186.41C 32.429,193.359 44.4337,193.359 44.4337,186.41L 44.4312,122.742C 42.219,122.98 39.9384,123.104 37.6077,123.104C 35.8495,123.104 34.1197,123.033 32.4264,122.897L 32.4289,186.41 Z M 37.8324,88.9844C 35.9647,88.9844 34.1526,89.1229 32.425,89.3833L 32.426,113.53C 34.1533,113.791 35.965,113.929 37.8324,113.929C 40.1345,113.929 42.3519,113.719 44.4308,113.329L 44.4299,89.5845C 42.3513,89.1949 40.1342,88.9844 37.8324,88.9844 Z "/>
</defs>
<use xlink:href="#hoge" x="0" y="0"/>
<use xlink:href="#hoge" x="0" y="260"/>
<use xlink:href="#hoge" x="110" y="0"/>
<use xlink:href="#hoge" x="110" y="260"/>
<use xlink:href="#hoge" x="220" y="0"/>
<use xlink:href="#hoge" x="220" y="260"/>
</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.
@yuxxxx
Copy link
Author

yuxxxx commented May 13, 2013

インデントずれてたのを修正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment