-
Notifications
You must be signed in to change notification settings - Fork 511
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 not downloading as PNG on iPad #287
Comments
👋 @ClydeDz Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Hiya! Thanks for being a part of the Antv community! 💪💯 |
Not stale. Still an issue. |
Hiya! Thanks for being a part of the Antv community! 💪💯 |
bump |
1 similar comment
bump |
https://github.com/ClydeDz/tweet-to-image/blob/main/src/App.tsx#L38 change to |
Any updates? |
Do we have any update on this? |
My client is facing this same problems on apple devices (tablet-phone), is there a workaround or solution ? or should i change this to html2canvas ? |
Expected Behavior
I'm using
toPng
to download the React component as a PNG file on this app I built. It works great when I test it from my Windows PC. It should also work the same when I use this app from any browser on the iPad.Current Behavior
When I click the "Download tweet as an image" button from an iPad device, it tries to download a document that's Zero KB. If I open that in the Downloads folder, it's still a document that's Zero KB instead of a PNG image. It has the randomly generated file name and tries to download a file with the name
random-name.png.txt
(in Safari) andrandom-name.png
(in Chrome).I'm not sure why it's appending
.txt
in Safari.This behaviour can be tested on this site - https://clydedz.github.io/tweet-to-image/.
Possible Solution
Happy to try out any solutions provided, but I'm not sure what I could do here.
Steps To Reproduce
Error Message & Stack Trace
Code
You could also look at this code block and fork this repository from this commit https://github.com/ClydeDz/tweet-to-image/tree/cff800e073722c7e2fb2888d25e55243f01da131.
Additional Context
Your Environment
The text was updated successfully, but these errors were encountered: