All Articles Photoshop
Photoshop Tip: Create Crispy Graphics With Snapping
Toby Pitman on Fri, April 6th 0 comments
Toby Pitman smooths out the ways to help you avoid fuzzy and jagged-looking graphics in Photoshop CS5. Included is a full explanation of anti-aliasing and resolution with practical examples.

Creating crisp graphics in Photoshop requires pixel-perfect precision. It has the ability to operate at the sub pixel level when drawing shapes. However, this can lead to antialiasing problems and fuzzy looking graphics!

What is Anti-aliasing?

Anti-aliasing is used in the digital image domain as a way of smoothing curved shapes and edges that aren't perfectly vertical or horizontal. In the olden days (70s and 80s) resolution wasn't what is is today. There was a time when a pixel was either on or off or black and white. This made for very jagged-looking graphics on early computers.

As color resolution progressed and pixels gained the ability to become transparent (50% on or any other value) anti-aliasing solved the problem of jagged edges by adding higher color gradient steps or semi-transparent pixels to the image that went some way towards filling in the holes of the jagged edge, giving the illusion that the edge was now smooth.

example of low-res image

In Photoshop anti-aliasing is a double-edged sword. Sure we have nice smooth lines but because Photoshop can operate at the sub-pixel level (anywhere inside a pixel) this can lead to some unwanted artifacts when drawing shapes.

Here's what I mean: I'm zoomed in at 1600% to a Photoshop document. You can see the pixels as a grid. If I grab my Rectangle shape tool and draw you can see I can start and finish the shape anywhere inside a pixel. 

Zoomed in at 1600%

When I release you can see that Photoshop is trying to interpolate those sub-pixel values as shades of white (or grey). The less I select inside a pixel the darker it gets.

interpoloating subpixel values

When I come to stoke a shape that is anti-aliased the result is even more confused as it tries to compensate for the anti-aliasing.

The result when adding a stroke

This can lead to your graphics appearing blurred and when making graphics for the web it's all about crisp lines. The best way to prevent this is to snap your drawing tools to a grid. This will ensure your tool selects 100% of the pixel every time and eliminate any unwanted anti-aliasing!

Set Up Your Grid

Go to Preferences > Grids, Guides and Slices.

Grids preferences

In the Grid box make sure you're set to Pixels. I've set my value to 100px with a Subdivision of 1. 

100px and subdivision of 1

This will give me a grid of 100px in my document. Press Command - '˜ to show you the grid in your document.

Grid displayed

You can also set up a your subdivisions to give you a more refined grid.

A more refined grid

A 100px grid with 10 subdivisions gives me a grid line every 10px.

A grid line every 10px

Snapping Your Shapes

To enable snapping to press Shift-Command + '˜ You'll now find that your shape tools will snap to the grid giving you sharp lines every time.

Snapping to the grid

This works very well for Rounded Rectangle and Circles, too. Your Layer Styles should retain crispy lines and smooth edges for a very professional look! You'll also find that any guides you drag out will also snap to the grid, which is handy! It also helps when creating shapes of consistent sizes.

Related Videos
Comments (0)

You must be logged in to comment.

Drawing Objects In Photoshop
Photoshop CS5 402
Dream It. Do It.
Do you want to learn Drawing Objects In Photoshop?
Yes, I want to learn!
No Thanks, I just want to read the article.
Course Advisor
Don't Know Where To Start?
Ask A Course Advisor
Ask Us!
Copy the link below and paste it into an email, forum, or Facebook to share this with your friends.
Make money when you share our links
Become a Affiliate!
The current affiliate rate is: 50%
Classes Start Next Week!
Live 8-week Online Certification Classes for: