dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

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

Open vishal-px opened this issue 7 years ago • 12 comments

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?

vishal-px avatar Feb 15 '18 04:02 vishal-px

Hi,

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

Syndesi avatar Feb 16 '18 23:02 Syndesi

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.

vishal-px avatar Feb 19 '18 05:02 vishal-px

Hi vishal-px,

that's weird. At this point I would assume that there is some kind of problem inside the library itself but I cannot test it because I don't have any Apple products. But I should be able to make a debuged version of the library in order to see where the error occurs. I think it's ready in 2-3 days.

Am 19.02.2018 6:48 vorm. schrieb "vishal-px" [email protected]:

Thanks for replay @Syndesi https://github.com/syndesi .

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tsayen/dom-to-image/issues/186#issuecomment-366594581, or mute the thread https://github.com/notifications/unsubscribe-auth/AJcea6TTqLJQDzhV2ZUyyDxAKOD0AeCbks5tWQsmgaJpZM4SGVBl .

Syndesi avatar Feb 19 '18 08:02 Syndesi

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

vishal-px avatar Feb 19 '18 09:02 vishal-px

Hi, @Syndesi have you get any solution?

vishal-px avatar Feb 23 '18 05:02 vishal-px

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

Syndesi avatar Feb 24 '18 10:02 Syndesi

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 ?

vishal-px avatar Feb 26 '18 11:02 vishal-px

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?

Syndesi avatar Feb 26 '18 19:02 Syndesi

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

shime avatar Feb 29 '20 19:02 shime

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

qhxin avatar Mar 09 '20 09:03 qhxin

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

andreastepel avatar May 18 '21 07:05 andreastepel

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

GCSBOSS avatar Apr 28 '23 11:04 GCSBOSS