Desculpe eu não sou bom em ingles
Oi
Estou tentando capturar a tag SVG.
http://jsfiddle.net/geekduck/bgzydk8v/2/
Posso capturar a tag SVG rect e circle, mas a tag de imagem SVG.
Eu uso useCORS
e posso capturar a tag img.
Existe alguma ideia para tag de imagem SVG?
Obrigado.
Duplicar de https://github.com/niklasvh/html2canvas/issues/95 ?
1 para obter essa correção mesclada, estou tendo os mesmos problemas.
Achado interessante - se eu apresentar os dados codificados em base64 da imagem no atributo xlink: href da imagem, a imagem aparecerá na tela gerada por html2canvas. Se eu fornecer ao html2canvas um caminho relativo para a imagem, ele não funcionará. por exemplo
<image id="OpenLayers_Geometry_Point_42754" cx="690.6698311208747" cy="286.4667614893988" r="1" preserveAspectRatio="none" x="683" y="278" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABd0lEQVQ4T62Tv0sCYRzGP2eiZdxBST82iYLADGoILmirucmhOaSkoTEsaJGCiJYIJIr6EwKn6A8IrUGi0q2IhshIh7u0FPXiNcXSLjJ6x+/zPp/v8xzvSXx/FMANjFTkCyAO6PXXpQZ/B8solllkqRvV2lrWo4U3XowkeumQFBufPV8BXdI5XvsgIVkkaDx+TSOcT/BojFfFGkCY19rHmGszaVUZh14hmDkjaahi8gEQsWdaA6ab65FzmsZRbp0UmwKg4LLEuHP2/7y6TnU933JvDAuAiqflhKvO73ubUT1pnXhxSgD8+Ozb7Cu2phL4tDwHucV/AfytwlBaJ1GcFAlk+iwxbp0DTVVwpW64L5U/IjgJ4LWvsKvIv4L4NJ1wLsgzW7WH1CtFWHWoLDh+ZuxkYSN7yoMxUXtIVUuPFGXa5mbPJInYfJy/rJobAR91lmiX5pEtXahWe5kdKeTIGE9kSrsitvnPVFNEDw8wWhnFgGvgtb7fO2wpc13ikHF4AAAAAElFTkSuQmCC" style="opacity: 1" fill="#000000" fill-opacity="1" stroke="#000000" stroke-opacity="1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></image>
trabalha enquanto
<image id="OpenLayers_Geometry_Point_42880" cx="124.9999999916181" cy="79.99999999953434" r="1" preserveAspectRatio="none" x="112" y="67" width="25" height="25" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/path/to/image/on/server/image.png" style="opacity: 1" fill="#000000" fill-opacity="1" stroke="#000000" stroke-opacity="1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></image>
não.
+ 1, estou tendo os mesmos problemas. Espero quem possa resolvê-los
1, estou tendo os mesmos problemas. parece não resolvido na versão mais recente. por que não # 998 não foi mesclado na versão mais recente?