Giter Club home page Giter Club logo

ai-export-android-res-pngs's Introduction

Script for Adobe Illustrator

Exports unlocked layers with first character "$" to Android resolution PNG's (MDPI, HDPI, XHDPI, XXHDPI, and XXXHDPI) ready to paste into your Android Studio project. For full explanation check out my blog: http://murdochcarpenter.com/illustrator-script-export-android-multi-res-pngs/

To install

Copy and paste the script into your Illustrator Scripts folder. On Windows this is ‘\Program Files\Adobe Illustrator CC 2015\Presets\en_US\Scripts\’ and on Mac ‘\Applications\Adobe Illustrator CC 2015\Presets\en_US\Scripts\’. Then anytime you want to export the marked layers run File > Scripts > ExportAndroidResPNGs.

What the script does [Updated]

  • Turns off all layer visibility
  • Exports each layer that is unlocked and has the first character "$"
  • Saves into drawable-mdpi, drawable-hdpi, drawable-xhdpi, drawable-xxhdpi, and drawable-xxxhdpi folders
  • Folders are created under "Output" parent folder in same directory as .ai file
  • All ready to copy/paste into Android Studio

Recommendation

While this gives you all the PNG assets you need. I would suggest running them through PNGQuant or similar to save on some filesize.

ai-export-android-res-pngs's People

Contributors

murd avatar berotburns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.