In-game photo camera with snaps displayed in a gallery

**How do I create an option for the player to take a photo inside the game and display it in an in-game photo album or gallery?

Many games allow or even ask players to take pictures of objects or the entire game screen and then display them in an album or gallery for later reference. Example games: Viewfinder or Chicory.

I am not clear about how the snapshot process of a defined area of the game canvas could be triggered from inside the game to create a jpg or png. I don’t really want players to have to use their device’s screenshot method and then upload the photo manually to the game as this would break immersion.

Is this functionality already available somewhere in GDevelop? And if not, how would I start creating something like that? I did a quick Google search, but couldn’t find anything that looked like a relevant tutorial for this sort if thing in GDevelop.

Any help and pointers to tutorials are much appreciated.