Illustrator : automatically export multiple different-sized images from project

adobe illustratoradobe-cs5automationosx-mountain-lion

I have an .ai project open in Illustrator, that I need to export to multiple PNGs with different resolutions.

Is there a way to write a script or automate these exports in some way?

Best Answer

You can create an Action to do this. These instructions are for CS5/Win:

  1. Show the Actions panel: Window menu>Actions.
  2. Click the Create New Action at the bottom of the panel and name your action, ex. 'Save PNGs'.
  3. Click the Begin Recording button.
  4. Export your PNGs with the names and resolutions you want, ex. File>Export, choose a name and resolution, etc.
  5. Click the Stop Playing/Recording button when you're done.

You can now open any another file and run the action by clicking the play button. The limitation is the PNGs will save with the same names in the same folder as when you recorded the macro. If you want more control or want to run the action on multiple files you can look at the options in Batch Mode (click the tiny menu button at the top right of the panel, choose Batch...).

Related Question