piqnt / svgexport

SVG to PNG/JPEG command-line tool and Node.js module
927 stars 85 forks source link

Stroke Attributes in svg #31

Closed baierjak closed 8 years ago

baierjak commented 8 years ago

I have troubles with exporting svg elements with attributes "stroke-linejoin" ... For example I have stroke-linejoin="round" but always it is ignored in export and it is the same result as stroke-linejoin="bevel" by default. Can I do something about it?

baierjak commented 8 years ago

This issue is almost only with TEXT elements

shakiba commented 8 years ago

Can you please share an example, it is probably a phantomjs issue.

baierjak commented 8 years ago

Yes, thats problem with phantomJS. Have you any experiences with other browsers?

baierjak commented 8 years ago

maybe you can see it in this example. in png you can see outline is not ROUND :) export.zip

shakiba commented 8 years ago

I suggest that you try a simple shape, such as square, instead of text.

baierjak commented 8 years ago

Haha. Not so good solution. How can I change text for square? :)) But i have solution >> transform every single letter from text element into path element here we go :)!

shakiba commented 8 years ago

I meant check if the issue exists with a simple shape (path) such as square, as well. I was suspicious that the issue is somehow related to fonts or text. Anyway, good to hear that you fixed it.

baierjak commented 8 years ago

Yes. This issue is only with text elements. Dont know why.