Quick Tip: Creating Crisp, Pixel Perfect Circles in Photoshop

Quick Tip: Creating Crisp, Pixel Perfect Circles in Photoshop

Tutorial Details
  • Estimated Completion Time: 10 mins
  • Difficulty: Beginner
  • Topic: Photoshop

Achieving pixel perfection when designing UI elements can be simple thanks to Photoshop’s “snap to pixels” feature. Unfortunately, this feature is not available for the ellipse tool – creating crisp, pixel-perfect circles can therefore require additional attention to detail. I’m going to let you in on a little secret which will make “snap to pixels” available when creating circles..


Shape Layers and “Snap To Pixels”

With the increasing need for designs that scale, designing with shape layers in photoshop is becoming more and more important. Shape layers are based on vector paths, which makes changing their size, color, and shape quite simple. However, if you’re not careful, when you create shape layers they can easily fall off the pixel-grid, which makes for blurry, unprofessional design.

Achieving pixel-perfection with shape layers is quite easy, thanks to Photoshop’s “Snap to Pixels” feature for shape layers.

Unfortunately, as you may already know, the “snap to pixels” feature is not available for the ellipse tool.

If you plan on creating a shape layer for those beautiful circle avatars in your interface, you’ll have to examine the precision of your circle and whether it’s falling onto the pixel-grid correctly (requiring repetitive zooming and minuscule adjustments, which can become tiresome).

If only there were “snap to pixels” for circles, right? Well, there is a neat little workaround! You can use the “rounded rectangle tool” to draw circles by simply providing a radius that’s at least half the size of the circle you’re creating.


Step 1: Grab the Rounded Rectangle Tool

I know what you might be thinking, “A rectangle tool to create a circle?” I know it might sound strange, but trust me here.


Step 2: Check “Snap to Pixels”

Now ensure that the “snap to pixels” checkbox is highlighted (in CS6 this is the “Align Edges” checkbox, or “Snap Vector Tools and Transforms to Pixel Grid” via the preferences). This will make sure our rounded rectangle sticks to the pixel grid.


Step 3: Specify a (Large) Border Radius

Now enter a value for the border radius that is at least half the dimensions of the circle you want to draw. Or, instead of doing the math just enter “1000px”, as that’s the largest value Photoshop will accept (this means you can’t initially draw a circle larger than 2000 pixels, but you can always scale the result up if need be).


Step 4: Draw Your Crisp, Pixel-Perfect Circle

Hold down SHIFT and draw your circle! (Holding SHIFT will retain the rounded rectangle’s proportions).

If you create a border radius that’s too small, as your rounded rectangle grows its dimensions will eventually bypass the border radius, at which point you’ll have a rectangle with rounded edges.


That’s It!

See how easy that was? As mentioned before, the simple trick is to give the rounded rectangle a border radius at least half the size of its dimensions. Now you can easily create pixel-perfect, crisp, scalable circles in Photoshop!


Further Reading

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.facebook.com/ChakibTsouli Chakib Tsouli

    I don’t have that feature in any of the shapes .. Not even in Rectangles, all I have is “From Center” (Pictured below)

    I’m on CS6

    • http://www.smudg.in/ Jon Schuster

      “Snap to pixels” is now a global setting. You need to go to “Edit -> Preferences -> General”, and you should see “Snap Vector Tools and Transforms to Pixel Grid”. I think this would be the solution to your problem. ;)

      • ianyates

        That’s right Jon – or hit the “Align Edges” checkbox in the shape toolbar. I’ve updated the tutorial to make sure that’s clear – thanks for pointing it out Chakib!

      • jimniels
        Author

        Yes, thanks for the update for those using CS6

      • http://2xquisite.com/creative24 2x

        Thank

      • http://www.facebook.com/ChakibTsouli Chakib Tsouli

        Much thanks Jon !

      • http://www.smudg.in/ Jon Schuster

        No problem everyone, glad to be of help. Ian also posted some helpful advice in his reply above, a simple alternative to the advice I posted. :)

  • Twistereli

    Genius!

  • Adi Purdila

    Nice trick!

  • Rob

    Oh wow, thank you.

  • Pingback: Online Articles and Tutorials

  • http://www.danielhaim.com/ Daniel Haim

    CS6 please~~

  • http://www.facebook.com/shazbat4 Chris Becker

    Great tip! Thanks for sharing!

  • Ryan

    I’m hanging my head in shame right now. I’ve been fighting with sub-pixel sizing for ages now, and have always managed to overlook this option. Such a tremendous help. Can’t thank you enough.

    • http://www.robertbrodziak.com/ Robert | RBdsgn

      Same here..sometimes I’ve been using illustrator to get perfect shapes. That’s quick, but huge tip today.

  • Emyr Tabrizi

    You are awesome. That is all.

  • http://www.facebook.com/prigix Bogdan Prigorie

    or you could go to View > Show > Grid ( Ctrl/Cmd + ‘ ), and then all your new shapes will snap to pixel including circles

  • website design

    Great article to learn.Really helpful tips.thanks to share

  • http://www.dinhkhanh.dk/ Trần Đình Khánh

    Haha, nice tip, useful!

  • Pingback: Best of Tuts+ in November 2012 - Complete IT solutions, b2b,bussines 2 bussines,Оферти,Обяви,Работа, Коли под наем,Rent A Car ,Уеб Дизайн,nternet access, hosting, web design, network monitoring, Computers, Networks, wa

  • Pingback: Best of Tuts+ in November 2012 - Website Design Prices

  • Pingback: Best of Tuts+ in November 2012 | Graphfucker

  • David

    Very nice, such a simple and elegant solution.

  • Pingback: Circular Graphics – Showcase of 10 Awesome Websites | DesignFollow