Removing Transform Matrix from the output

Asked by Mohamed Sayed on 2015-10-28

Is there is any way to force DVISVGM to not produce transform matrix attribute and calculate the correct X and Y coordinates?

Question information

Language:
English Edit question
Status:
Answered
For:
dvisvgm Edit question
Assignee:
Martin Gieseking Edit question
Last query:
2015-10-28
Last reply:
2015-10-28

No sorry. There is currently no option to create SVG files without transform attributes. You have to postprocess the files, e.g. with Inkscape, to get rid of them. This might lead to bigger files, though.

Mohamed Sayed (mohamed-sayed) said : #2

Aha, Thank you for your answer but i have another question, if i multiply the matrix with x and y with the standard matrix multiplication process, the result X and Y coordinates is correct?

That will probably work in most cases but you have to consider all transformation attributes affecting the current element. For example, there can be transformations applied to a group of elements and further ones to the elements themselves. You have to combine them by multiplication. Furthermore, referenced patterns or gradients can define their own local transformations that must be considered properly too. So it's a pretty complex task to compute all coordinates correctly.

Can you help with this problem?

Provide an answer of your own, or ask Mohamed Sayed for more information if necessary.

To post a message you must log in.