Illustrator Script for exporting artboards to Android, iOS and Universal Windows Platform PNG24 assets
To include the file ExportMobileAssets.jsx
in Illustrator scripts, place it into folder:
- Windows:
C:\Program Files\Adobe\Adobe Illustrator\Presets\en_US\Scripts
- Mac:
/Applications/Adobe Illustrator/Presets.localized/en_US/Scripts
The location is for reference only, and must be changed according to your own versions of Illustrator.
- Open the Illustrator file that includes the artboards you want to export
- Select this script from the Illustrator Scripts menu
- A dialog box with destination folder, artboards, folder name (for Android), file suffix (for iOS and UWP) and supported scale type will open
- Click "Export" to generate all different assets
Others images available here.
The baseline image used for Android is xxxhdpi
, for iOS it is @2x
and for UWP it is scale-100
. The script will scale up and down from these sizes.
Android | iOS | Universal Windows Platform |
---|---|---|
ldpi | [@1x] | scale-100 |
mdpi | @2x | scale-125 |
tvdpi | @3x | scale-150 |
hdpi | scale-200 | |
xhdpi | scale-400 | |
xxhdpi | ||
xxxhdpi | ||
web |
All information of icons assets were retrieved from the official website of different OS :
Code contributions are welcome! Please see Contribution Guidelines.
- Fork the repository.
- Create a local clone of the repository.
- Create a local branch (see the Rules section)
- Commit your code, and push the changes to your own repository.
Copyright (c) 2016 Julien NORMAND - Voonder
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.