Collection of Illustrator scripts to automatically export layers or artboards to PNGs of different densities for different devices (iOS Retina, Android, etc).

How to install

If you place the script in the Adobe Illustrator/Presets/Scripts folder, the script will appear in the File > Scripts submenu.

If you place the script in another location on the hard disk, you can run the script in Illustrator by choosing File > Scripts > Browse.

How to use Mobile > General

The general scripts asks for 3 values in sequence:

The folder where you want to save the files. The scale factor 1 = 100% = 160dpi = mdpi, 2 = 200% = 320dpi = retina display (these values are only valid if you designed for 160dpi aka mdpi). A suffix if you want to use one, e.g., @2x for retina display in iOS. You can also leave it empty if you don’t want a suffix or if you are exporting to android or iOS non-retina.

How to use Mobile > iOS

Choose the folder where you want to save the files. Optionally you can add a sufix to the files. That’s it, all files will be saved with the appropriate names.

How to use Mobile > Android

Choose the folder where you want to save the files. That’s it, all files will be saved on the appropriate folders.

Note on exporting layers:

Locked layers visibility will be ignored and they will not be exported.

This can be used to keep global layers visibility, like a background, or guide layers from being exported.

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/herkulano/illustrator-scripts-for-mobile

Comments

Please enable JavaScript to view the comments powered by Disqus.

Disqus