Jump to content
You must now use your email address to sign in [click for more info] ×

SVG Export with minified SVG code


Recommended Posts

I really would love to completeley change from AI to Affinity but at the moment, the SVG-export has too much overload for me for web usage as you can see here for one simple icon:

 

AI:

<svg xmlns="http://www.w3.org/2000/svg"width="30" height="30" viewBox="0 0 30 30">
<defs><style>.a{fill:#007a53;fill-rule:evenodd;}</style></defs><title>vk4</title>
<path class="a" d="M26,7.5h-1.5V27h-5V7.5H18L22,3ZM17.48,25h-5V13.5H11L15,9,19,13.5h-1.5Zm-7-2h-5V11H4L8,6.5,12,11h-1.5Z"/>
</svg>

Affinity:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svgwidth="100%" height="100%" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
<rect id="ArtBoard1" x="-160" y="-760" width="1280" height="800" style="fill:none;"/>
<clipPath id="_clip1">
<rect id="ArtBoard11" x="-160" y="-760" width="1280" height="800"/>
</clipPath>
<g clip-path="url(#_clip1)">
<path d="M10.475,23l-4.95,0l0,-12l-1.5,0l4,-4.5l3.95,4.5l-1.5,0l0,12Zm7,2l-4.95,0l0,-11.5l-1.5,0l4,-4.5l3.95,4.5l-1.5,0l0,11.5Zm8.5,-17.5l-1.5,0l0,19.5l-4.95,0l0,-19.5l-1.5,0l4,-4.5l3.95,4.5Z" style="fill:#007a53;"/>
</g>
</svg>

Could you make an export option for a super minified svg? Especially all the Artboard stuff is unnecessary... or am I'm doing something wrong here?

 

This would be great and I guess many other people would like this feature too...

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.