Skip to main content
Senior
June 19, 2024
Solved

SVG Editor

  • June 19, 2024
  • 2 replies
  • 1922 views

Can anyone help with an SVG editor. I have purchased CorelDraw, but there is a problem with the SVG file, which also exports TouchGFX (and more).

 

 

 

 make -f simulator/gcc/Makefile assets -j8
 Reading ./application.config
 Reading ./target.config
 ERROR: Unable to parse SVG file: assets/images/Snow1.svg
 ERROR: Line 2: Wrong svg attribute 'shape-rendering'
 ERROR: Line 2: Wrong svg attribute 'text-rendering'
 ERROR: Line 2: Wrong svg attribute 'image-rendering'
 ERROR: Line 2: Wrong svg attribute 'clip-rule'
 make[1]: *** [images] Error 1
 generated/simulator/gcc/Makefile:221: recipe for target 'images' failed
 make[1]: *** Waiting for unfinished jobs....
 make: *** [assets] Error 2
 simulator/gcc/Makefile:32: recipe for target 'assets' failed
 Failed
 Failed

 

Pictures downloaded from the Internet in SVG format TouchGFX works fine !

 

 

 

Best answer by Osman SOYKURT

@Panchev68 ,

Great to hear it works fine for you using Adobe Illustrator. As @unsigned_char_array says, we support a subset of SVG Tiny 1.2, and the list of elements that is supported is written in our documentation. So we recommend checking the svg (in a text editor), and see if it matches with what we support.

2 replies

Lead II
June 19, 2024

As described in TouchGFX documentation they don't support the full SVG standard (which is a huge standard). They support a subset of SVG Tiny 1.2 https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/svg#what-is-svg

The reason they don't support everything is that it can be CPU and RAM intensive to support all features and the hardware acceleration won't help accelerating much. Basically it can only write blocks/lines and do some blending.

But since they support the core of SVG you can often simplify an SVG image and it will render properly. Don't forget that the MCU won't render the SVG file directly. TouchGFX designer converts the SVG file into render instructions. The MCU won't see the file itself. So basically SVG is used as a form of compression. But it can still scale an image at runtime.
I use inkscape and have simplified SVG images before so TouchGFX can process them.

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
Panchev68Author
Senior
June 19, 2024

Thanks for the answer! Yes, this is normal. With Adobe Illustrator it works fine!!!

Osman SOYKURT
Osman SOYKURTBest answer
Technical Moderator
June 20, 2024

@Panchev68 ,

Great to hear it works fine for you using Adobe Illustrator. As @unsigned_char_array says, we support a subset of SVG Tiny 1.2, and the list of elements that is supported is written in our documentation. So we recommend checking the svg (in a text editor), and see if it matches with what we support.

Osman SOYKURTST Software Developer | TouchGFX