Save image script
ExportImage command
First create a button in the graphics view 2 and add the script below:
Script
SetActiveView(1)
ExportImage("filename", "my-ggb-snowflake.png", "type", "png", "scalecm", 1, "dpi", 300, "view", 1)
This will save a PNG image of the graphics view 1.
For more details about this command check: https://wiki.geogebra.org/en/ExportImage_Command