How to save image

The tutorial project (https://developer.playcanvas.com/en/tutorials/capturing-a-screenshot/) doesn’t work for me. in Chrome, it return errors because it doesn’t allow base64 file. in Firefox, it return a transparent blank texture. So it’s there any way to savee a canvas to image.

my case is more tricky. i am writing my component with only Playcanvas Engine instead of using Playcanvas Editor. And i would like to render an preview image, which is smaller than the canvas.

That’s annoying, it USED to work :thinking:

This project of mine still works: https://playcanvas.com/project/605131/overview/capturing-screenshot-from-camera