Pixel-Perfect Photoshop Shapes in Web Design

Posted on Tuesday 17th Aug 2010 by James Kemp 9 Comments

When making a web design prototype (or any other graphic) in Photoshop, I always like like everything to be pixel-perfect – this means the edge of my vector shapes will be perfectly straight.

The great thing about using vector shapes in Photoshop, over raster shapes, is that they are infinitely re-sizable without “pixelation”; this is just how Adobe Illustrator works, and that is what makes Illustrator a great tool for making logos.

The Problem

I have found that when you create a shape using Photoshop’s shape tool, the lines can often end up fuzzy – this is because they are not lining up to the documents pixel grid, and Photoshop automatically anti-aliases them.

The Solution

The solution to this is very easy, I will guide you through it step-by-step:

  1. Make a new Photoshop document.
  2. Click the shape tool (this can be a rectangle, a rounded rectangle, etc) – See Image 1 below.
  3. To demonstrate the issue, zoom in further than 100% (Photoshop automatically snaps to pixel when you are zoomed at 100%, however, this is not always accurate enough), now drag out your shape – unless you miraculously dragged it pixel-perfect, your shape will more than likely have fuzzy edges and can hinder your web design.
  4. Once you have your shape tool selected, click the more options arrow in the toolbar – See Image 2 below.
  5. You will notice that towards the bottom of this box, there is a check box for Snap to Pixel. Check this.
  6. Now when you draw a shape at any level of zoom, it will automatically snap to the nearest pixel and give you perfect lines every time!

Conclusion

I hope this quick tip will help some of you, as it will now help me for many years to come, I’m sure!

Image 1 - Select the shape you would like to use

Image 2 - Select more options, then check Snap to Pixels

James Kemp

Nothing is known about James Kemp at this time.
This entry was posted in Tips For Web Designers and tagged , . Bookmark the permalink.

9 Responses to Pixel-Perfect Photoshop Shapes in Web Design

  1. Harry says:
    September 17, 2010 at 4:13 pm

    Thanks for this… such a simple thing, but so annoying when you don’t know about it.

  2. Martin says:
    October 15, 2010 at 11:29 am

    Thank you! Can’t believe I’ve never noticed that check box! How many times I’ve cleaned by edges after using the shape tool…

    You may have saved my life.

  3. James Kemp says:
    October 15, 2010 at 2:04 pm

    Not a problem!

  4. Mary J. says:
    February 3, 2011 at 3:27 am

    Ahhhh, thank you. This had been driving me crazy for YEARS.

  5. Crystal Martin says:
    March 20, 2011 at 2:16 pm

    I don’t have the “snap to pixels” option in my Photoshop CS3. Is there another option.

  6. boo says:
    August 10, 2011 at 6:19 am

    wow…. thank you very much….

  7. pixibuex says:
    August 16, 2011 at 9:56 am

    God! This is amazing. Those blurry edges were driving me crazy!

  8. vaasu says:
    September 19, 2011 at 9:04 am

    Thanks, But its get fuzzy border, after resizing the shape. Any solutions?

  9. Joe G says:
    December 18, 2011 at 4:25 pm

    Is there a way to make pixel perfect lines? I often have problems with blurry lines in PS, especially vertical ones…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>