D
D
Dmitry2021-08-18 20:23:32
SVG
Dmitry, 2021-08-18 20:23:32

How to convert SVG with many attributes to simplified?

Good afternoon! Please tell me if this is possible:

<svg viewBox='0 0 512 512'>
    <path fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='32' d='M368 368L144 144M368 144L144 368'/>
</svg>

convert to this:
<svg viewBox="0 0 24 24">
    <path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" />
</svg>

There are two relatively identical icons, purely for example and understanding. The first option has many attributes, the second is more "clean". Is it possible to somehow transform the first option so that it is freed from all attributes and at the same time retains its original appearance and performance? Perhaps there are tools to do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question