So, I have my layers and when I go to File > Add Slices For Selection to slice the images and then export.

They are coming out with the wrong size, if you take the star, it has a width of 40px on the sheet but when I export it the total width of the image is 60px or so.

Is there a away to make the images export and stay the size I set on the canvas?

enter image description here

1 Answer 1


I'm not sure how your slices are set up, but have you tried Trim transparent pixels in the Export panel? If your slice has padding around the actual element you want to export, this should automatically remove it for you.

SketchApp Export panel

  • That does it, it took some time to get use to working with Sketch. Thank you!
    – Chaos67731
    Commented Dec 4, 2013 at 17:02
  • Hey, don't forget to click the tick to mark this answer as correct if it helped you :) that way people who suffer similar problems in the future will know that this fix works :)
    – Jenna
    Commented Dec 4, 2013 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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