# Python Processing with Trinket - saving graphics file

**URL:** <https://discourse.processing.org/t/python-processing-with-trinket-saving-graphics-file/36530>\
**Category:** Processing.py\
**Created:** [April 22, 2022, 7:06pm UTC](https://discourse.processing.org/t/python-processing-with-trinket-saving-graphics-file/36530 "2022-04-22T19:06:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonc8](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@simonc8](https://discourse.processing.org/u/simonc8)\
**Post date:** [April 22, 2022, 7:06pm UTC](https://discourse.processing.org/t/python-processing-with-trinket-saving-graphics-file/36530/1 "2022-04-22T19:06:50Z")

</div>

I want to use the processing library with Python in Trinket to create very simple graphics files, for example, some national flags. (This is for a Code Club to teach the students about pixels, RGB colours etc.) I would like to be able to save the generated image to a disk file as a jpg or png file but I can’t make it work.

Trinket recognises the processing `save()` function but just opens up a blank tab in the browser with no Save As dialog.

Is there a way of saving a graphics file generated by processing on Trinket?

Update: I was using Trinket on Microsoft Edge. I’ve just tried it on Firefox and it opens the image in the new tab, from where I can save it. Not sure why Edge is not opening the image in the same way…

Here is the link to my trinket: [processing\_saveimage (trinket.io)](https://trinket.io/python/7d80a981b2)
