Can't export to SVG if you have a polygon with no fill

smchughinfo shared this problem 3 years ago
Solved

Hi, You guys are amazing.


Okay I think I have figured out what's causing this but I can't test it because I can't get it back into edit polygon mode. But basically I used the polygon tool to make a triangle. I didn't want any fill. I just wanted the border. The only way I found to do that was to have it fill with an image, but then press the delete button. But then when I want to export to SVG it came up as invalid.


<code><svg version="1.1" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="1060" height="804"><defs><clipPath id="BFoGSOFfMytc"><path fill="none" stroke="none" d=" M 0 0 L 1060 0 L 1060 804 L 0 804 L 0 0 Z"/></clipPath></defs><g transform="scale(1,1)" clip-path="url(

</code>

This was the url, but like I said something seems different because I can't get back to the spot where it let me choose the fill for the polygon. Obviously the work around is to create the triangle with regular lines.

Comments (5)

photo
2

Hi, tried (5.0.414) with the polygon properties>Color>opacity=0

Select the rectangle domain with the right clic


File>Export>Graphic view as Picture>Format(svg) ?

photo
1

I was using this web client https://www.geogebra.org/classic.

≡ > Download as... > SVG

It turned out the issue was firefox. I tried it in Chrome and it worked.

photo
1

Ok, I understand and I confirm on linux, : https://www.geogebra.org/cl... :

  • the svg export works fine with chrome
  • the svg export stops at the "#" of the url , with Firefox (57.0.4 64bits)

photo
photo
1

Thanks, fixed for next release (v416 or v417)

photo
1

v417 online now!

© 2021 International GeoGebra Institute