Export Issues - v25.1

The size of the exported image does not match the size of the artboard/frame.

Demo File
Sketch v25.1 - Export Size Issue.sketch (3.7 KB)

Position of your square is not on full pixel.
Your X/Y position is 0.06. Should be 0 or 1.

2 Likes

@MrBostjanV
Thanks! I hadn’t noticed this. Still, I think this is a bug, since the expected size is defined by the frame, even if the layer size doesn’t match.

1 Like

Hi Paulius. The export is defined by the Frame-only if the Clip content checkbox is ticked, but in your case it was not checked. Therefore, the content of the Frame is effectively sticking outside of the Frame and will be considered as part of the export.
CleanShot 2025-06-09 at 09.55.31

@Brett Thank you for the explanation.
I’m not sure if others feel the same, but the export logic might benefit from some refinement when handling decimal values. To prevent potential inaccuracies, it could make sense not to increase the export size if the content is smaller than 0.1 pixels. For example, if the content measures 100.09px, the exported size would remain 100px.

@Paulius That might work in this specific case here, but then for content that has a 1px Center Border, this would then exclude part of the border at Export, which would be an undesirable outcome.