Scaling a .svg image

the_math-hobbyist shared this question 3 years ago
Answered

Is there a way by a script to scale the .svg output?


Say: To pass a .svg screenshot with a width of 800 px to 1200 px with the command of GeoGebra ExportImage( ) or with the JavaScript command exportSVG( ) or with another. The parameters scale and width of the ExportImage command seem don't work for .svg format.


I thought to use ZoomIn( ) and ZoomOut( ) before and after of the exportation. However, the texts are not scaled, and other items as the arrows of the vectors, etc. So the result is no good.

Comments (4)

photo
1

Please explain what you are trying to do exactly (SVGs by their nature can be scaled fine after export, that's the point)

photo
1

I get the .svg of the graphics view. Several .svg are placed in a text document. The .svg images are narrow, so I would like to scale them to get bigger images. I know I can do it in the final document. However, I would like to know if it could be possible to be gotten it directly in GeoGebra.

photo
1

Sorry, no

photo
1

Thanks, Michael.

© 2023 International GeoGebra Institute