Illustrator : automatically export multiple different-sized images from project
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?
Solution 1:
You can create an Action to do this. These instructions are for CS5/Win:
- Show the Actions panel: Window menu>Actions.
- Click the Create New Action at the bottom of the panel and name your action, ex. 'Save PNGs'.
- Click the Begin Recording button.
- Export your PNGs with the names and resolutions you want, ex. File>Export, choose a name and resolution, etc.
- 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...).