Page 1 of 1
***SOLVED***svg image
Posted: Sun Feb 13, 2022 5:50 pm
by mixextra
Hi,
is the expected behavior when svg images (logo, etc.) do not display in the project but only when displayed in the browser?
Thank you for the info.
Re: svg image
Posted: Sun Feb 13, 2022 5:57 pm
by Pablo
Most SVG image should work, but some complex images may not be rendered for performance reason.
Re: svg image
Posted: Mon Feb 14, 2022 11:26 am
by zinc
mixextra wrote: Sun Feb 13, 2022 5:50 pm
Hi,
is the expected behavior when svg images (logo, etc.) do not display in the project but only when displayed in the browser?
Thank you for the info.
This is due to its large file. I had the same issues and realized that it was 50000 x 25000. Ensure your SVG is the correct size and it will show in WWB during design time.
Re: svg image
Posted: Mon Feb 14, 2022 3:29 pm
by mixextra
These are not big pictures, take a look and try:
http://mixextra.sk/logo.svg
http://mixextra.sk/logo1.svg
http://mixextra.sk/logo.zip
they do not appear in the application, do I need to set anything in WWB?
Re: svg image
Posted: Mon Feb 14, 2022 3:41 pm
by Pablo
It looks like the SVG file uses functionality that is not supported. It may be the patterns.
Unfortunately, Windows does not natively support SVG.
So, WWB uses a third party library to load SVG, I have no control over which SVG functionality is supported.
But I also have tried to load the SVG in Affinity Designer and that did not work either.
Re: svg image
Posted: Mon Feb 14, 2022 3:55 pm
by zinc
I am even unable to open them in Affinity Designer (Similar to illustrator).
Check your export settings - As Pablo says something in the encoding does not let some applications to interpret /display it.
If you have the illustrator file, post it and let me have a look.
Re: svg image
Posted: Tue Feb 15, 2022 2:25 pm
by mixextra
The original image was exported to svg with AAAlogo.
Finally I made a new design in Corel Draw and after adjusting the export parameters to svg ... it already looks fine.
http://mixextra.sk/Logo_CDR_SVG.svg
http://mixextra.sk/Logo_CDR_SVG.zip
Re: svg image
Posted: Wed Feb 16, 2022 8:57 am
by zinc
As I had suspected the issue is with the size of the SVG.....
When I open your SVG in Affinity Designer it tells me that the width of the logo/document is:
15540.8 px by 4061 px
That is the reason why it does not show up in WWB. I changed the size to something more reasonable and it is showing in design time.