White Lines Created by Subpixel Exports

Many times when I or my developers export elements as jpgs or pngs there is a tiny 1px white line in the resulting image. I’m assuming this is due to the element having a dimension that is not a whole number. (For instance, an image might be 500.23px wide).

I think Figma should have a dropdown that asks the user how to handle the subpixel. Maybe there are several options:

  • Crop to the nearest whole number pixel dimension
  • Fill in any clipped content (if the exported element is a mask or clipped frame)

here’s an example screenshot of what i’m talkin about