Marcus' Homepage

Convert iOS resources to Android

For Titanium-developers: you might be aware that if you want to use density-specific resources on Android (like @2x on iOS), you need to use the special android-folder in Resources.

In a recent project I made a bash-script to make this easier. This script will copy all resources from Resources/iphone/images to Resources/android/images, and move them around so you get a XHDPI-, HDPI- and MDPI-folder.

It currently has some limitations though, that I might resolve in the future if needed:

If this isn’t a problem for you, or if you think you can modify the script to fit your needs, you can find it in a gist here.