Advertisement


How can I alter a square image into a circular one in Sketch?


Question

I want to take a rectangular image in Sketch and give it a circle/radius style.

For example:

enter image description here

2014/07/06
1
15
7/6/2014 8:03:00 PM

Accepted Answer

That's actually quite easy. There are two ways to do it:

1. Use a Mask

Best way IMHO, as it gives you more flexibility / editing options.

  1. Import your image:

    Import

  2. Draw a circle that will mask your image:

    Mask

  3. Move the circle behind the bitmap using the Backward toolbar icon:

    Back

  4. Use the circle to mask the bitmap, by selecting it and choosing Layer › Use as Mask from the menu:

    Mask

  5. Ta-da!

    Done

  6. As an extra step, you can group your bitmap and the circle mask, to stop the circle from masking other shapes:

    Group

  7. To add a border: add another circle shape placed above the masked image.


2. Use a pattern fill

  1. Draw the circle where you want your image to appear:

    Circle

  2. Select Fill › Pattern Fill in the inspector:

    Pattern

  3. Click Choose Image… and select your bitmap:

    Bitmap

  4. Set the fill options to Fill in the drop down:

    Fill

  5. Add a border to the circle as you normally would.

  6. Ta-da!

Hope it helps!

2017/06/15
22
6/15/2017 8:09:00 PM