Mobile app version of vmapp.org
Login or Join
Ogunnowo857

: How to snap to every half-pixel (0,5) in illustrator? I am trying to optimise a vector graphic so it does align well to pixels but if I try to align-to-pixel grid I loose too much from the

@Ogunnowo857

Posted in: #AdobeIllustrator #PixelArt

I am trying to optimise a vector graphic so it does align well to pixels but if I try to align-to-pixel grid I loose too much from the quality and I still need to be able to snap with 0.5px increments.

How can I obtain this behaviour? … without loosing the pixel view feature.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ogunnowo857

2 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

You can set up a a Grid in the Preferences to have a grid line every .5pt (same as px in AI). Then turn on Snap to Grid in the View Menu. This will allow you to snap to .5px increments. However, it is not going to matter.

While you can place an object at a 1/2 pixel (or 1/2pt in Illustrator), upon output everything is adjusted (anti-aliased) to full pixels. This can be seen by turning on Pixel Preview in the View menu.

For example... a 1/2 pixel square:



And with Pixel Preview:



You can see the half pixels are converted to full pixels upon output. Illustrator won't output artwork at half pixels.

Save that half pixel image... open in Photoshop and enlarge 3200%....



All half pixels are going to be anti-aliased and treated this way upon output. Any effort you make to construct .5 pixel restrictions is going to be nullified by any output of the file since a single pixel is the smallest screen element.

But you probably are saying to yourself, "I only need some edges to sit on half a pixel. Not a half pixel image."

Well, edges will be anti-aliased to the nearest pixel as well...



(Bottom edge rests on a half pixel. Black edge is a half pixel wide).

And Pixel Preview....



Oh, but let's turn off "Anti-Alias Artwork" in Illustrator preferences and look at Pixel Preview then....



The answer is really not to work at .5 pixels, but to alter the artwork so it looks correct at full pixels.

10% popularity Vote Up Vote Down


 

@Tiffany317

Vectors might change the rules a bit in some specific cases, but generally speaking, there is no 0.5px increment. (Unless we're talking CSS px on retina devices, but that's a whole different topic)

A pixel is the smallest unit on a monitor.



In the above image, each set of one red, one green, and one blue light is a single pixel. The device tells the screen how to balance the brightness of those three colors one set (pixel) at a time in order for your eyes to percieve a given color. Your monitor doesn't consider units any smaller than that.



There are some borderline exceptions. Such as a border of a vector shape not perfectly aligning with pixels, so some sort of anti-aliasing occurs. Still not really any half pixel business going on by the time information gets to your monitor though. Also, with ultra HD devices such as modern smart phones, a px in CSS is no longer equal to one pixel. There's still no half a pixel, but on retina (ultra HD) devices, for conversation's sake, you can consider a pixel to be one a half a px is the pixel ratio is 2:1.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme