2024-06-19 04:04 AM - edited 2024-06-19 04:06 AM
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 !
Solved! Go to Solution.
2024-06-20 04:21 AM
@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.
2024-06-19 06:48 AM - edited 2024-06-19 06:49 AM
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.
2024-06-19 06:51 AM
Thanks for the answer! Yes, this is normal. With Adobe Illustrator it works fine!!!
2024-06-20 04:21 AM
@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.