Jump to content
Sign in to follow this  
kedmans

[Fixed] Export to SVG or EPS

Recommended Posts

Hi

Anybody can posdkazat as can be exported, for example, in the format and get svg file without the element <image>?
 
that I get when I export:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="2400px" height="2400px" 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-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.41421;">
    <g>
        <g>
            <image x="18" y="32" width="2350px" height="2339px" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACS4AAAkjCAYAAAAF8kO/AAAgAElEQVR4nOy9y6+lSXIf9svM7zuv+763qrqquqtf1d0z080Rh4BESqBImiYJU4AlQBBgWIa9MOCtN/4DDO28sFfaeCF4Yy8MGDBhyoABAbQIkRQfpoecGfZMT/dwuut1b9267/M+3yMjvIiM/PI799yq6iFkwMZJ9Ok69zv55SMyMiIy45eRBiF999/8q/9JvjEbYwgA2IAAMAAYGDLWMABiYjCYAZCBgeSRdwCwsSAYw+E3Mswc3iFjwcZYWGvIWsPEABDrIWsMjDFsjJFfYIiNY2v1HcsGhq01sNbG9gHMREzee9R1zUTEzExEBGut/g2AiRkM6QEbI/UySxnxN2Lm0D9jpT3GSL2A0AEGsMZpGZB34wcwIGMsA4D3npmZjTGAMWwNWH8L9Iv9UPonZbExgIFhGDBg4KxlqVJazUyByBTbwczwMlTMzDAGDGNgpT9J+SSZ0bRHug+ADVtjpH7rYIzhzGXsMvkOhN+MZSnSMIyFNTaUIeSEARgGOgjGGP1VyjEG1hgGx5EAEUn7pAJtr7TfWjgjbSAjg+lgQ9spDoUJfMhhTL337H0F7wlUe2YmEBEMEzN7EBHIeyaWIWGlg7YztK3hu9Cm0BbhUwtrLed5F845WGfZuQw278XfpDtKN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2DT9FnqHr/ttlmqX/rgTBtXoiZZIhgWsZCxiScdW6Y08BWAUlKUIQAEj6xgaW9b0GKKhJ+TUFyinISUF7zFKTNJ8iqAjWAdZBYD8aU22JX5D460PosvQ3bbLylWZtg9cSWBd5sPUBvAUYNmB2IMHfWTYOYLbSfKETQ8vmSDs2gp+Q4FimzXKhrUjpFbIJ7CLlfwuhfIgkxU1rI7gx/c4M732c2wxGXdeYL+YoyzLWURQVJpMpqqoO46vARYmA5YxBVREMRDaylfmbmRq5rZHbCiUWQGXhiwrIDTLjkTmGMwxiAUYoPRSA5wwEtKBygQmVr+DJh2ehgQRYK+AzEEkfyYKYQAwBF1oC14BC1xrApwAmSYGhVhB1Z1cXOD45xfnVFRZFAWIOciLIrDAm1qleaOT9st6xzrb4EAACaAzOOXQ6XeR5fk32K98LaM6grmuMx2NkWYb79+9rZDSwb/SIc065uQHmMYMFN4dUjobIfvAhglnuMhS8AHsCGMicQ57nIJjQXg7z04EZyHOLqiIURQUigyzroCxn18CyqaxR3rfGgiiRORFm1bSNmeHrEnnWQb/
....
wdb0f2oHDokFQAAAABJRU5ErkJggg=="/>
        </g>
    </g>
</svg>

I need to get when I export

<?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 version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="1890" height="1200" viewBox="0, 0, 1890, 1200">
  <g id="add">
    <g>
      <path d="M1826.731,24.5 L1826.731,99.901 L1862.678,128.975 L1042.435,1102.063 L884.518,1102.063 L884.5,1165.5 L40.499,1165.5 L155.068,326.5 L992.5,326.5 L992.5,24.5 L1826.731,24.5 z" fill-opacity="0" stroke="#000000" stroke-width="4" stroke-dasharray="24,8,8,8" stroke-linecap="round" stroke-linejoin="round"/>
    </g>
    <g>
      <path d="M1001.349,337.5 L1001.349,835.044 L949.127,891.5 L872.348,891.5 L872.348,962.5 L78.5,962.5 L166.144,337.5 L1001.349,337.5 z" fill-opacity="0" stroke="#000000" stroke-width="1"/>
    </g>
    <g>
      <g>
        <path d="M671.255,611.695 C677.882,611.695 689.424,619.13 689.424,629.865 L689.424,669.135 C689.424,681.095 677.882,687.305 671.255,687.305 L407.594,687.305 C400.967,687.305 389.424,680.827 389.424,669.403 L389.424,629.865 C389.424,618.861 400.967,611.695 407.594,611.695 L671.255,611.695 z M671.255,616.695 L407.594,616.695 C401.998,616.695 394.424,623.153 394.424,629.865 L394.424,669.403 C394.424,676.327 401.71,682.305 407.594,682.305 L671.255,682.305 C673.611,682.305 677.014,681.005 679.653,678.84 C682.706,676.335 684.424,673.054 684.424,669.135 L684.424,629.865 C684.424,623.326 676.73,616.695 671.255,616.695 z" fill="#12188C"/>
      </g>
...
    </g>
  </g>
</svg>

Share this post


Link to post
Share on other sites

Hi,

 

It will only rasterise elements that can't be supported by SVG, so there must be something strange about the paths you're using. Is there any chance you could share the .afdesign file with us and I can tell you what's going on? :)

 

Thanks!

Matt

Share this post


Link to post
Share on other sites
I attached the program file and the file that is expected to receive.
 

 

Just in dropbox laid out all these files. I open in Affinity the saved file SVG and then exported it as a format SVG. These files are also there in the folder.

 

 

https://www.dropbox.com/sh/kw56dhzntbc84vs/AAANMKzzWKc8GjuV_3SFdDxDa?dl=0

ТЦ Партизанский.afdesign

ТЦ ALL.svg.zip

Share this post


Link to post
Share on other sites

Hi,

 

There are two things that are causing the problem, but they're easy to fix :)

 

Firstly, the layer 'Plan' has an Exposure Adjustment at the top of it - this can't be represented in SVG so will force everything beneath it to be rasterised. Delete this adjustment.

 

Secondly, we seem to have a bug - if the top level layer ('Plan' in this case) has an opacity of anything other than 100% it will force it to rasterise when it did not need to. We will fix this bug because it is just an over-cautious test in our export tree. In the meantime, you can make your document export correctly by simply selecting the layer 'Plan' and changing the opacity back to 100%, then selecting all the contents of the layer (Cmd+A) and changing the opacity slider back down to the 50% you wanted - now each item is semi-transparent rather than the layer containing them and this exports correctly.

 

Incidentally, it's worth noting that we still won't export the SVG 'path' tag for these shapes as they are rectangles, so we spot this geometry and export the SVG 'rect' tag instead. Hope that won't be a problem though?

 

Thanks for bringing this to my attention,

Matt

Share this post


Link to post
Share on other sites

Yes, thank you, for a simple circuit like it began to turn ... 

 
Only it's still all that I had to do in order to properly receive, the program is supposed to do .. the only thing she can warn that something is in a certain format, warns when it is not the font that was selected in another editor. 
 
and in respect of opacity - I do not agree. svg is a concept of opacity, I use it very successfully.

Share this post


Link to post
Share on other sites

Hi Kedmans,

 

I was agreeing with you about opacity and saying that we would fix it because we have a bug - I was only trying to offer you a workaround until the next update, sorry if I didn't make that clear? :)

 

In the future, you should expect to see the SVG export behave differently - we are going to make it so that it will output as vectors always by default and only after you've explicitly told it to rasterise unsupported elements will it do so.

 

Thanks,

Matt

Share this post


Link to post
Share on other sites

Secondly, we seem to have a bug - if the top level layer ('Plan' in this case) has an opacity of anything other than 100% it will force it to rasterise when it did not need to

This is now fixed, and the fix will be in the next update.

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.