Convert RGB values to PNG image, and export

I’m making small tool - Pixel Editor, really simple to use and create art. I managed to do color palettes, drawing, erasing, changing resolution, saving individual RGB values. If anyone knows how to convert RGB values into an array, and then create png image and export, please give suggestion :smiley: thanks ! By the way, i know this is possible to do with javascript, but I not very good at coding.

There is a screenshot action you can use.
Hide the tools and snap?

Yeah, but I dont want to do regular screenshot, i want to convert color data into image, create image with some script, i need 1:1 aspect ratio. Is that possible?

javascript magic can probably do that, but don’t ask me :man_shrugging: