White background added for SVG in img tag

Describe the bug:
Use svg with img tag in widget. It would get white background. Same SVG inside svg tag does not have that.

How do you cause this bug?

  • Use following in widget

		<img class="theimage" width="2048" height="2048"
			src="https://live.content.crayta.com/ui_image/dc3ebd8c-1525-46f8-b27a-436599674fe6_ui_image" alt=""></img>
  • Image gets white background, which is not present in the image itself and there is not seem to be a way to get rid of it

Your Crayta username: strowk

Game seen in (including “Hub” or “Editor for XYZ”): Editor of Spellfire

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): always

Time + date seen: 25-12-2021 20:30 CEST

Version number (found in Help tab in Settings): 0.e3.63.114111

Ah, I noticed interesting thing. Companion site does not actually serves SVG file. It somehow transformed it to PNG under the hood and this transformation apparently added white background, so the bug is somewhere in companion site or backing services.

I would expect either companion site to simply serve same SVG that was uploaded or respect transparency when transforming to PNG

Hey there @str !

Thank you for bringing this to our attention!
I have gone ahead and created a ticket for this issue so our internal team can investigate this further. :relaxed: