No generation of png at 600 dpi

Lluís shared this problem 2 years ago
Not a Problem

Hello,


I would like to use Geogebra to make some figures for a paper and I need the maximum quality. So I'm trying to make png files with the maximum resolution (600 dpi) but Geogebra won't make them.

I'm attaching a minimal example where this does not work. It consists of two files: correct.ggb contains a sphere, 8 points on it, ... Geogebra correctly makes the png files for 300 and 600 dpi. However, incorrect.ggb contains the same objects as correct.ggb but it is zoomed in. Geogebra won't make the png with 600 dpi for incorrect.ggb.

These aren't the same files I'm using for the figures, but they contain a similar scene. I'm aware that for 600 dpi the file will contain 26044x13367 pixels at full screen, so I'm making them using only "half of the screen": 11328x13351 pixels. Also, I need the zoom to have every object clearly visible, and the zoom I'm using for the figures is very similar to zoom in incorrect.ggb.

Maybe this is not a bug, but the expected behaviour of Geogebra. If so, I think that some sort of pop-up saying "the file could not be generated due to ..." would be great.

Thanks in advance.

Best Answer
photo

perhaps using


-Xms32m -Xmx1024m like in

https://wiki.geogebra.org/e...

you have a chance

Comments (8)

photo
1

It's running out of memory, please use a smaller window size or smaller dpi

photo
2

perhaps using


-Xms32m -Xmx1024m like in

https://wiki.geogebra.org/e...

you have a chance

photo
1

Hello,


I suspected the problem had something to do with lack of memory. But, since I really need that window size, I'll try your method as soon as I can get my hands on a .jar file for Linux (the link to offline installers is broken).


Thanks for your help.

photo
1

Thanks, link fixed!


https://www.geogebra.org/download

photo
photo
1

I'm guessing on Linux you can make the window bigger than the screen? Otherwise, often, some content gets cropped when exporting to PNG.

An alternative would be to create a SVG image (it can be any size, even very small!), then use Inkscape to convert the SVG to PNG at an arbitrary scale. Maybe this will use less memory? I would suggest this route, especially if you need to share the GGB files with people on other operating systems that can't display huge windows.

https://inkscape.org/en/

photo
1

I'm not sure if I understood you well:

  • The problem with the generation of the png file is that the window size is too large (even when it is half the screen's size), and GeoGebra runs out of memory.
  • Using Inkscape is something I thought of, but drawing a 3d scene with it would be too difficult (but I'm not an expert on Inkscape, so I might just not know how to do it).
  • Exporting the 3d view to .svg/.pdf is apparently not supported in GeoGebra (see https://help.geogebra.org/t...)
  • No, I don't need to share the GGB files: I only want the png files to be included in the paper.

photo
1

Sorry, I did not realize you were creating a 3D scene.

photo
photo
1

Hello,

I solved the "problem". Indeed, GeoGebra runs out of memory. So, following the advice from https://help.geogebra.org/t... I managed to generate the png files using half the screen's size at 600dpi.

Note for Ubuntu users: in Ubuntu 16.04 GeoGebra was installed using apt-get in the directory "/usr/share/geogebra/". There, one should find the .jar files (therefore, there is no need to download an offline installer). I executed GeoGebra with:

java -Xms32m -Xmx4096m -jar geogebra.jar

and the png file was generated after a few seconds.
Thank you all for your help.

© 2020 International GeoGebra Institute