Make (Anchor Points) Pixel Perfect /Snap points to grid
I appreciate the Make Pixel Perfect command... when it works. It does what one would expect when applied to a simple ellipse, rectangle, or etc, but for many complex shapes it simply fails with "Selected art cannot be made pixel perfect."
When I attempt Make Pixel Perfect on a more complex shape, I'm looking for one of two things:
- I want to round the x, y, width and height of the whole path to the nearest whole-pixel values, or
- I want to round the x and y of every anchor point along the path to the nearest whole-pixel values.
As it is, I've begun copying paths to Sketch to use its Round Pixel feature, then copying the results back to Illustrator. Sketch's behavior isn't quite ideal either, since it always rounds all points to the nearest whole pixel and that can result in unwanted distortions.
There's probably two requests here: allow Make Pixel Perfect to round any path to the nearest whole pixels (as a path), and add a secondary command to do the same to every point along the path.
-
Oh yes.
There is definitely a need to be able to do it form the box.Luckily, we have some scripts written to help us with 'nailing' points and objects to the grid.
1. Round Coordinates by Sergey Osokin: https://github.com/creold/illustrator-scripts/blob/master/md/Item.md#roundcoordinates
Respects the grid settings, the Use Preview Bounds options, the reference point.2. jooSnapToDocumentGrid by joojaa: https://graphicdesign.stackexchange.com/questions/64365/script-to-automatically-snap-all-points-to-grid-in-adobe-illustrator
I have modified it to respect two points paths, groups, compound paths, point text objects, and also handles, guides, clips as customizable options.
I attach it here as a TXT file, which you’d have to rename back to JSX again after downloading, since UV block uploading scripts. -
Nicolas Gwinner commented
I have to use the magnetism of the grid to perfectly fit my points.