When exporting a frame to PNG, Figma is increasing the image size by 1 pixel only on the horizontal axis, which is a problem when I need artwork with exact dimensions.


When exporting a frame to PNG, Figma is increasing the image size by 1 pixel only on the horizontal axis, which is a problem when I need artwork with exact dimensions.
You probably have subpixels in position coordinates of your frame. You need to remove numbers after dot
Hey
This definitely looks like a known bug with exports adding extra pixels, and our engineering team is aware of it.
The issue occurs when the X or Y position of your frame is set to a decimal value instead of an integer (a whole number).
For example, if the Y value is 1609.95, it can cause this behavior.
When a layer is set to a sub-pixel value, it can cause the export to either be cropped by a pixel or display an extra white line of pixels.
To prevent this, ensure that the X and Y values are whole numbers. For example, 1609.95 should be adjusted to 1609.
You can manually update the coordinates in the Properties Panel, or use the Round-to Pixel function from the menu. If your design contains nested frames, all of them must also have whole-number values for the X and Y positions.
Here’s how to use the Round-to-pixel function:
I'd also suggest also activating Snap to Pixel Grid to see if that helps. You can also enable it from the main menu - Quick actions:
Our engineering are aware of this issue however I want to be transparent with you that this will not have an immediate resolution as we need more time to investigate this.
While I can't promise a quick fix, please know that our engineering team is aware of the issue and will work towards finding a solution in the future.
We appreciate your understanding and patience in this matter, thank you!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.