Raw image size is much bigger than the original size when toBase64() is used
yalcinoz opened this issue · comments
Yalçın commented
Hi,
I'm trying to save the image which has some filters applied on. So I use "toBase64" method to get the raw data to send via Ajax. But the raw image size is 4-5 times larger than the original size. So if my image is 500 KBs, the raw data that I'm trying to save is 2,5 - 3 MBs. Am I doing something wrong or is there a way to reduce this size?
Thanks.
Esc4pism commented
try canvas.toDataURL("image/jpeg",0.9) instead of just toDataURL()