How to export gif files in Figma wiithout any white border?

How to export gif files in Figma wiithout any white border?

Hi there! As a workaround, please make sure to set the heigh, width, height, and/or X and Y positions are on full integer values, and the numbers have to be closed, both in the image and the frame.

You can have more context here:

Why it happens only exporting as gif file format but not for JSON?