Hello! New BGA Developer here.
I am trying to insert an SVG into my file, and I have uploaded the SVG in the /img folder. I have verified that the file is there by using an SFTP client. However, whenever I try and use the image in the .tpl file, its not showing up in the game.
This is how I'm trying to load it in:
I have tried variations of the path, such as beginning with "./", without the initial forward slash, I've tried backslashes, and I just can't figure it out.
I even tried loading in an external image just cause I was curious if the <img> element works in .tpl files. Loading an external image worked (using image URL), but anything on the server won't load.
Am I missing something here?
I am trying to insert an SVG into my file, and I have uploaded the SVG in the /img folder. I have verified that the file is there by using an SFTP client. However, whenever I try and use the image in the .tpl file, its not showing up in the game.
This is how I'm trying to load it in:
Code: Select all
<img src="/img/board_components/filename.svg">
I even tried loading in an external image just cause I was curious if the <img> element works in .tpl files. Loading an external image worked (using image URL), but anything on the server won't load.
Am I missing something here?