niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.44k stars 4.79k forks source link

when using html2canvas , why image with on-line url can't appear in result ,is there anyone know it? please tell me,thanks! #1077

Closed Juliazhong closed 7 years ago

fatemehgholampour commented 7 years ago

is any one to answer this???

chengwb53 commented 7 years ago

nobody?

chriscfox commented 7 years ago

Your question is not very clear. Perhaps if you provided a jsfiddle illustrating it, or eve just some code with images of what you're expecting versus what you're getting, you may get more lucky with an answer. On Wed, 17 May 2017 at 09:37, cheng notifications@github.com wrote:

nobody?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/niklasvh/html2canvas/issues/1077#issuecomment-302024362, or mute the thread https://github.com/notifications/unsubscribe-auth/AQbyPOYTYckXrlw3Txj5bjjEVXUmtRhZks5r6rHagaJpZM4MdcVu .

-- Chris Fox Chris C Fox Consulting Limited email: chris.c.fox@gmail.com phone: +44 77 860 21712 web: http://www.chriscfox.com linkedin: http://www.linkedin.com/in/chriscfox twitter: http://www.twitter.com/chriscfox Google+: http://gplus.to/chriscfox Facebook: http://www.facebook.com/pages/StrategicCoffee/102920468071 skype: chriscfox

Have you tried https://www.StratNavApp.com https://www.stratnavapp.com/, the online collaborative tool for strategy development and execution?

Chris C Fox Consulting Limited is registered in England and Wales as a Private Limited Company: Company Number 6939359. Registered Office: Unit 4 Vista Place, Coy Pond Business Park, Ingworth Road, Poole BH12 1JY

eKoopmans commented 7 years ago

I believe you are talking about cross-domain images. For Internet security reasons, trying to use an image from a different domain in a canvas causes problems. There are two html2canvas options, useCORS and proxy, which are designed to try to get around that problem. They're not perfect solutions though - you can read more over at #951 and #592.