UPDATE: With the assets command of the TiCons CLI / Module this can be done even simpeler by calling $ ticons assets
or an alloy.ymk
using:
task("pre:load", function(event, logger) {
require('ticons').assets();
});
This [Alloy Build Configuration File](http://docs.appcelerator.com/titanium/3.0/#!/guide/Build_Configuration_File_(alloy.jmk) automatically generates non-retina and Android XHDPI, HDPI and MDPI images for all new and changed retina (@2x
) images before each compile.
Read more about it at: http://fokkezb.nl/2013/07/29/generate-non-retina-images/
It's working like a charm when I compile for ios.
it does not work when compiling for android. The Retina file is copied to the same folder without '@2x'.
Ex: /Users/name/Documents/Titanium_Studio_Workspace/Test JMK Unretina/app/assets/img/test.png
[edit]
Ok sorry, my images have to be in "images" folder, not "img". ^^
Really handy script.