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