Ninjanetic Design is thrilled to announce that we have released a new open source tool to assist Android developers who are porting applications over from iOS. You can read the details and grab the code here on Github.
Porting an iOS application to Android is a time-consuming task, especially when you have a project with a large number of custom images (and no budget for a graphic designer!). It is incredibly time consuming to manually re-scale images formatted for iOS devices over to Android density bucket and screen size dimensions.
Ios2android is a simple bash script that aims to save as much time as possible by automatically resizing these images for you. With our tool, converting images from iOS to Android dimensions is a total breeze. Simply copy all of your iOS assets into a single directory, and run the ios2android script. The corresponding Android images will magically appear, and you can get back to writing code instead of fussing with Photoshop.
For example, a directory containing the following files:
firstname.lastname@example.org (510 x 490 pixels)
intro_text@2x~ipad.png (1222 x 1152 pixels)
will result in:
drawable-mdpi/intro_text.png (255 x 245 pixels - 50%)
drawable-hdpi/intro_text.png (383 x 368 pixels - 75%)
drawable-xhdpi/intro_text.png (574 x 551 pixels - 112.5%)
drawable-large-mdpi/intro_text.png (611 x 576 pixels - 50%)
drawable-large-hdpi/intro_text.png (917 x 864 pixels - 75%)
drawable-large-xhdpi/intro_text.png (1375 x 1296 pixels - 112.5%)
Ios2android will also handle image filenames that are not compatible with the Android naming scheme, automatically detect which images are targeted for phones versus those that are targeted for tablets, and more. For all of the details and to grab the tool for free, head over to the Github project page.
photo credit: hegemonx