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

cropit giving me an about:blank page in Chrome #282

Open
Lxxrxns opened this issue Feb 20, 2018 · 3 comments
Open

cropit giving me an about:blank page in Chrome #282

Lxxrxns opened this issue Feb 20, 2018 · 3 comments

Comments

@Lxxrxns
Copy link

Lxxrxns commented Feb 20, 2018

Hi Scott,

I'm trying to use cropit, but I'm having an issue. Clicking on the "Download cropped image" button, even on your own demo page, gives me a new tab with about:blank, but doesn't give me any data or base64 image. Just a blank page.

Is it something with my browser? Or is your demo page no longer working?
I'm experiencing the same issue when I try to use cropit on my own web page.

Kind regards,

Laurens

@Lxxrxns
Copy link
Author

Lxxrxns commented Feb 20, 2018

Of note: in firefox it works just fine!

@mrs-orangetree
Copy link

same here.

@pproulx89
Copy link

pproulx89 commented May 9, 2018

Hey everyone!
I think the issue is how Chrome handles the window.open(imageData); line of code.

Replace the example export JQuery function with the following to get it to work on Chrome:
$('.export').click(function() { var imageData = $('.image-editor').cropit('export'); var image = new Image(); image.src = imageData; var w = window.open(""); w.document.write(image.outerHTML); });

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

3 participants