Just pushed out an update to the Adobe Illustrator MultiExporter script that lets you specify if you want to export PNGs and JPGs at a different scale factor so that you can generate versions of the images at double resolution for iPhone retina displays.
The option is set in the “Scaling” field in MultiExporter dialog box: Leave it at “100%” for normal exports, set it to “200%” for double-resolution exports. You’ll probably also want to set a prefix or suffix or the file name, too, so that you can keep the files separated from the normal resolution ones.
I don’t think the update should have broken anything else, but let me know if you run into problems. (And to read more about how the script works, here’s more information about it.)
The script is available here — MultiExporter.jsx — and also in my Illustrator Scripts repository on github.
Excellent script. Is there any hope for svg support?
I was searching the script that can save illustrator layers to separate .svg files with no success. I will try to integrate .svg exportation to this script.
Great script idea, but I don’t see options for setting JPEG quality or actual image resolution (scaling is not exactly the same thing). Any chance that could be added to the script? The script seems to assume all JPGs and PDFs are for web (low res) use – what about 300 ppi, etc.?
Hmm, according to the Adobe script reference for CS 5, I don’t see a reference to actual resolution for script commands for exporting PNG or JPGs, just a scaling percentage. It does look like there is an actual resolution (dpi) that can be set when scripting export to Photoshop. That would be kludgy, since getting a high res JPG would be a two step process then.
Is there any way to choose the PDF preset for the export?
Pingback: MBTA + Boston Bikes Visualization | Bostonography
Have given this a try but it doesn’t seem to work. No matter what settings I use in the dialog box, at the bottom it always says something like “will export 0 of 9 artboards” or “will export 0 of 4 files” and does nothing. Could it be that this script is not compatible with CS6?
trying to run script with Illust CS3 – I get
: error 21 – Undefined is not an object.
the script input box doesn’t even load.
In CS5 – I get the input box, but always a line that says:
“Will export 0 of (however many artboards)”
So – It refuses to generate the files.
Anyone cast a light on this?
Hi Matthew, thank you for this awesome tool, especially useful since the loss of the export css layers in ai cs6 🙂
I second Vladimir’s comment here on the question of SVG 🙂
Excellent. Helped a lot.
Only the amount of images exported in the dialog box was incorrect (100 layers 3 artboard leads to 300 instead of the 10000 images the dialog box mentions)
I’ve been trying to get this to work for a while with no success. I have a single Artboard, with a series of Layers under it to create an animated pointer arrow. Here’s a screenshot:
https://dl.dropboxusercontent.com/u/430620/Arrows_Artboard.png
When I use the script however, all I ever get is a single file representing the whole series of steps. Do ALL of those art pieces need to be on individual Artboards? Thanks!
This is super useful !! Thanks !
Is there a way to modify the script, so that if I enter ###_ in the prefix, it sets the artboard number in the name ?
This would output names like 001_artboardname.png, 002_artboardname.png, etc…
Wow – what an awesome tool – especially now with iOS 7’s new simplistic icon look. I’m eschewing Photoshop in favor of Illy more and more. This script is a lifesaver!! Thank you!!
Given that you added an @2x field – guess you work on developer projects. If so, you may be interested in an Applescript app I wrote a few years ago for drag and drop downsampling of @2x files via Photoshop. If so, shoot me an email and I’ll send it to you. Just wanted to give back a little – MultiExporter will become an oft-used tool for me.
BTW – nice touch with the persistent defaults on a layer!
For higher JPG quality add this line
options.qualitySetting = 85;
Under the section that defines the ExportOptionsJPEG object.