Removing Transform Matrix from the output

Asked by Mohamed Sayed

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:
Last reply:
Revision history for this message
Martin Gieseking (martin-gieseking) said :
#1

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.

Revision history for this message
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?

Revision history for this message
Martin Gieseking (martin-gieseking) said :
#3

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.