Evaluate01 Posted March 5, 2019 Posted March 5, 2019 Hi, I'm evaluating AD for creating SVG files in a specific format, required by an internal software. What I see so far in the exported SVG is ok. But instead of getting the formatting in the style attribute <rect id=":24W16" x="261.857" y="244.422" width="26.47" height="30.95" style="fill:#c4d8f9;"/> I would prefer to get stroke and fill like this (result of another software with it's own quirks) <rect x="259" y="214" width="32.5" height="38" transform="matrix(1,0,0,1,0,0)" id=":24W16" fill="rgb(196,216,249)"/> Any export options that allow for this that I haven't found yet? Background: the SVG will be loaded into a HTML page and custom CSS will get applied to the SVG. The inline style in the SVG has highest priority and overrules what's in the CSS.Yes, there is a workaround by making everything in the CSS !important but that is a dirty hack that I'd like to avoid. Affinity Designer is the last in a long list of vector editors I'm trying, saving as SVG seems always a bad compromise, sigh :-( Regards, Jens kwaaui 1 Quote
Staff Callum Posted March 5, 2019 Staff Posted March 5, 2019 Hi Jens, Welcome to the forums As far as I'm aware there is no way to change this I'm afraid. Thanks Callum Quote Please tag me using @ in your reply so I can be sure to respond ASAP.
Evaluate01 Posted March 5, 2019 Author Posted March 5, 2019 Thanks for the quick reply and confirmation. So my search for the perfect SVG generator continues ... sigh. Best Jens Quote
R C-R Posted March 5, 2019 Posted March 5, 2019 Not that it will make your search for the perfect generator any easier, but you might find this interview with Jon Ferraiolo of interest, particularly his answer to the "Why is the SVG spec so enormous?" question. Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Tumulte Posted June 26, 2019 Posted June 26, 2019 Yeah, please scrap the "style" and replace it with XML attributes. That's rather annoying for webdesigners to add "!important" to override inline styling. And even more annoying to replace them manually Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.