svg export from on-line resources is at random scaling
From the app on my computer, I can choose how the units in the GeoGebra window will be represented in an svg export. That means I can get files at known scales out of GeoGebra. However, when I upload that applet as a GeoGebra resource, there is no dialog asking about scaling. Worse, the export doesn't make doesn't make a uniform decision about how to scale the drawing. It appears to scale the viewing window to about 10cm x 10cm regardless of the units in view. Because the viewing window is always a bit bigger than the object being exported, this means the actual drawings are even more randomly scaled than just the arbitrary window scaling. For instance, I'm trying to draw sets of gears to laser cut. They all have to be cut to the same scale obviously or they won't work together. Yes, I can afterwards measure the diameter of the central hole that is the same for all of them and then compute the rescaling value for each gear and then rescale them in Inkscape. But why do I have to do all this work? There is a numerical scale built into GeoGebra. Use it consistently.
1) Please say which version you are using
2) Please always upload your .ggb file when you are reporting a problem
It is the online version that misbehaves and no version numbering seems to be accessible for that. An example of the misbehavior can be seen with https://www.geogebra.org/m/k9mcy8qf but the behavior is generic to svg export from the on-line applet. A laptop version that shows correct behavior is <?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.613.0" app="classic" platform="d" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/app...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >
</geogebra>. The correctly behaving file in that version (which is what is uploaded to the link above) is attached.
Help -> About for the version number
Sorry, the export is working as intended (the online version doesn't assign a notional scaling to cm). As you've noted you can post-process in Inkscape
That may be the intended functionality. However, it is not a useful functionality because the export scale is not only unknown but unless very picky set-up is made is also unknowable because the exported file is a single entity (including boundary white space) so that even if you know what size the drawn part should be, there isn't typically any way to measure what size it came out to be so there isn't any way to choose how to rescale. The only way I have found around this is to disable pan and zoom and force the window to zoom to exactly the edges of the figure and force the window to be square but that required a whole lot if finagling with adjusting the window size before I uploaded and then again after I uploaded so that the graphics window online is both exactly square and exactly the size of the object drawn. That a lot of extra work for every single use that could be saved by scaling the export to the coordinates in the drawing instead of scaling them to the (completely arbitrary) window coordinates.
That's easy to solve, you can specify corner and corner2, and make an "Export" button see https://wiki.geogebra.org/e...
(or make GeoGebra Points called Export_1 and Export_2)
I think that's what I'm doing with ZoomIn in effect (zooming to the size of the object) but since I can't guarantee that the actual window is perfectly square, I either have two declare to scaling corrections to be used after export to account for the out-of-squareness, or I have to tweak the window until it's at least really close to square.
Can you please explain to me the objection to exporting scaled to the axes drawn in the window (which is what everything that has been drawn is based on). I'm completely baffled as to what use case would prefer scaling to an unknown and arbitrary pixel size of a window over scaling to the values in the drawing.
Why force zooming in so that figures exactly touch the edge of the window in order for the rescaling value to be knowable? What is gained here?
Comments have been locked on this page!