We use S3 storage for hosting our photos. There is a feature on our client that allows to put some masks on the image and send it to S3 to update it.
The problem is that when you initially download a photo it weights about 300kb, but when you do canvas.toBlob and send it on the S3 it weights about 1.5mb. How can I cope with this problem?