piqnt / svgexport

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

How to use styles? #58

Closed DmitrijOkeanij closed 6 years ago

DmitrijOkeanij commented 6 years ago

Is there any ability to use styles tag inline.

I tried place style element in defs on in svg but not working.

Tried to use external file not working too.

<?xml-stylesheet type="text/css" href="styles1.css"?>

But in Chrome both are working.

I know that i can point styles by text in command line, its good, but is there posibility to link styles as file? Is there any variants?

DmitrijOkeanij commented 6 years ago

Sorry solved. Some error in SVG file.