piqnt / svgexport

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

Thin lines drawn too heavy, transform not working on some elements #46

Open hakanai opened 7 years ago

hakanai commented 7 years ago

nodejs v8.1.2 svgexport v0.3.2

Input data is the keyboard design I'm working on:

https://github.com/trejkaz/keyboard/blob/master/custom-keycaps.svg

Result from svgexport:

custom-keycaps

For comparison, result in Chrome (taken by manual screenshot):

screen shot 2017-06-23 at 12 20 02 am
shakiba commented 7 years ago

Thanks for reporting, I can not immediately fix this, but will do it as soon as I can.

hakanai commented 7 years ago

I have a lead on the line thickness problem - when I tried the same file in Batik, it complained about the scientific notation because it only supports CSS2. After changing the stroke-width values not to use that, svgexport renders the strokes the same as Chrome.

shakiba commented 7 years ago

Cool, thanks for update!