Pixel-Align Selection

Pixel-Align Selection is a one-click correction command for selected artwork. It helps produce crisper pixel-perfect icons by adjusting selected SVG elements to the pixel grid.

This is not the same as Snap to Grid. Snap to Grid is an editing mode used while drawing or moving objects. Pixel-Align Selection analyzes the current selection once and applies a geometry correction.

Run the command with:

  • Element ‣ Align ‣ Pixel-Align Selection

  • the Pixel-Align button in the Control Bar

  • X when the editor canvas has focus

  • Shift+Alt+P

How It Works

For filled artwork, IconVectors tries to align visible bounds and important path coordinates to integer pixel positions.

For stroked artwork, IconVectors uses stroke-aware alignment so the visible stroke edges land cleanly on the pixel grid. For example, 1 px strokes are aligned around half-pixel centerlines, while 2 px strokes align around integer centerlines.

The command is undoable and leaves the adjusted artwork selected.

Best Uses

Pixel-Align Selection is especially useful for:

  • icons with slightly fractional coordinates

  • line icons that need crisp horizontal and vertical strokes

  • Element Library line elements after insertion or scaling

  • final cleanup before exporting or copying SVG code

Conservative Handling

IconVectors avoids damaging artwork that should not be aggressively snapped. Curves, complex paths, transformed objects, groups, and unsupported SVG structures are handled conservatively. When a safe correction is not possible, an object may be skipped or adjusted only in a minimal way.

Keyboard Scope

The single-key shortcut X works only when the editor canvas has focus. It does not run while typing in text fields, dialogs, the SVG Properties dialog, or the Source Code window.