Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have a bunch of art boards that are sized to 88x88 pixels. When I export my art boards, all the images are sized as 88x88, where transparent pixels are surround my actual art work.

Is there a way to export the images and have it not include the surrounding box?

For example, assume all my art boards are 88x88 pixels. In one of them, I have a 40x40 plus sign. In another I have a 40x50 star. When I currently export my images, I get two images that are 88x88 pixels. What I want in one that is 40x40, and another that is 40x50.

Note: I still want to design the icons in a 88x88 grid. Is there a way to easily get these results without resorting to resizing my storyboard to "hug" their artwork?

I am exporting to PNG images.

Update: When I attempt to uncheck Use Artboards as per this suggestion, it combines all of my artwork into a single file. This is not what I want. I want 2 separate files in the example above.

I would prefer a solution which doesn't require a script.

All of my artwork is located on a single layer.

share|improve this question

marked as duplicate by Scott adobe-illustrator Jul 22 '15 at 16:01

This question was marked as an exact duplicate of an existing question.

EDIT: If you want to do this without scripts, you could create secondary artboard for each object. That is, design each shape on it's own 88x88 artboard, then create a new artboard on top of the original that fits the exact shape of the object. This will export two images for each object, but one of them will be fit to the shape (the other will be the 88x88 image with the transparent border).

Original Answer: Do you have access to Photoshop? If so, you could create a new action that "Trim"s each exported image to the exact size of the shape in the PNG Illustrator creates (assuming the surrounding area is transparent/white) and run it on all images Illustrator exports.

share|improve this answer

The computer can not know magically what you want. We can help it understand by putting each artwork in a different layer/group. Then hide the group you dont want just before export.

share|improve this answer

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