Pixel Cleanup

Turn all of those pesky partial pixels into the real deal.

v0.5.0 is compatible with Sketch 3.4.0

Pixel Cleanup For Sketch

One of the best things about Sketch is having your designs be pixel perfect. However, there are a variety of things that can end up with pesky portion-of-a-pixel positioning.

This beta plugin will round all of your pixels to whole pixels.

It works well for the following:

  1. Lines
  2. Rectangles
  3. Circles
  4. Groups
  5. Nested groups

Working but not extensively tested:

  1. Symbols
  2. Complex paths

Untested:

  1. Images
  2. Extensive edge cases such as scaling + rotation.
  3. Compound shapes
  4. Masks
  5. Anything not listed above

It may work with others, but I haven't tested it fully.

Instructions

  1. Select 1 or more layers or groups
  2. Press the keyboard shortcutoption-command-p
  3. Bask in the whole pixel glory.

Things To Know

• If a shape is in a group, it is possible that both the shape, and the group itself may have been positioned\shaped at partial pixels.

If you do select a shape in a group and run the command, it will adjust all parent groups and the shape, but it will not not automatically adjust the other sibling shapes. It's easy enough to add that as a feature, but I wanted to avoid unintended consequences. Sometimes you really do mean to have partial pixel placement.

• If you select a group and run the command this will clean up the group AND all of its children, and all sub groups, and all of THEIR children

Note: In Sketch, the inspector doesn't instantly update refresh when these properties are changed, so though things will move correctly, you have to deselect/reselect to see the change in the inspector. I didn't auto-deselect so you wouldn't loose your initial selection.

All feedback and issues are welcome! Happy pixel hunting!

Obligitory Warning

This is a beta. Use at your own risk. It's generally good practice anyway but use version control before trying this out on an important document


Join the discussion

Download v0.5.0
Usage Activity
400100

Avg. user activity in the last 30 days

Stats
  • 184 downloads all–time
  • 2 downloads this week
  • 8 downloads this month
About this plugin

stackdevelopment published this plugin 3y ago.

v0.5.0 is the latest version.

Native updates are supported within Sketch.app.