Bulk-Export Script for Adobe Illustrator

A little script to automagically export your drawing to PNG, JPG, and SVG in many sizes.

Mitch Talmadge
Mitch Talmadge
2 min readNov 27, 2019

--

Note: This was never tested on a Mac; it was created with Windows. your mileage may vary.

I create a lot of logos in Illustrator. The most painful part is always at the end, when I have to export my work to the many formats that life demands. In the past, I would export each size I needed one at a time, or try to make use of the frustrating “Export for Screens” feature. Enough was enough.

The great thing about being an engineer is that if something isn’t exactly how you want it… you just make it exactly how you want it.

So I did. Here’s a script that takes a logo like this:

… and exports it into something like this:

More specifically, the resulting file structure looks like this:

Drawing.ai
JPG
Drawing-16px.jpg
Drawing-32px.jpg
Drawing-50px.jpg
Drawing-64px.jpg
Drawing-100px.jpg
Drawing-150px.jpg
Drawing-256px.jpg
Drawing-300px.jpg
Drawing-512px.jpg
Drawing-1024px.jpg
PNG
Drawing-16px.png
Drawing-32px.png
Drawing-50px.png
Drawing-64px.png
Drawing-100px.png
Drawing-150px.png
Drawing-256px.png
Drawing-300px.png
Drawing-512px.png
Drawing-1024px.png
SVG
Drawing.svg

Nice and organized! I picked the dimensions I use most, but you can of course edit the script and pick the ones you need.

Convinced? Here’s the script and instructions:

The Script

Save it as a jsx file, such as Illustrator_Drawing_Exporter.jsx.

Usage / Installation

There are three ways to use the script.

  1. With an Illustrator drawing already open and in-view, right click on the jsx file and open it with Illustrator. You will be prompted to begin exporting.
  2. Inside Illustrator, with the drawing in-view, go to File -> Scripts -> Other Script… and open the jsx file from here.
  3. To add the script to the File -> Scripts menu permanently, open the Illustrator install directory (you’ll have to find it yourself, it varies), and put the script inside Presets/en_US/Scripts . Now restart Illustrator and you can use the script at any time from the File -> Scripts menu.

Hope this is helpful, let me know if you have questions!

--

--

Mitch Talmadge
Mitch Talmadge

Facebook Production Engineer Intern • Aspiring Astronaut • Welder • Carpenter • Mechanic • Ham • Friend 😊