13

Does the Sketch app provide something like a "resize artboard to content" command? If yes, where can I find it?

4
  • the question looks like offtopic, but anyway what the version on the Sketch do you use? in last versions there is a command for fitting the artboard to artwork
    – Ilan
    May 3, 2014 at 9:42
  • Where should I have posted the question then? ^^
    – adius
    May 3, 2014 at 18:59
  • Cool, where can I find the command. I'm using the latest version (3.0.1)
    – adius
    May 3, 2014 at 19:00
  • Have no access right now, try "Trim Transparent Pixels"
    – Ilan
    May 3, 2014 at 20:01

6 Answers 6

11

This question has not been accepted and I think what OP were looking for is resize the artboard to fit to the content with it, and thus it got no answer so far.

While I don't know when this feature had been available, but in Sketch 3.7, you can achieve it exactly. Just select the artboard and on the Inspector, click on the Resize to Fit. Sketch automatically resize the artboard to fit to the content.

enter image description here

1
  • For some reason, the 'Resize to Fit' button (pictured above, in the properties pane when the Artboard tool is active) is always greyed out for me, but I can instead do Layer > Resize Artboard to Fit
    – ptim
    Apr 13, 2017 at 2:20
5
  1. Select the content around which you want to make an artboard.
  2. Click on the artboard button (or) go to Insert → Artboard.
  3. On the right you will see various artboard sizes. The top one will be called "around selection".
1
  • 1
    Welcome to GraphicDesign and thanks for the contribution! This question is not asking how to create an artboard, but rather how to resize one Feb 4, 2015 at 4:51
3

FYI, my suggestion is an extension to Jagrat Jagz Desai's method. It's not fully automated but does save you the step of checking the size of your content in order to create an artboard at that exact size.

  1. in the Layers List on screen left, select the artboard that corresponds to your content
  2. delete artboard and hit 'Keep Layers' button when prompted
  3. highlight content, then insert new artboard (A)
  4. select 'Around Selection' option in the Inspector on screen right
1
  • Unfortunately, this really is the best way to do it. Jun 25, 2015 at 16:39
2

Use 'Edit → Scale' command to resize artboards.

2
  • Have you tried it? in Sketch 3. Select artboard -> Edit -> Scale to resize
    – codebendr
    Dec 31, 2014 at 10:49
  • Thanks. This one worked for me when I want to resize/scale down the size of an existing artboard.
    – Mingming
    May 22, 2015 at 6:57
1

Click the art-board layer on the left, there in the right panel you will see the size of an art-board, just readjust according to your need.

1
  • Hi Shrés, welcome to GDSE and thanks for your answer. If you have any questions, please see the help center or ping one of us in the Graphic Design Chat once your reputation is sufficient (20). Keep contributing and enjoy the site!
    – Vincent
    Jul 22, 2015 at 9:16
1

Having not previously found a good solution to this problem, I went and built a plugin to do just that.

http://zhifengkoh.github.io/resize_artboard/

Summary of features

  • Hitting Ctrl+Shift+Z resizes the parent artboard of your currently selected layer. You can also resize one or more selected artboards (or the parent artboards of one or more selected child layers) all at once.
  • Resize all the artboards on the current page with Cmd+Ctrl+Shift+Z. However, if you have a very large Sketch file with tons of artboards on the page, I'm not sure what kind of performance impact that'll have.
  • The relative positioning of all layers on the artboard is always preserved
  • The positioning of the artboard's layers with respect to the artboard's top-left corner will only consider visible layers. That means if a hidden layer is sticking out to the left of the visible layers, when you resize the artboard it will stick out the left side of the artboard's X axis.
  • The artboard itself is never moved relative to other artboards on the page

Let me know (preferably on Github) if you have any comments or feedback!

Not the answer you're looking for? Browse other questions tagged or ask your own question.