2

I often need to export my assets in multiple sizes. The '1x' and '2x' option in Sketch simply isn't enough, as I sometimes need the same icon in let's say 200x200, 300x300 and 400x400 while the original artboard might be 800x800.

Is there a way to export the contents of an artboard at a certain size? Scaling isn't always easy in Sketch as things like text etc don't scale.

2

You can use fractions in export dialog.

fractions in export

And since you can export slices (which are like bounding boxes of sorts, for export purposes), which size you can define as you want, it's easy to define a slice - based on your example - on 1000x1000 dimensions, and export it as 0.2x, 0.3x, 0.4x and 0.8x.

creating slices

  • Darn, now I'll need basic math skills to do my job! Thanks for the very clear explanation :) – Summer Feb 2 '17 at 14:37
2

You can also use notation with h or w. So if you want it 400 by 400, and it's square. You can put 400w in the size field of export.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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