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

[Error]Safari: The operation is insecure. #17

Closed
lcw0622 opened this issue Nov 28, 2017 · 4 comments
Closed

[Error]Safari: The operation is insecure. #17

lcw0622 opened this issue Nov 28, 2017 · 4 comments

Comments

@lcw0622
Copy link

lcw0622 commented Nov 28, 2017

Thanks for xkeshi, this tool works well on chrome, but in safari throws an error on this line:
canvas.toBlob(resolve, options.mimeType, options.quality);

anyone has any idea about this ? Here is my code:

const file = (<HTMLInputElement>document.getElementById('pic' + target)).files[0];
const compress = new ImageCompressor(file, {
        convertSize: 1000000,
        maxWidth   : 768,
        maxHeight  : 768,});
@lihongqiang123
Copy link

My compressed image on the ios phone also failed. Who knows?

@fengyuanchen
Copy link
Owner

What is the OS version and Safari version?

@duwei54
Copy link

duwei54 commented Jul 16, 2018

TypeError:canvas.toBlob is not a function.(In 'canvas.toBlob','canvas.toBlob' is undefined)
iphone 7 plus

@andyhuai
Copy link

andyhuai commented Sep 7, 2018

I have the same question, ios11.2,

img.crossOrigin = 'anonymous'

set this can solve it

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

5 participants