255
Views
4
Comments
Problem when use inline SVG wiget
Question
Application Type
Reactive

Following the guide I can create a SVG inline, publish and get an image as expect.

But when I import my SVG inline code and publish, It can't display on the screen.

if I open directly my svg inline code by chrome, It is displayed as normal.

My svg code have a large size  :1.81MB

does the problem is my svg code is to large, and Outsystems can not handle it?

UserImage.jpg
Nguyen Thanh Luan

Extra Infor:

When I test by IE version 1909, the svg image was displayed as expect.

It look like the chorme browser doesn't support my svg file and may be it not relate to Outsystems.

2024-01-18 12-42-28
Bogdan Boglea

Hey,


First of all do you see any errors in the developers console (pressing F12)? Also, if you could provide an example with the SVG code me or somebody else could also check this problem.


Regards,
Bogdan

UserImage.jpg
Nguyen Thanh Luan

@Bogdan Boglea 

Thank for your confirmation,

I have do some tests and find out:

1. if I use image wiget instead of inline svg wiget (import directly svg image to Images folder in service studio) the svg image is displayed at expect.

2.if I resize my svg image from 2MB to 141KB and use inline svg wiget => display at normal.
I don't know why but it seems to be the cause is not come from the svg code.

Sorry I can't share my svg code because it relate to security policy of my project.

Furthermore, there have no error been occurred in developer console.

2020-09-01 10-42-42
Stefano Valente

If its still a problem you could create a new module and put in the svg code there. 

Then we can have a look.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.