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

Image dataUrl not getting on iPhone / iPad (safari,chrome) #186

Open
vishal-px opened this issue Feb 15, 2018 · 12 comments
Open

Image dataUrl not getting on iPhone / iPad (safari,chrome) #186

vishal-px opened this issue Feb 15, 2018 · 12 comments

Comments

@vishal-px
Copy link

I have used this angularjs library Click here This is a reference to dom-to-image library

Its working fine on below-listed OS and browser

  • Linux, Windows, Mac

    • working: Chrome, Mozilla, Opera
    • Not Working: Safari
  • Android

    • working: Chrome, Mozilla, Opera, Safari
  • iPhone / iPad

    • Not Working: Safari, Chrome, Mozilla, Opera

Here is a video please see Click to view video

How I can fix the issue on iPhone & iPad, is there any solution?

@Syndesi
Copy link

Syndesi commented Feb 16, 2018

Hi,

could you please post the error log from the console here on GitHub?

@vishal-px
Copy link
Author

vishal-px commented Feb 19, 2018

Thanks for replay @Syndesi .

There is no any error in the console.
In the video, I have shown that I not getting Image dataUrl, I am calling the toPng() method.

@Syndesi
Copy link

Syndesi commented Feb 19, 2018 via email

@vishal-px
Copy link
Author

Okay, Thank you, @Syndesi once debugged version is ready then Please inform me.

@vishal-px
Copy link
Author

Hi, @Syndesi have you get any solution?

@Syndesi
Copy link

Syndesi commented Feb 24, 2018

Hi,

sry for the delay, I was very busy. But now I have a very basic file which should be able to show where the error occurs. In order to use it, require() the file instead of require('dom-to-image') or replace the file node_modules/dom-to-image/src/dom-to-image.js.
The new file just tells you which function is currently running and the last mentioned function should have the error.
dom-to-image-debug.zip

@vishal-px
Copy link
Author

vishal-px commented Feb 26, 2018

Hi, @Syndesi Thanks for debug version.

Is there any javascript code or js library that convert "data:image/svg+xml;charset=utf-8,<encode_string>"
into .svg or .png or .jpeg file ?

@Syndesi
Copy link

Syndesi commented Feb 26, 2018

Hi @vishal-px ,

you can either put the dataURI into an image like this:

<img src="dataURI" />

or you could look at the answers at one of these questions:

Btw, did you manage to create an image on iPhone/iPad?

@shime
Copy link

shime commented Feb 29, 2020

I am having the same issue. Images with data URI are not getting displayed on iPhone and iPad.

@qhxin
Copy link

qhxin commented Mar 9, 2020

i have the same question. it's about Taint Canvas

@andreastepel
Copy link

Anyone got a solution for this? I am running into the same issue.

@GCSBOSS
Copy link

GCSBOSS commented Apr 28, 2023

I'm facing this in up to date Chrome on Windows.

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