I have created a badge inside Figma, and it consists of two elements. The background element is positioned at x:0, y:0, and the foreground element is centrally positioned in respect to the foreground element. Both elements are using integer values for positioning.
When I go to the export menu I get the following error messages:
Origin not aligned to pixels.
Origin snapped to (-5, -16).
Dimensions may expand by a pixel.
I get those messages regardless whether I'm exporting as PNG or SVG.
When I export the work as a PNG everything from Figma gets preserved on that PNG image, but the problem starts s when I export the work as an SVG. When I do export it as an SVG file and I open it in Inkscape or I use it as a component on the website, it gets messed up. The gradient from the badge does not get preserved, the edges become rough, and it doesn’t look like an SVG element but rather as a low quality jpeg file.
Then I have created a completely new file in Figma and draw a triangle shape inside. Then without changing anything else, I went to the export page and I was seeing the same three error messages as in the previous file.
I am using Figma for the first time, and I’ve been looking online for a solution, but I couldn't find anything that would help me.
Does anyone know what is causing those SVG exported files to get corrupted? And what can I do about it?
Here’s how it looks inside Figma and also when exported as an PNG

And this is how it looks when I export it as an SVG
