Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw image size is much bigger than the original size when toBase64() is used #219

Open
yalcinoz opened this issue Jul 10, 2017 · 1 comment

Comments

@yalcinoz
Copy link

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
Copy link

try canvas.toDataURL("image/jpeg",0.9) instead of just toDataURL()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants